HTML / Javascript experts, help please!!

Valhalla1

Diamond Member
Oct 13, 1999
8,678
0
76
I'm making a website, I need some Java help. I want to know if you can have more than one "onmouseover" and "onmouseout" events set on a single image. Basically I have 4 images on the site that when you mouseover them, they "highlight" but I want it so that they highlight, and also when you mouseover them, another image on another part of the site changes.

I have this now, it isn't working. The "highlighting" onmouseover event works fine, but the other one doesn't.


<A HREF=&quot;1&quot; onMouseOver=&quot;document.IMAGENAME11.src='overview1.gif'&quot;
onMouseOver=&quot;document.IMAGENAME20.src='left-overview.gif'&quot; onMouseOut=&quot;document.IMAGENAME11.src='overview.gif'&quot;
onMouseOut=&quot;document.IMAGENAME20.src='left-trans.gif'&quot;>
<IMG SRC=&quot;overview.gif&quot; border=0 NAME=&quot;IMAGENAME11&quot;></a>

can anyone help me please?
 
Apr 5, 2000
13,256
1
0
This belongs in the Software - Applications, Programming and Games forum

However, if I'm not wrong it is done via not two onmouseovers but with some nifty javascripting, I'll look it up
 

Valhalla1

Diamond Member
Oct 13, 1999
8,678
0
76
I've been around these forums for a looong time, I new it belonged there. I'm sorry.. 'course I know the moderator personally, so its all good. :) just kidding. I'm sorry, I just knew I would get my problem solved if I posted here. If you could look that up for me I'd really appreciate it
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
Just seperate the javascript commands by a semicolom(;)
So it should look like this:

<A HREF=&quot;1&quot; onMouseOver=&quot;document.IMAGENAME11.src='overview1.gif';document.IMAGENAME20.src='left-overview.gif';&quot; onMouseOut=&quot;document.IMAGENAME11.src='overview.gif';document.IMAGENAME20.src='left-trans.gif';&quot;>
<IMG SRC=&quot;overview.gif&quot; border=0 NAME=&quot;IMAGENAME11&quot;></a>

 

Valhalla1

Diamond Member
Oct 13, 1999
8,678
0
76
awwwwwwww biiiiitch!!

worked like a champ, thanks a lot! you now officially own my ass!

:)

thanks, I've been working on this forever, didn't know it was that simple