Thank you SO MUCH for the code clueful. I'm having trouble getting it to work.
I've googled so many cut and paste tutorials and tried them.. None are working. I can't figure out why.
Am I doing something wrong with my images?
<script type='text/javascript'>
function loadRandomBgImg()
{
var args = loadRandomBgImg.arguments,
dt = new Date(/*53637269707465726C61746976652E636F6D*/),
cv,
idx,
lastIdx = ( cv = document.cookie.match( /(^|\s|;)lastBgIdx=(\d+)/ ) ) ? Number( cv[ 2 ] ) : -1;
while( ( idx = Math.floor( Math.random() * args.length ) ) === lastIdx )
;
document.body.style.backgroundImage = 'url("' + args[ idx ] + '")' ;
dt.setDate( dt.getDate() + 30 );
document.cookie = 'lastBgIdx=' + idx +';expires=' + dt.toGMTString();
}
loadRandomBgImg( 'img/PAT-001-default.gif', 'img/PAT-002-dandy.gif', 'img/PAT-003-dots.gif', 'img/PAT-004-retro.gif', 'img/PAT-005-swirl.gif', 'img/PAT-006-lines.gif', 'img/PAT-007-flower.gif', 'img/PAT-008-fabric.gif', 'img/PAT-009-granny.gif', 'img/PAT-010-hibisc.gif', 'img/PAT-011-town.gif', 'img/PAT-012-blossoms.gif', 'img/PAT-013-paisli.gif', 'PAT-014-paislii.gif', 'img/PAT-015-paisliii.gif', 'img/PAT-016-blomst.gif', 'img/PAT-017-micdot.gif', 'img/PAT-018-diff.gif', 'img/PAT-019.gif' ); /** Any number of your images here **/
</script>