Results 1 to 2 of 2

Thread: arrg! How can I make this into a hyperlink?

  1. #1
    Join Date
    Mar 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default arrg! How can I make this into a hyperlink?

    I am using this menu here
    http://www.dynamicdrive.com/dynamici...tabcontent.htm

    How can I make the tabs hyperlinked and still how the content right under each tab? (I am working within the same site of course) (Ex. templatemonster.com)

    In my case below, how do I make forum hyperlinked and also show the tcontent1 below it.


    PHP Code:
    <ul id="maintab" class="shadetabs">
    <
    li class="selected"><a href="http://www.domain.com">Home</a></li>
    <
    li><a href="http://www.domain.com" rel="tcontent1">Forum</a></li>
    <
    li><a href="#" rel="tcontent2">Tab 2</a></li>
    <
    li><a href="#" rel="tcontent3">Tab 3</a></li>
    <
    li><a href="#" rel="tcontent4">Tab 4</a></li>

    </
    ul>

    <
    div class="tabcontentstyle">

    <
    div id="tcontent1" class="tabcontent">
    New 
    Posts Discussions Pictures.......
    </
    div>

    <
    div id="tcontent2" class="tabcontent">
    Tab content 2 here<br />Tab content 2 here<br />
    </
    div>

    <
    div id="tcontent3" class="tabcontent">
    Tab content 3 here<br />Tab content 3 here<br />
    </
    div>

    <
    div id="tcontent4" class="tabcontent">
    Tab content 4 here<br />Tab content 4 here<br />
    </
    div>

    </
    div>

    <
    script type="text/javascript">
    //Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma.
    initializetabcontent("maintab")
    </script> 

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If it is a link, you will only see the page that it links to.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •