Results 1 to 2 of 2

Thread: [Tab Content Script (v 2.2)] Problem with remote link

  1. #1
    Join Date
    Aug 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [Tab Content Script (v 2.2)] Problem with remote link

    1) Script Title:
    Tab Content Script (v 2.2)

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...tabcontent.htm

    3) Describe problem:

    Hi,
    I've a problem with a remote link.
    I've a menu like this:


    <a href="#" rel="country1" class="selected">Page 1</a>
    <a href="#" rel="country2">Page 2</a>
    <a href="#" rel="country3">Page 3</a>
    <a href="#" rel="country4">Page 4</a> bsp;
    <a href="page5.php">Page5</a>
    <a href="#" rel="country5">Page6</a>

    It works, and from the remote page (page.php) I can expand all my tabs, but not the last one: country5 / page6.

    The content is:

    <div id="country1" class="tabcontent">...</div>
    etc etc..

    In the remote page I've this code:

    <a href="index.php?menu=0">Page 1</a>
    <a href="index.php?menu=1"> Page 2</a>
    <a href="index.php?menu=2"> Page 3</a>
    <a href="index.php?menu=3"> Page 4</a>
    <font color="gray"><b>Page 5</b></font>

    <a href="index.php?menu=4"> Page 6</a>

    and my code:


    <script type="text/javascript">

    var countries=new ddtabcontent("menu")
    countries.setpersist(false)
    countries.setselectedClassTarget("link") //"link" or "linkparent"
    countries.init()

    </script>

    Where is the error?
    Why I can select all the tabs but not the last one?
    Thanks..

  2. #2
    Join Date
    Aug 2004
    Posts
    9,878
    Thanks
    3
    Thanked 962 Times in 951 Posts
    Blog Entries
    15

    Default

    Try the link:

    Code:
    <a href="index.php?menu=5"> Page 6</a>
    instead.
    DD Admin

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
  •