/    Sign up×
Community /Pin to ProfileBookmark

.JS Extension Page

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 = ‘http://impgb.tradedoubler.com/imp?type(js)g(691316)a(987223)‘ + new String (Math.random()).substring (2, 11);document.write(‘<sc’+’ript language=”JavaScript” src=”‘+uri+'” charset=”ISO-8859-1″></sc’+’ript>’); </script>></div>[/COLOR]

Okay now I cut and paste the above code into my .js extension page as followed:
[COLOR=”Gray”]// JavaScript Document index1.js [/COLOR]
[COLOR=”Red”]<script language=”javascript”>
var uri = ‘http://impgb.tradedoubler.com/imp?type(js)g(691316)a(987223)‘ + new String (Math.random()).substring (2, 11);
document.write(‘<sc’+’ript language=”JavaScript” src=”‘+uri+'” charset=”ISO-8859-1″></sc’+’ript>’);
</script>[/COLOR]

Now I am left with the layer tag: [COLOR=”red”]<div id=”Layer8″> </div>[/COLOR]What do I now do with this tag or what code needs to be added in it?

Also what JavaScript code should I add to my [COLOR=”red”]<head></head>[/COLOR] as I have read many articles all giving different answers.

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

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @ghi572000 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...