SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: mouseover?

  1. #1
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,582
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    mouseover?

    my mouseover links here.
    http://www.ontheocean.us/loc.shtml
    is there a way to "highlight" the links while the slideshow starts, so that people know the links use the map?
    Thanksss
    "Oh, and Jenkins--apparently your mother died this morning."

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by lukeurtnowski View Post
    my mouseover links here.
    http://www.ontheocean.us/loc.shtml
    is there a way to "highlight" the links while the slideshow starts, so that people know the links use the map?
    Thanksss
    How is the highlight achieved? Via a CSS hover selector, such as this?

    Code:
    #nav a:hover {
        background: silver;
    }
    You'll need to create a duplicate class name selector, perhaps called hover, so that you can manually apply that same style by using scripting to set and unset the class name.

    Code css:
    #nav a:hover,
    #nav a.hover {
        background: silver;
    }

    Code javascript:
    $('a', context).addClass('hover');

    Do not attempt to duplicate the above code samples and apply them directly to your page. They are merely example pieces that are aimed at helping to demonstrate the technique involved.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •