Revision: 1409
Updated Code
at October 3, 2006 11:44 by Roshambo
Updated Code
// Loads a stylesheet at random. Pass each stylesheet as an argument. function loadRandomStylesheets(stylesheets) { if(arguments.length < 1) return false; var url = arguments[Math.round(Math.random() * (arguments.length - 1))]; var html = '<style type="text/css">\ @import url(' + url + ');\ </style>'; document.write(html); return true; }
Revision: 1408
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 3, 2006 11:44 by Roshambo
Initial Code
// Loads a stylesheet at random. Pass each stylesheet as an argument. function loadRandomStylesheets(stylesheets) { if(arguments.length < 1) return false; var url = arguments[Math.round(Math.random() * (arguments.length - 1))]; var html = '<style type="text/css">\ @import url(' + url + ');\ </style>'; document.write(html); return true; }
Initial URL
Initial Description
Initial Title
Load Random Stylesheets
Initial Tags
css
Initial Language
JavaScript