View Full Version : mousover to stay active?
wingfan1991
09-21-2008, 03:33 PM
newbie here :) trying to figure out how to get a menu that has mouseovers to stay active when clicked on.. been researching for days and trying tons of methods, nothing is working.. i have tried dreamweaver, frontpage 2003, GoLive CS2 and cannot figure it out.
anyone here give me pointers as to what i should do, css or javascript? do i need frames to make this effect work (hope not)? should be a simple operation because all the editors i used have this "onclick" but none are working.
thanks in advance!
what specifically are you trying to do? all you need to leave a mouseover active is to not write an "onmouseout" event- it actually takes more effort to make it stop. If you want the same thing to happen when you click, write an "onclick" event that does the same thing.
post a link to what you're trying to do if you need more help.
wingfan1991
09-21-2008, 06:24 PM
what specifically are you trying to do? all you need to leave a mouseover active is to not write an "onmouseout" event- it actually takes more effort to make it stop. If you want the same thing to happen when you click, write an "onclick" event that does the same thing.
post a link to what you're trying to do if you need more help.
www.peterbosco.ca/verona/home.html
if you check the link above, i would like any button on the menu clicked to stay active (blue colour). how can i do this in any one of those editors mentioned?
wingfan1991
09-22-2008, 01:28 PM
anyone?
Medyman
09-22-2008, 01:35 PM
On each individual page, replace the current image you have with the blue one.
You can't carry states over from page to page, but you can certainly change the output on the individual pages.
As to how to use those WYSIWYG "editors", I couldn't tell you. I don't use any of those programs and recommend against you using them for this. In fact, I'm willing to bet that a great part of your difficult in achieving this is because of the intricacies of those software.
wingfan1991
09-22-2008, 02:20 PM
if i replace the current state to the blue on each page then there goes my rollover (hover) effect corret? thats not what i want. i want to hover when he put your mouse over each menu image, then when clicked on, to stay active on that page.
Medyman
09-22-2008, 03:39 PM
I mean replace the individual one you want to stick. For example, on http://www.peterbosco.ca/verona/gallery.html, replace http://www.peterbosco.ca/verona/images/gallery.gif with http://www.peterbosco.ca/verona/images/gallery_over.gif. On the "Services" page, you would replace only the services image, etc...
The effect is the same. You're making the over state stick for the that you're currently on. Doing it through some sort of clicking logic is overly complicated.
wingfan1991
09-22-2008, 07:01 PM
I mean replace the individual one you want to stick. For example, on http://www.peterbosco.ca/verona/gallery.html, replace http://www.peterbosco.ca/verona/images/gallery.gif with http://www.peterbosco.ca/verona/images/gallery_over.gif. On the "Services" page, you would replace only the services image, etc...
The effect is the same. You're making the over state stick for the that you're currently on. Doing it through some sort of clicking logic is overly complicated.
ummm you're a genius!!! thanks this method actually WORKED! man been at this for days all over the net.. thanks again!!!
but question, when i preview the pages in frontpage 2003 i do get a script error.. any idea why? and is this important.. although site works the way it should on all browsers i tested (IE7, Chrome, and Firefox latest versions).
wingfan1991
09-22-2008, 07:41 PM
never mind the last part, fixed the code.. some GoLive javascript was in there, cleared it and now FP2003 no errors. :)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.