Results 1 to 4 of 4

Thread: Slashdot's Menu to open new page and category tree at the same time.

  1. #1
    Join Date
    Oct 2008
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Slashdot's Menu to open new page and category tree at the same time.

    1) Script Title: Slashdot's Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/slashdot.htm

    3) Describe problem:

    When the main category is clicked, for example "Online Tools" or Support (like in the demo) I would like it to jump to the other page as well as open the navigation, or open the navigation first and then jump to the other page.

    How would I do it?

    I tired putting <a href=""> on it but sometimes the nav doesnt open.

    Thanks,
    Dracov

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Here:
    Code:
    <span onClick='setTimeout("window.location.href=\"page here\"",1000);'>
    Change the <span> for the Support Us section to that.
    Jeremy | jfein.net

  3. The Following User Says Thank You to Nile For This Useful Post:

    Dracov (10-27-2008)

  4. #3
    Join Date
    Oct 2008
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I was successfuly able to get this code to work outside the navigation:

    Code:
    <SCRIPT language="JavaScript">
    <!--
    function getgoing()
    {
    window.location="index.cfm?page=page-index.cfm&TEMPLATE_CODE=About";
    }
    //-->
    </SCRIPT>
    
    <span onClick="setTimeout('getgoing()', 1000);">
    test
    </span>
    But as soon as I put it inside the navigation it stops working.
    Any help would be appreciated.

    Thanks,
    Dracov

  5. #4
    Join Date
    Oct 2008
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Anyone?

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
  •