• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

HTML / Javascript experts, help please!!

Valhalla1

Diamond Member
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?
 
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
 
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
 
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>

 
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
 
Back
Top