|
Helping ordinary people create extraordinary websites! |
Random and Duplicate Content With JavaScriptBy Will Bontrager2005-06-16
Random and Duplicate Content With JavaScript We receive numerous questions about random content delivery. These are usually related to ads, images, or other content that appears on web pages next to the main copy. JavaScript can be used for this job. A generator is available to create the Javascript See http://willmaster.com/displayrand The content can be ads, images, syndicated copy — pretty much any HTML and JavaScript that can be used on a regular web page. Use the generator to plug in your content. Then decide which of the features you prefer of those listed below. Cookies keep track of which content was last served to each individual site visitor. When there is no cookie, the JavaScript assumes this is the individual's first visit and content is pseudo-randomly selected.
Now you can have what works best for you. For example, if you want an ad shown 7 times, then a different ad selected, you can have that. Images can be displayed randomly every time the visitor loads a page, with no image displayed twice in a row. If you offer a variety of specials, but want the same person to always see the same one, you can do that. Use the JavaScript on one web page or many. It should work for pretty much any content you can paste into the generator form, so long as the site visitor has JavaScript and cookies turned on. Tutorial Pages: » Random and Duplicate Content With JavaScript Copyright 2004 Bontrager Connection, LLC |
|