Basically i want to change my pages background every 15 seconds. I know how to use javascript to link stylesheets by the clients time but my time spacing would be insane for stylesheets.
Horrible attempt at Pseudo code:
$(document).ready(function() {
// Variable that generates a random number such as rgb(1-255,1-255,1-255)
var randomColor = 'rgb(' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ')';
// here is where i dont know, how would i target my css to use the new attributes,
// and how would i time, i guess i could name this function and fire it on a counter?
thanks for any assistance, off to read a really REALLY long eBook...

New Topic/Question
Reply



MultiQuote



|