Jump to content

PHP: Make a random quote function that works without refreshing the page?


Barons

Recommended Posts

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.

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.