Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Is it (or how do I) possible to:  (Read 737 times)

0 Members and 1 Guest are viewing this topic.
Is it (or how do I) possible to:
« on: February 16, 2007, 08:31:21 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 5213
Create a random embed media, as in, whenever the page refreshes the embedded video will randomize?
If so, anyone got any code, or can help me?
Logged

mit

Re: Is it (or how do I) possible to:
« Reply #1 on: February 17, 2007, 10:43:41 am »
  • QBASIC programmer since age 4. Take that, world.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 1079
What language? In PHP you could send a random output like this:
Code: [Select]
$randomStuff = array(
"<embed whatever video one>",
"<embed whatever video two>",
"<embed whatever video three>"
//etc
);
echo $randomStuff[random(count($randomStuff)-1)];


You could also do it in Javascript or something else.
Logged
Programmer / Spriter / Level designer / Game Director / Web Designer / Music Sequencer for
Random Highscore table:

Play the Kousou Arcade today!
  • Kousou Games
Re: Is it (or how do I) possible to:
« Reply #2 on: February 17, 2007, 08:08:51 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 5213
Thanks dude. ^_^
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.245 seconds with 43 queries.

anything