Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-29-2012, 08:45 PM   PM User | #1
andycarl
New to the CF scene

 
Join Date: Jun 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
andycarl is an unknown quantity at this point
Centrally Updating All Banners and Links

I have pretty much no knowledge in coding but pick up what I need along the way. I use a visual site designer to build my website, and am currently building a site with around 80-90 pages with affiliate links and banners that are repeated on almost all the pages.

Commission Junction provides banners/links in both HTML and Javascript

The javascript code for a banner looks like <script type="text/javascript" language="javascript" src="http://www.abcdefg.com/placeholder-1234567?target=_top&mouseover=N"></script>

whereas the HTML version looks like <a href="http://www.abcde.com/click-1234567-12345678" target="_top">text</a><img src="http://www.mnopq.com/image-1234567-12345678" width="1" height="1" border="0"/>

Is there any way I can use an external Javascript file and either of the above two formats so that I can easily update the same banner/link on all my webpages by simply modifying one file or location?

Would really appreciate help and a 'step-by-step' answer as to how to implement this.
andycarl is offline   Reply With Quote
Old 06-30-2012, 03:12 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,395
Thanks: 18
Thanked 351 Times in 350 Posts
sunfighter is on a distinguished road
Quote:
I have pretty much no knowledge in coding but pick up what I need along the way.
The best advise I could give you at this point is "Stop!". Go study coding. http://www.w3schools.com/
What your asking is basic and definitely needed for a 80-90 page site that your just going to be coming back here asking question all the time. Study, learn; You'll be happier and things will go faster for you.

Loading a header into a div with a require('./header.html'); is also used for the footer and nav column in most cases.
sunfighter is offline   Reply With Quote
Reply

Bookmarks

Tags
external javascript file

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT +1. The time now is 11:24 AM.


Advertisement
Log in to turn off these ads.