View Full Version : Js within js
Crash1hd
09-22-2002, 06:16 AM
Is it possible to input a Js file inside a js file for example
I have temp.js and I want to run it inside test.js i know in an html file you put <script src="temp.js"></script> but how would you go about doing that inside a js file!
Adam
whammy
09-22-2002, 06:39 AM
If you're going to document.write another .js file in a .js file you have to comment the script tag:
var whatever = "<script src=\"temp.js\"><"+"\/script>"
Crash1hd
09-22-2002, 06:54 AM
Ok so how would I load the file when you say that there is a var whatever how do I load the whatever?
whammy
09-22-2002, 06:57 AM
Can you give a code example or more detailed explanation of what exactly you're trying to do?
Crash1hd
09-22-2002, 07:30 AM
Ok what I am trying to do is combine the following 2 scripts together! HV Menu and Context menu script II so that when I right click on the screen I get a different menu of choices but have the abilitys of HV Menus submenu system or if someone can show me how to make the Pop Up 3 menu be a right click instead of a left click then I could use it!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.