<script language="JavaScript">
var backImage = new Array();
backImage[0] = "http://www.url.com/ay/bg.gif";
backImage[1] = "http://www.url.com/ay/bg2.gif";
backImage[2] = "http://www.url.com/ay/bg3.gif";
backImage[3] = "http://www.url.com/ay/bg4.gif";
function changeBGImage(whichImage){
if (document.body){
document.body.style.backgroundImage = "url("+backImage[whichImage]+")";
}
}
</script>
My question / Plea for help ...
That allows the user to select a body background image, how would i get it so that it remembers it in a cookie ?
A seperate question too... Is it possible to save it in a text file rather than a mysql database, im looking for it to eventually be used on a network and no matter where they log in they would get their bg, but the school have said no to SQL. Text file?
Cheers guys!
