Reply to Re: How do you use extenrnal javascript file if script different on each page?

Your name:

Reply:


Posted by Brian Cryer on 04/12/06 13:21

"xyZed" <xyzed@xyzed.co.uk> wrote in message
news:tqep32lg88evb897h1gj3n3jp3k9eomaqg@4ax.com...
>I want to use external javascript files. The only javascript I have is
> from affiliate links and many pages have different ads with different
> scripts. Is there anyway I can still use an external file? Or would I
> have to use several different ones? If so would this cause any
> problems?
>
> Would you be able to reference particular parts of javascript in a
> file containing dozens of affiliate scripts?

I think there are many different ways forward. A simple approach would be to
have a different JavaScript file for each ad. Assuming that the JavaScript
file contained statements like "document.write(...." to actually generate
any necessary html (because ads are normally a combination of html and
JavaScript) then you could place the reference to the external JavaScript
file in your html at the points where you wanted the ad to appear.

Do you have any form of server side scripting available to you? If you did
then looking at that might provide you with greater flexibilility.

Hope this helps.
--
Brian Cryer
www.cryer.co.uk/brian

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация