I need help with my page images/links
Alright, you know how you can put your mouse over a text/image link on a navigation system right? well I want it to display a message elsewhere on the page. If you were to look at: http://www.nps.k12.va.us - when you put you mouse over the images that are links, they show a picture at the top of them, I wanted it similar to that but my navmenu will be different and the image will show to the right side of the page while my nav. menu is at the left! if you know what im talking about then please help me! Thanks!
hmahonen posted this at 10:34 — 17th February 2001.
They have: 5 posts
Joined: Feb 2001
Since the basic JavaScript method for displaying images is rather simple, it doesn't need any modification at all.
As the mouse goes over a link (a picture) you want to display another picture at another place.
Hard to explain, but let's give it a shot. As you have something like:
<a href="#"><img src="link.gif" width="100" height="20" alt="The link which changes another picture while onmouseover" border="0" onmouseover="change('<strong>wombat</strong>', 'down')" onmouseout="change('<strong>wombat</strong>', 'up')"></a>
and the image, which needs to be changed..
<img src="imagetobechanged.gif" <strong>name="wombat"</strong> width="200" height="50" alt="" border="0">
As you can see, normally we just would name the picture between A-tags and the onmouseover and -out event's would change it's image respectivily while onmouseover, but now we change the another picture.
I don't take any responsibility whatsoever about does this even work or do I have any clue about the matter, but as far as I can think this is the way it goes. Never tested it though
Update: it does work after all, just tested.
DynMail.com - Get your [email protected] email account for free.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.