PDA

View Full Version : Updated Style Sheet Switcher 1.1- need random selection



mrmesells
12-24-2006, 04:50 AM
1) Script Title:
Style Sheet Switcher 1.1


2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm


3) Describe problem:
Newly Updated version only allows random
selection if actual script is modified. I need to
be able to select random from a pulldown, checkbox,
or from hyperlink. I need it here:
http://doctoreast.freepgs.com/tools/freestuff.html


Here is a link to a PHP random stylesheet select menu, but this
one is done with a div name changer & MYSQL, which is really sucky.
http://doctoreast.freepgs.com/


Here's another PHP trick, posted only that it might trigger an answer:




<link rel="stylesheet" type="text/css" href="<?php
$stylesarray = array("css-a24/mainstyles24a.css",
"css-a24/mainstyles24b.css","css-a24/mainstyles24c.css",
"css-a24/mainstyles24d.css","css-a24/mainstyles24e.css",
"css-a24/mainstyles24f.css","css-a24/mainstyles24g.css",
"css-a24/mainstyles24h.css");echo $stylesarray[mt_rand
(0,count($stylesarray)-1)];?>" />



PLEASE HELP????
Mikey

mrmesells
12-24-2006, 09:43 AM
One fix for now, is by using the php linkref script above to select random alternates; a combo of php and js. Careful though, must be PHP parsed extension and title=random and full css filenames without extensions.

You can see it in Action at: http://voice-hearers.com/

Joe