Menu

PHP or Javascript in Block?

Help
Fat Lizard
2003-01-24
2003-02-03
  • Fat Lizard

    Fat Lizard - 2003-01-24

    I have a block which displays a Shockwave file ..

    I'd like to be able to have the block randomly select a Shockwave file from a list of n files.

    Try as I may, I can't get anything to work.

    Anyone have some advice/tips for producing such a result?

    Cheers

     
    • Michael Cannon

      Michael Cannon - 2003-01-24

      Just a thought....

      If the code to display a Shockwave file could be entered in web links, you could then use RandomLink module to get your random file.

      Not elegant, but quick. A nicer solution would need to be a minor module.

      Michael

       
    • Fat Lizard

      Fat Lizard - 2003-02-03

      Not very elegant coding, but I now have my module for displaying a random selection from a choice of 'n' ShockWave files.

      It is a functioning module, with Admin etc., -- if I can clean it up the source and fix a couple of bits (ie., getimagesize() not returning a result), I'll release it if anyone shows any interest.

      It's currently live on www.fatlizard.com.au

      The Random Image block is on the left, and displays a Shockwave file randomly selected from the DB .. re-load the page and you should get a fresh set of images (currently there are 6 ShockWave files available).

      [ The Shockwave file in the right block is staticly linked into a plain-vanilla box. (boring) ]

       

Log in to post a comment.