SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2006
    0 Post(s)
    0 Thread(s)

    Selecting Proper Menu Tab With Javascript


    I'm a PHP guy trying to grasp Javascript.

    My client needs a menu much like that of Sitepoint where a mouseover changes the tab. I've got that covered with aonmouseover / onmouseout.

    Now I'm trying to find the simplest way to select that particular tab.

    You can see what I mean by looking at Sitepoint's header now. Their "forums" link is bold, but if you click on home and visit the index page, the home link is now bold. Any code examples or recommendations of tutorials that will explain how to do this?

    I've got a feeling that this may be done with CSS and text and Sitepoint. The look my client wants requires the use of images.

    I'm considering about 10 different php methods that are way overkill (including using regex on the URL to determine the page I'm on, but I feel there is a better way with javascript). I'm just not sure how.

    Brandon Drury
    Home Recording Forum -
    Make 60% Commission Pushing my new mega system
    Killer Home Recording

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Alabama, USA
    0 Post(s)
    0 Thread(s)
    Hi Brandon,

    Have a look at this demo


Posting Permissions

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