Results 1 to 9 of 9

Thread: mousover to stay active?

  1. #1
    Join Date
    Sep 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default mousover to stay active?

    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!

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    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.

  3. #3
    Join Date
    Sep 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by traq View Post
    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?

  4. #4
    Join Date
    Sep 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    anyone?

  5. #5
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.

  6. #6
    Join Date
    Sep 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  7. #7
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.

  8. #8
    Join Date
    Sep 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Medyman View Post
    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).

  9. #9
    Join Date
    Sep 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    never mind the last part, fixed the code.. some GoLive javascript was in there, cleared it and now FP2003 no errors.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •