![]() |
Javascript Questions
I just had some new pages done for TrueBabes that includes some JS
The designer includes the script like this <script type="text/javascript" src="images/scripts/tb.js"></script> I would rather the JS be in the head of the HTML file so that pages moved to sub-directories with ease. How would I do that? The code is: ?// JScript File function onmenubuttonover(cb,nm) { if(cb==null){return;} cb.src="images/common/" + nm+"_hl.jpg"; } function onmenubuttonout(cb,nm) { if(cb==null){return;} cb.src="images/common/" + nm+".jpg"; } function onclientbuttonover(cb,num,nm) { if(cb==null){return;} cb.src="images/" + num + "/" + nm+"_hl.jpg"; } function onclientbuttonout(cb,num,nm) { if(cb==null){return;} cb.src="images/" + num + "/" + nm+".jpg"; } So, basically how do I place that is the head of the HTML? Thanks in advance |
Quote:
|
no clue..
|
If you want the javascript to be inline (not including an external file), it would look like this:
Code:
<script language="javascript" type="text/javascript"> |
Thanks, I get it now.
|
All times are GMT -7. The time now is 07:37 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123