A friend has been asking about some sort of a script that can be used on websites.

What they have are a list of quotes, from different people, and what theyw ould like to do is have a box on their website, say, the home page, and then every 24 hours, the quote changes, instead of simply having a 'random quote box' which displays randomly every time you refresh the page.

They want it so visitors may take the code and place it on their own websites and blogs if they want to.

Thanks.

lithriel

09-01-2007, 07:00 AM

You might want to ask the javascript people. This isn't an xhtml/css question. =)

The Javascript Source might have something like that though if you are up for browsing: http://javascript.internet.com/

Aishah

09-02-2007, 01:16 AM

Thanks, I'll have a look.

coothead

09-02-2007, 09:57 AM

Hi there Aishah,

this simple script will display a different quote for every day of the year....

quotes[244]='quote two hundred and forty five';
quotes[245]='quote two hundred and forty six';
quotes[246]='quote two hundred and forty seven';
quotes[247]='quote two hundred and forty eight';
quotes[248]='quote two hundred and forty nine';
quotes[249]='quote two hundred and fifty';
quotes[250]='quote two hundred and fifty one';
quotes[251]='quote two hundred and fifty two';

quotes[363]='quote three hundred and sixty four';
quotes[364]='quote three hundred and sixty five'; //leap year quote