Discussion:
How to do a random banner change
(too old to reply)
iwics2
2006-05-11 18:57:32 UTC
Permalink
Is there a way that DW 8 can set up random images...ie, every time a viewer
returns to the home page I want the banner to change, I have 5 or 6 different
banners available for this. I know there's some code out there, but surely DW 8
can do this simply - but how, I don't know.

How to?

Thanks
KB
Joe Makowiec
2006-05-11 22:34:28 UTC
Permalink
Post by iwics2
Is there a way that DW 8 can set up random images...ie, every time
a viewer returns to the home page I want the banner to change, I
have 5 or 6 different banners available for this. I know there's
some code out there, but surely DW 8 can do this simply - but how, I
don't know.
There are all kinds of widgets and scripts, depending on how
sophisticated you want to be and what kind of hosting you're on.

- Javascript: client side, server-agnostic, lots of scripts available
- I think there's some kind of ASP(.Net) widget for banner rotation
- ASP/VBScript OR PHP: There's all kinds of scripts available

These scripts will run anywhere from simple (randomly pick 1 of N) to
deeply configurable (set a cookie to avoid repeats; pick depending on
time of day; ...). Some will set background images; others will insert
an <img > tag, or change its source. Some can change a banner during a
visit.

Search the archives of this group, or do a web search for something like
'[scripttype] banner rotation'
--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php
malinchista
2006-05-11 23:38:38 UTC
Permalink
How about a slightly simpler form? I need to sub in different lines of text
(quotations) on different pages in a DW site. I'm pulling my hair out trying
to find the right search terms for a javascript. Is there a way to do this in
DW8? I've found some js for banners, but they're too specific to images--I
just need simple text swapouts.

Anyone?
iwics2
2006-05-11 23:50:16 UTC
Permalink
http://www.hypergurl.com/randomimage.html

is about the closest to what I was looking for...I am very surprised that DW 8
doesn't have this as there is a simple way to do this in GoLive CS.

Thanks
KB
vstromriderak
2006-05-12 00:56:37 UTC
Permalink
http://javascript.internet.com/miscellaneous/rotating-banner.html
malinchista
2006-05-12 01:38:42 UTC
Permalink
Not sure if the hypergurl link was meant for me or iwics, but thank you very much. It's exactly what I needed.

Best,
s.

Alan Smithee Jr.
2006-05-11 22:42:14 UTC
Permalink
http://kaosweaver.com/demo/index.php?id=5
Loading...