PDA

View Full Version : Question for DDadmin



mrmesells
08-16-2006, 03:24 PM
http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm

Hi,
I am wondering about your conclusions regarding the
stylesheet switcher code fix that you did the other day.
Is your patch a bug fix, or what?
Also, can you please add a random or rotating stylesheet
selection to the script?
Thanks,
MikeE

ddadmin
08-16-2006, 05:35 PM
Just for the sake of other people reading this thread, you're referring to this thread (http://www.dynamicdrive.com/forums/showthread.php?t=12108). I'll have to take a look at the problem again later this week, but yes, most likely, there will be changes to the Style sheet switcher script on DD. I'll take into consideration your suggestions as well.

mrmesells
08-16-2006, 07:49 PM
ddadmin,

Thank you so much. I will be using the script; and know that random is a highly desirable item. I updated mine according to your fix, but i'm unsure if I updated the script correctly.

Some dude named kevin gave me a php stylesheet random/rotate a while back, and you are welcome to use it, to develop it, if you'd like.
<pre> <link rel="stylesheet" type="text/css" href="<?php
$stylesarray = array("css/24a","css/24b","css/24c","css/24d","css/24e","css/24f");echo $stylesarray[mt_rand(0,count($stylesarray)-1)];?>.css" />
</link> </pre>

We ended up developing this, a very good example of a pulldown with random selector, also php, top right: http://ezportal.org

Mike