HighDots Forums  

Adding a JavaScript file to Dreamweaver html

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Adding a JavaScript file to Dreamweaver html in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
cocolloyd
 
Posts: n/a

Default Adding a JavaScript file to Dreamweaver html - 10-31-2005 , 05:28 PM






Please help asap - I am trying to ad a java script file used for banner ads to
my company's home page and I can't figure it out-
Other website we host has the the script running and working but this brand
new site we just built needs to have it as well and I don't know how to
incorporate it.
We use Dreamweaver MX 2004-Can anyone give me a step by step walk through of
how to add it to my code so it will show up?:confused;


Reply With Quote
  #2  
Old   
rilkesf
 
Posts: n/a

Default Re: Adding a JavaScript file to Dreamweaver html - 10-31-2005 , 06:21 PM






Is the original JS code within the HTML pages or stored in an external .js
file? If it's within the HTML, just copy and paste it between the <head> and
</head> in the new HTML page.

if it's an external file, copy the file and place it in your site wherever you
want. Then, in between the <head> and </head> tags of the new page(s), insert
the following line of code:

<script type="text/javascript" language="javascript" src="location"></script>

where 'location' is the path to the copied .js file




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.