|
|
#1 |
|
Bronze Member
![]() Join Date: Feb 2010
Location: Satellite-Town, Lagos, Nigeria, West-Africa.
Posts: 89
|
Hello Friends,
I am having a little stress in connecting my .js external file to my html. In CSS, there's a tool in the Properties Panel of dream weaverused in linking .css to html. Now, my questions is: Is there a tool that can be used to link each page automatically, once, just like in css. Thanks, Golden Waters. Last edited by goldenwaters; 01-14-2012 at 01:18 PM. |
|
|
|
|
|
#2 |
|
New Member
![]() Join Date: Jan 2012
Location: west sussex
Posts: 11
|
I'm not sure if there's a option for inserting external javascript files into your html document. But in the code you just add:
<script language="JavaScript" src="your-javascript-file.js" type="text/JavaScript"></script> Make sure you copy that before your </head> and change your-javascript-file.js to whatever yours is called. Hope that helps. |
|
|
|
|
|
#3 |
|
Diamond Member
![]() Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,137
|
Alternatively add it just before the closing body tag to speed up load time.
__________________
if (headhurts == "possibly") { alert ("keep going!"); } else if (headhurts == "yes") { alert ("go to sleep"); } else if (headhurts == "damn !@#$ mofo scripts...") { alert ("give up and have a beer!"); } else { alert ("watch TV"); } |
|
|
|
|
|
#4 |
|
Bronze Member
![]() Join Date: Feb 2010
Location: Satellite-Town, Lagos, Nigeria, West-Africa.
Posts: 89
|
Thanks Phreaddee and Artimes, your response is helpful. I have been able to do it just as you both advised me to.
Thanks, Golden Waters |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|