Barons Posted August 11, 2011 Share Posted August 11, 2011 Hi, I'm trying to add a huge list of quotes to my site. I would like a new quote to display every so many seconds. Can this be done using php? I've found many things online that tell me how to make random quotes but all them them require you to refresh the page each time it shows one. To me that kinda defeats the purpose. I've seen it done in javascript but I haven't been able to find a demo of it online. Thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/244466-php-make-a-random-quote-function-that-works-without-refreshing-the-page/ Share on other sites More sharing options...
Barons Posted August 12, 2011 Author Share Posted August 12, 2011 I didn't know i needed ajax to do this but I'm getting closer now that this topic was moved here I searched abit and found a link to someone on another forum that did the same thing I'm trying to do. http://www.webmasterworld.com/javascript/3700144.htm This guy seems to have gotten it to work but he only lists part of his code. Could anyone help me figure out what I need to search for to find the rest of the code to get this working? Quote Link to comment https://forums.phpfreaks.com/topic/244466-php-make-a-random-quote-function-that-works-without-refreshing-the-page/#findComment-1256220 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.