If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member killertofu's Avatar
    Join Date
    Jan 2006
    Member #
    G'day People,

    My question is about my webpage,, and it has to do with the video setup in the center section. I have several videos that I would like to display, and was wondering if there was a way that I could cycle them, so that each time someone visits the page, they get a different video, random or not.

    My past experiences have taught me that this might be solved by Java instead of core code, but I figured I'd try here first. Thanks.


  3. #2
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Erie, PA
    Member #
    1 times
    I would think that you could use cookies for this. I personally have never used cookies, but I know that they are for storing information on the user's computer. I would think that you could store a cookie in their computer holding the number of times they've visited the site, and choose your video based on that.
    Here are some links about cookies that I thought looked useful:


    ps: love the mario pic! check out my mario-themed myspace page:
    choosy developers choose gif!
    website | paintings | blog

  4. #3
    Senior Member igeek's Avatar
    Join Date
    Oct 2005
    Member #
    I would suggest using javascript to do that..
    do it via client side scripting..
    this is just a simple random javascript function if you want to remember
    which video someone has seen then you could use cookies with javascript..

    <script language="JavaScript">
    function random_imglink(){
    var myimages=new Array()
    var ry=Math.floor(Math.random()*myvideo.length)
    if (ry==0)ry=1
    document.write('<div align="center">		
    <object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"
     height="200" width="300" name="Laughing_Yogi">
    <param name="cache" value="true" />
    <param name="controller" value="false" />
    <param name="autoplay" value="true" />
    <param name="controls" value="ImageWindow" />
    <param name="autostart" value="true" />
    <param name="src" value="'+myimages[ry]+'"  />
    <embed height="200" name="Laughing_Yogi" src="'+myvideos[ry]+'" 
    type="video/x-msvideo" width="300" controls="ImageWindow" 
    autostart="true" autoplay="true" controller="false" cache="true">

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 06:04 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: