February 26, 200917 yr I have this site that I am working on: http://www.pigeondesigner.co.uk/_clientwork/elite-offset/ What I want to be able to do is to randomize the testimonials box on the left hand side with every refresh - what is the most simple way of doing this? Ideally I don't want to use a database... Ideas on a postcard Cheers in advance
February 26, 200917 yr Using XML in this tutorial: XML Random Quotes Or there are ways to do it with "flat files", the comments saved to a txt file and have your PHP pull a random one.
February 26, 200917 yr Author Good answer John - Will take a look at that tonight when I get home from the real job lol I will update you on how it goes for me
February 26, 200917 yr hehe thanks, look forward to hearing how it goes. XML is somthing i am looking to use more
February 26, 200917 yr Author Ah bugger - the client has his own hosting..... no php server!! lol So it has to be a non-php way of randomizing.... jquery/jscript??
February 26, 200917 yr Author No problems - I have found a nice simple way of doing it via Javascript - got to work on the css side of things, but it looks promising Cheers anyhow
February 26, 200917 yr I guess you could create a js randomiser tied to a js array, store all the testimonials in the javascript array and have the randomiser script return the random array string. Im googling it atm but havnt found anything decent just yet. Edit, cool. glad you found a way I would be intrested in seeing how if you dont mind sharing
February 26, 200917 yr Author Yeah no worries - I have uploaded it to the site - feel free to browse the source code
Create an account or sign in to comment