Results 1 to 3 of 3

Thread: DD Tab Menu > url to js file

  1. #1
    Join Date
    Mar 2009
    Posts
    11
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default DD Tab Menu > url to js file

    1) Script Title: DD Tab Menu

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

    3) Describe problem: How do I make the code posted below look for the js file if it's not in the root?

    Code:
    <script type="text/javascript">
    //SYNTAX: ddtabmenu.definemenu("tab_menu_id", integer OR "auto")
    ddtabmenu.definemenu("ddtabs1", 0) //initialize Tab Menu with ID "ddtabs1" and select 1st tab by default
    </script>
    I'm running VB 3.8.4 if that's any help and my style folders are buried deep for security reasons. I need to keep my js files in with my theme folders.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Why not just specific an absolute URL to the .js file on your server inside the code in the HEAD section of your page, for example:

    Code:
    <script type="text/javascript" src="http://mysite.com/themes/ddtabmenu.js">
    
    /***********************************************
    * DD Tab Menu script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    
    </script>
    DD Admin

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

    setishock (12-20-2009)

  4. #3
    Join Date
    Mar 2009
    Posts
    11
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    DOH! That simple. Also I didn't see any DD copyright notice in the head or CSS code, just in the js file. I'll add the copyright notice you posted to the header code. Thanks...

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
  •