Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: Javascript/Flash Question
From: nothing -
Date: Tue, 18 Aug 1998 14:31:57 +0100

Hunter,

A random generating Javascript. An easy way is to:

1. rename all movies to be the same, except with a numerical
ending (i.e. movie1.swf, movie2.swf, etc.);
2. generate a random number in Javascript;
3. append the random number to the basic movie name:
'movie' + numRandom + '.swf'
4. write the string to the html as part of the <EMBED> or <OBJECT>

However, this means that it'll only be available on javascript enabled
browsers.

If you've got access to CGI, it's a breeze, but that's another story...

HTH
maz.

<nothingatbigfoot [dot] com>

>From: Crash1035ataol [dot] com
>Date: Mon, 17 Aug 1998 23:02:47 EDT
>To: Flasheratshocker [dot] com
>Subject: Javascript/Flash Question
>Reply-To: flasheratshocker [dot] com
>
>I have multiple introduction movies for my site. Does anyone know of a
way to
>randomly pick one every time a user comes to the site, so that they
don't see
>the same moive over and over again?
>Thanks a lot,
>Hunter Powers
>WebAnchorataol [dot] com
>
>------------------------------------------------------------------------
>To UNSUBSCRIBE send: unsubscribe flasher in the body of an
>email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
>N.B. Email address must be the same as the one you used to subscribe.
>For info on digest mode send: info flasher to list-manageratshocker [dot] com
>
>


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]