Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 03-30-2004, 09:33 AM stuck...
thesawmillguy's Avatar
Skilled Talker

Posts: 57
Location: Augusta, ME
Trades: 0
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 

<html> 
<head> 
<BASE HREF="http://www.s87841630.onlinehome.us/"> 

<TITLE>Untitled</TITLE> 
<link rel="STYLESHEET" type="text/css" href="common/cstechstyle.css"> 
</head> 

<body bgcolor="#999999" text="white" link="white" vlink="white" alink="white"> 

<SCRIPT language="javascript1.1"> 

   infoOn = new Image() 
   infoOn.src = "images/getinfodown.gif" 

   infoOff = new Image() 
   infoOff.src = "images/getinfoup.gif" 

function changeImg(cImg,ref) { 
document.images[cImg].src = ref.src 
} 
</SCRIPT><table width="100%" border="0"> 




<tr> 
<td align="left" valign="top" class="submenuheading"><a href="sidenav.html"><font color="yellow">Back</font></a></td></tr> 

       <tr><td height="50"></td></tr> 

   <tr><td align="center" valign="top" class="submenuheading">Quickspecs</td></tr> 

    
         <tr> 
<td align="center" valign="top"> 
<a href="PC Theater/9100/9100quickspecs.html" target="content" 
onMouseOver="changeImg('info',infoOn)" 
onMouseOut="changeImg('info',infoOff)"> 
<img name=info src="images/getinfoup.gif" border=0></a></td> </tr><BR>

<BR>

<tr><td align="center" valign="top" class="submenuheading">Jumpers</td></tr>

<tr><td align="center" valign="top">
<a href="PC Theater/9100/sytemboard.html" target="content"
onMouseOver="changeImg('info',infoOn)" 
onMouseOut="changeImg('info',infoOff)"> 
<img name=info src="images/getinfoup.gif" border=0></a></td>
</tr>
<BR>


</table> 
</html>
Can anybody see a flaw in this code. Its not working the way it should. The effect I am after is - When you move the couse over either selection it gets hightlighted. If I have 1 option in the menu it works. If I add a second option the first one stays unhighlighted and the second one gets highlighted (when rolling over the first)

to help explain what I mean:-
http://www.s87841630.onlinehome.us/m...u/PCT9100.html
thesawmillguy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-16-2004, 01:38 PM
steveharro's Avatar
Extreme Talker

Posts: 172
Trades: 0
Is this what your after


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<BASE HREF="http://www.s87841630.onlinehome.us/">
<TITLE>Untitled</TITLE>
<link rel="STYLESHEET" type="text/css" href="common/cstechstyle.css">
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body bgcolor="#999999" text="white" link="white" vlink="white" alink="white" onLoad="MM_preloadImages('/images/getinfodown.gif')">
<SCRIPT language="javascript1.1">

infoOn = new Image()
infoOn.src = "images/getinfodown.gif"

infoOff = new Image()
infoOff.src = "images/getinfoup.gif"

function changeImg(cImg,ref) {
document.images[cImg].src = ref.src
}
</SCRIPT>
<table width="100%" border="0">
<tr>
<td align="left" valign="top" class="submenuheading"><a href="sidenav.html"><font color="yellow">Back</font></a></td>
</tr>
<tr>
<td height="50"></td>
</tr>
<tr>
<td align="center" valign="top" class="submenuheading">Quickspecs</td>
</tr>
<tr>
<td align="center" valign="top"> <a href="PC Theater/9100/9100quickspecs.html" target="content"
onMouseOver="changeImg('info',infoOn)"
onMouseOut="changeImg('info',infoOff)"> </a><a href="PC%20Theater/9100/sytemboard.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','/images/getinfodown.gif',1)"><img name="Image2" border="0" src="/images/getinfoup.gif" width="103" height="12"></a></td>
</tr>
<BR>
<BR>
<tr>
<td align="center" valign="top" class="submenuheading">Jumpers</td>
</tr>
<tr>
<td align="center" valign="top"> <a href="PC Theater/9100/sytemboard.html" target="content"
onMouseOver="changeImg('info',infoOn)"
onMouseOut="changeImg('info',infoOff)"> <img name=info src="images/getinfoup.gif" border=0></a></td>
</tr>
<BR>
</table>
</html>


Regards Steveharro Best Download Sites
steveharro is offline
Reply With Quote
View Public Profile
 
Old 04-17-2004, 12:41 AM
thesawmillguy's Avatar
Skilled Talker

Posts: 57
Location: Augusta, ME
Trades: 0
wooohooo!!! Thanks a bunch!!! that works like a charm!!!

thesawmillguy is offline
Reply With Quote
View Public Profile
 
Old 04-17-2004, 11:03 AM
steveharro's Avatar
Extreme Talker

Posts: 172
Trades: 0
Glad to help I love it when a plan comes together

Regards Steveharro Best Download Sites
steveharro is offline
Reply With Quote
View Public Profile
 
Old 04-17-2004, 11:09 AM
Jcgeuze's Avatar
Skilled Talker

Posts: 93
Location: The Netherlands,
Trades: 0
I hear an A-team theme somewhere
__________________
Johan Geuze

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Jcgeuze is offline
Reply With Quote
View Public Profile Visit Jcgeuze's homepage!
 
Reply     « Reply to stuck...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.46435 seconds with 12 queries