I am new to using .js extension pages and can anyone help answer the following?
Example
I am using a css layer in dreamweaver that has an affiliate partners javascipt flash animation code inserted in it as followed:
[COLOR=”Red”]<div id=”Layer8″script language=”javascript”>var uri = ‘
Okay now I cut and paste the above code into my .js extension page as followed:
[COLOR=”Gray”]// JavaScript Document index1.js
[COLOR=”Red”]<script language=”javascript”>
var uri = ‘
document.write(‘<sc’+’ript language=”JavaScript” src=”‘+uri+'” charset=”ISO-8859-1″></sc’+’ript>’);
</script>
Now I am left with the layer tag: [COLOR=”red”]<div id=”Layer8″> </div>
Also what JavaScript code should I add to my [COLOR=”red”]<head></head>
I just want to keep it simple to start with if possible until I start to understand the language a bit more.
Any advice or links would be appreciated.
Thanks
Gary