PDA

View Full Version : How to do round-robin text?


jxm28788
01-Nov-2006, 01:43 PM
If I have a number of text stings how can I get them to display on my site in a round robin fashion?

I would want the a string displayed on each page of my website, but each time the user changes page they should get the next string, eg (if there were 4 messages in total) :

homepage - "message 1"
click onto section page - "message 2"
click onto product page - "message 3"
click back to section page - "message 4"
click onto another product page - "message 1"
click onto 'contact us' page - "message 2"
etc, etc

Mike Hughes
01-Nov-2006, 01:46 PM
You'll probably need to use a cookie to keep track of where in the round robin the user is and then use a bit of javascript to check the cookie and display the right line of text.

Mike

jont
01-Nov-2006, 03:13 PM
Similar thing has been covered before - see http://community.actinic.com/showthread.php?t=16995 and Normans reply which could be modifed for text rather than images