Results 1 to 2 of 2

Thread: Updated Style Sheet Switcher 1.1- need random selection

  1. #1
    Join Date
    Jul 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Updated Style Sheet Switcher 1.1- need random selection

    1) Script Title:
    Style Sheet Switcher 1.1


    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...etswitcher.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:

    Code:
    <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
    Last edited by mrmesells; 12-25-2006 at 08:29 AM.

  2. #2
    Join Date
    Jul 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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
    Last edited by mrmesells; 12-25-2006 at 08:27 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •