iwgalloway Posted February 21, 2007 Share Posted February 21, 2007 Hi I'm pretty new to PHP - in fact i've only used it on a couple of occasions. SO.... I'm building a site, and i'd like it to randomly select a style sheet when someone visits it [i want there to be a number of color schemes for the site] I've previously used scripts for randomly generating a picture, which select a random picture from a folder. However, i can't seem to get it to translate to random css selection [with my php knowledge, it's mainly guesswork!] In an IDEAL world, i'd like to write something that can select a color scheme for the entire visit, not just each individual page... Anyone got any ideas??? Thanks Link to comment https://forums.phpfreaks.com/topic/39390-random-style-sheet-script/ Share on other sites More sharing options...
fert Posted February 21, 2007 Share Posted February 21, 2007 read up on the rand() function and sessions Link to comment https://forums.phpfreaks.com/topic/39390-random-style-sheet-script/#findComment-189999 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.