Click to See Complete Forum and Search --> : rollover menu buttons in frame


kevinthompson
01-17-2003, 12:53 PM
I have a menu using buttons that change on mouseover and change back on mouseout. The menu is in a frame and changes the page in another frame. Is there a way to make the mouseover state show whether the mouse is on or off the button when that buttons related page is showing in the main frame? This way the menu button will be highlighted to show the user which page they are currently viewing.

?? thank you

stewie
01-17-2003, 02:42 PM
im not exactly sure what you're trying to do. do you want the button to remain in it's down state while the page it references is being displayed?

maybe dont use onMouseOver, make the button switch using an onClick calling a function to swap the image

function switcher(place) {
if (place==1) document.button1.src="downbutton.gif";
}

in the body:
<img name="button1" src="upbutton.gif" width="228" height="152" border="0" onClick="switcher(1)">

then of course youd need to add more conditions to place==1 so that when place==1 happens, the other button images swap back to their up states.

just an idea
stewie

kevinthompson
01-17-2003, 02:51 PM
Stewie -
yes... that is what I mean. I'm not a programmer and wasn't sure I was expressing myself well. I have done the same thing in pages without frames. Then you can just remove the link and mouseover controls from the button and display the downstate on that particular page, but because the menu page isn't changing in the frame it's in... then... well like I said, I'm not a programmer... :)

stewie
01-17-2003, 03:07 PM
look back up at my last post, i was editing it while you posted!!!