|
-
Mar 16th, 2003, 04:38 PM
#1
Thread Starter
Fanatic Member
Change Image Source
I am using two images (one for the menu title, and one for the menu when it is dropped down). What I want is that when the mouse runs over a certain menu option another menu pulls out to the left of it. I dont thnk i explained tis to well, if anyone needs more then please ask. Well I tried putting an onmousover in the image map's area tag, but that did nothing. So then I tried using the onmousemove in the same place. This caused the image to show an empty source. I checked several times and the source is indeed there. Does anyone know what I am doing wrong?
-
Mar 17th, 2003, 06:58 PM
#2
Stuck in the 80s
If you just want to swap images...
Code:
<head>
<script type="text/javascript">
<!--
function swap(s, t) {
if (window.document.images) {
window.document.images[s].src = t;
}
}
//-->
</script>
</head>
Use:
Code:
<img name="img1" src="a.gif" onMouseOver="swap('img1', 'b.gif');" onMouseOut="swap('img1', 'a.gif');">
Something like that.
-
Mar 17th, 2003, 07:59 PM
#3
Thread Starter
Fanatic Member
That works for the dropping of the full menu, but i need a side scroll out menu (kind of like a third level menu in vb).
-
Mar 18th, 2003, 02:27 AM
#4
Conquistador
That isn't a simple matter of changing an image source.
It's some sort of scripting, perhaps dhtml.
Check out some script sites
www.javascripts.net etc
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|