Activity Stream
48,167 MEMBERS
65138 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 12

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Respected Developer
    if you are using smarty (as u mentioned above) see answer here:

    http://*******/uViQG
    mRAza Reviewed by mRAza on . Simple CSS highlight help <ul id="navigation"> <li class="active"><a href="/">Home</a></li> <li class="active"><a href="/myaccount">My Account</a></li> <li class="active"><a href="/editaccount">Edit Account</a></li> <li class="active"><a href="/logout">Logout</a></li> </ul> This is my HTML, how do I highlight the current tab which is currently viewed on the browser? Rating: 5
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  2.   Sponsored Links

  3.     
    #2
    Member
    Quote Originally Posted by Apathetic View Post
    ^You can try do some php checking (maybe thru a variable) on which page you are currently in.

    PHP Code: 
    <li <?php echo $isHome?'class="active"':''?>><a href="/">Home</a></li>
    <li  <?php echo $isMyAccount?'class="active"':''?>><a href="/myaccount">My Account</a></li>
    <li  <?php echo $isEdit?'class="active"':''?>><a href="/editaccount">Edit Account</a></li>
    <li  <?php echo $isHome?'class="active"':''?>><a href="/logout">Logout</a></li>
    THere can be other ways of doing this, I'm just shedding some light.
    Can you help me do this?

    Quote Originally Posted by mRAza View Post
    if you are using smarty (as u mentioned above) see answer here:

    http://*******/uViQG
    I appreciate your reply, I'm gonna try this later.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Highlight searched text plugin
    By r00ts in forum Wordpress
    Replies: 2
    Last Post: 9th Apr 2012, 07:10 PM
  2. [Hiring] Simple PHP Job
    By Apathetic in forum Completed Transactions
    Replies: 0
    Last Post: 14th Sep 2011, 02:08 AM
  3. [Hiring] $10 simple job :D
    By viruz99 in forum Completed Transactions
    Replies: 8
    Last Post: 28th Nov 2010, 07:22 AM
  4. Something Simple
    By w00ty in forum Graphics Area
    Replies: 0
    Last Post: 14th Jul 2010, 07:58 AM
  5. Its seems so simple ...
    By S?nic in forum IP.Board
    Replies: 8
    Last Post: 20th Sep 2009, 12:42 AM

Tags for this Thread

BE SOCIAL