View Full Version : DD Tab Menu > url to js file

12-20-2009, 07:19 AM
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?

<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

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.

12-20-2009, 08:19 AM
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:

<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


12-20-2009, 07:31 PM
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...