Bluepearl Design
Go Back   Bluepearl Design > Bluepearl Design > Need Help?

Cool Rollover Effect using Javascript(?)

Ask us questions relavent to Web Design and Computers.
Also support for Bluepearl Design and webclans.net hosting.

    

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 12-22-2005, 11:33 AM   #1 (permalink)
 
SpawnDemon's Avatar
 
Title: Bluepearl Veteran
Join Date: Jul 2005
Location: Philadelphia, Pennsylvania - Home Base
Posts: 727
Rep Power: 4 SpawnDemon is on a distinguished road
Send a message via MSN to SpawnDemon Send a message via Skype™ to SpawnDemon
Cool Rollover Effect using Javascript(?)

http://www.koregraphik.com/portfolio/


It's like on there but I'd like it a different color on my site. Any helpz?
__________________
What did he say? A new e1studios site? Where can I get some. Click Here!
SpawnDemon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-22-2005, 09:12 PM   #2 (permalink)
 
Fragalot's Avatar
 
Title: Ipood
Join Date: Nov 2004
Location: belgium west-flandres
Age: 19
Posts: 4,436
Images: 1
Rep Power: 9 Fragalot is on a distinguished road
Send a message via ICQ to Fragalot Send a message via MSN to Fragalot Send a message via Yahoo to Fragalot
Re: Cool Rollover Effect using Javascript(?)

this is hobo's field lol
Fragalot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-23-2005, 06:04 PM   #3 (permalink)
 
Title: Bryan
Join Date: Jan 2004
Location: Dundee
Age: 21
Posts: 3,547
Rep Power: 8 wasahobo is on a distinguished road
Send a message via AIM to wasahobo Send a message via MSN to wasahobo
Re: Cool Rollover Effect using Javascript(?)

So you want that little box to appear?

Code:
<!-- TWO STEPS TO INSTALL POP-UP LINK WITH DESCRIPTION:
  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Patrick Lewis (gtrwiz@aol.com) -->
<!-- Web Site:  http://www.patricklewis.net -->
<!-- Begin
//   ##############  SIMPLE  BROWSER SNIFFER
if (document.layers) {navigator.family = "nn4"}
if (document.all) {navigator.family = "ie4"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {navigator.family = "gecko"}
//  #########  popup text 
descarray = new Array(
"This site has some of the greatest scripts around!",
"These popups can have varying width. It is dependant upon the text message.",
"You can have <b>two</b> lines <br>and HTML content.",
"You can also have images in here like this:<br><img src=greenbar.gif>",
"You can put in a really long <br>description if it is nessary to <br>explain something in detail, <br>like a warning about content <br>or privacy.",
"</center>Lastly, you can have links like these:<br><a href='http://javascript.internet.com/'>JavaScript Source</a><br><a href='http://javascript.internet.com/'>JavaScript Source</a><br><a href='http://javascript.internet.com/'>JavaScript Source</a><br>With a change in the onmouseout event handler."
);
overdiv="0";
//  #########  CREATES POP UP BOXES 
function popLayer(a){
if(!descarray[a]){descarray[a]="<font color=red>This popup (#"+a+") isn't setup correctly - needs description</font>";}
if (navigator.family == "gecko") {pad="0"; bord="1 bordercolor=black";}
else {pad="1"; bord="0";}
desc =    "<table cellspacing=0 cellpadding="+pad+" border="+bord+"  bgcolor=000000><tr><td>\n"
 +"<table cellspacing=0 cellpadding=3 border=0 width=100%><tr><td bgcolor=ffffdd><center><font size=-1>\n"
 +descarray[a]
 +"\n</td></tr></table>\n"
 +"</td></tr></table>";
if(navigator.family =="nn4") {
 document.object1.document.write(desc);
 document.object1.document.close();
 document.object1.left=x+15;
 document.object1.top=y-5;
 }
else if(navigator.family =="ie4"){
 object1.innerHTML=desc;
 object1.style.pixelLeft=x+15;
 object1.style.pixelTop=y-5;
 }
else if(navigator.family =="gecko"){
 document.getElementById("object1").innerHTML=desc;
 document.getElementById("object1").style.left=x+15;
 document.getElementById("object1").style.top=y-5;
 }
}
function hideLayer(){
if (overdiv == "0") {
 if(navigator.family =="nn4") {eval(document.object1.top="-500");}
 else if(navigator.family =="ie4"){object1.innerHTML="";}
 else if(navigator.family =="gecko") {document.getElementById("object1").style.top="-500";}
 }
}
//  ########  TRACKS MOUSE POSITION FOR POPUP PLACEMENT
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function handlerMM(e){
x = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
y = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;
}
if (isNav){document.captureEvents(Event.MOUSEMOVE);}
document.onmousemove = handlerMM;
//  End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
<BODY>
<div id="object1" style="position:absolute; background-color:FFFFDD;color:black;border-color:black;border-width:20; visibility:show; left:25px; top:-100px; z-index:+1" onmouseover="overdiv=1;"  onmouseout="overdiv=0; setTimeout('hideLayer()',1000)">
pop up description layer
</div>
<!--  THE TEXT FOR THE POPUP DESCRIPTIONS ARE ON LINE 12  -->
<a href="http://javascript.internet.com" onMouseOver="popLayer(0)" onMouseOut="hideLayer()"><font size=-1 face=arial><b>
THE JavaScript Source
 </b></font></a><br>
<a href="#" onMouseOver="popLayer(1)" onMouseOut="hideLayer()"><font size=-1 face=arial><b>
Variable width
 </b></font></a><br>
<a href="#" onMouseOver="popLayer(2)" onMouseOut="hideLayer()"><font size=-1 face=arial><b>
Double line popup
 </b></font></a><br>
<a href="#" onMouseOver="popLayer(3)" onMouseOut="hideLayer()"><font size=-1 face=arial><b>
Image sample
 </b></font></a><br>
<a href="#" onMouseOver="popLayer(4)" onMouseOut="hideLayer()"><font size=-1 face=arial><b>
Really long description
 </b></font></a><br>
<a href="#" onMouseOver="popLayer(5)" onMouseOut="setTimeout('hideLayer()',2000)"><font size=-1 face=arial><b>
Persistant with links
 </b></font></a><br>
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="<A href="http://javascriptsource.com">The">http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size:  5.08 KB -->
I think this is what you are looking for. Would like to thank http://javascript.internet.com/ for the script
__________________
BluePearl-Design + 3sStudios = Unlimited Possibilities.


Current Project: http://www.3sstudios.com/cloud.htm
wasahobo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads for: Cool Rollover Effect using Javascript(?)
Thread Thread Starter Forum Replies Last Post
Help searching an effect... Hans-Lowell Need Help? 5 07-09-2004 08:29 AM


  
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Bluepearl Templates

All times are GMT +11. The time now is 09:43 PM.

 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52