I am struggling. Please Help me with CSS Menu. $5

Discussion in 'CSS' started by niravdave, May 2, 2008.

  1. #1
    I wil pay some $5 if somebody does this for me.

    Hi guys,

    I have been trying to figure out, but have not been successful in doing this.

    I have a CSS menu here www.megavideos.in (by default the highlighted tab is HOME). i would like to make the code in such a way that when the user clicks on other tabs that particular tab should be highlighted. I am using a common header throughout the website.

    <table>
    <tr align="center">
    <td><div id="tabs1">
                            <ul>
                                    <!-- CSS Tabs -->
    <li id="current"><a href="{$baseurl}/index.php"><span>HOME</span></a></li>
    <li><a href="{$baseurl}/upload.php"><span>UPLOAD</span></a></li>
    <li><a href="{$baseurl}/recent/"><span>WATCH</span></a></li>
    <li><a href="{$baseurl}/tags.php"><span>TAGS</span></a></li>
    <li><a href="{$baseurl}/channels.php"><span>CHANNELS</span></a></li>
    <li><a href="{$baseurl}/groups.php"><span>GROUPS</span></a></li>
    <li><a href="{$baseurl}/friends.php"><span>FRIENDS</span></a></li>
    <li><a href="http://reviews.megavideos.in"><span>REVIEWS</span></a></li>
    <li><a href="http://reviews.megavideos.in/category/bollywood-radio/"><span>MEGA RADIO</span></a></li>
                            </ul>
                    </div></td>
    </tr>
    </table>
    Code (markup):

    help will be highly appreciated.

    cheers
    nirav
     
    niravdave, May 2, 2008 IP
  2. dgxshiny

    dgxshiny Greenhorn

    Messages:
    65
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    23
    #2
    If you are using an included header, you will have to do some kind of switch statement pertaining to the page you are on. Once you determine the page you are on, you can write out each of the line items passing id="current" to the current page you are on.
     
    dgxshiny, May 2, 2008 IP
  3. niravdave

    niravdave Active Member

    Messages:
    675
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    88
    #3
    that is exactly what i m asking someone to do, as i m not able to figure out how to do it.

    Thanks
    Nirav
     
    niravdave, May 2, 2008 IP
  4. niravdave

    niravdave Active Member

    Messages:
    675
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    88
    #4
    i guess i have sorted it.

    thanks

    dave
     
    niravdave, May 2, 2008 IP
  5. muthukswamy

    muthukswamy Active Member

    Messages:
    676
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    60
    #5
    I still see the problem in your sites navigation. I have good experience in this video script. I helped in front-end coding youwitnesslife.org using the same script. If you want my help, please add me to your messenger list.
     
    muthukswamy, May 2, 2008 IP
  6. niravdave

    niravdave Active Member

    Messages:
    675
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    88
    #6
    Well would definately like to have ur help.

    thanks
    nirav
     
    niravdave, May 2, 2008 IP
  7. muthukswamy

    muthukswamy Active Member

    Messages:
    676
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Did u add me in the messenger list? if not add me soon.
     
    muthukswamy, May 4, 2008 IP
  8. niravdave

    niravdave Active Member

    Messages:
    675
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    88
    #8
    well i did..u have not accept my request.

    its nirav.dave(at)hotmail.com
     
    niravdave, May 6, 2008 IP
  9. muthukswamy

    muthukswamy Active Member

    Messages:
    676
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    60
    #9
    add me in yahoo : muthuswamy_smit at yahoo.com
     
    muthukswamy, May 6, 2008 IP