This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > October 2005 > Adding a JavaScript file to Dreamweaver html





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Adding a JavaScript file to Dreamweaver html
cocolloyd

2005-10-31, 6:29 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;

rilkesf

2005-10-31, 10:20 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



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews