help...

Discussion in 'Computers and The Internet' started by Platinum_twf, Aug 20, 2005.

  1. Platinum_twf

    Platinum_twf Member

    Messages:
    234
    Likes Received:
    0
    how can I make it so I can put up videos that change every time the page refreshes? like I want to put like 7 videos and every time you refresh it plays 1 of the 7, like it cycles through them. is there a way to do that?

    just to show how they set up, I want these videos

    <P ALIGN=CENTER bottom>...<b>My Chemical Romance - I'm Not Okay (I Promise)<b/><p>
    <BR><embed name="RAOCXplayer" src="http://www.warnerreprise.com/asx/mychemicalromance_imnotokay_300-v.asx" type="application/x-mplayer2" width="320" height="302" ShowC.."1" ShowStatusBar="1" AutoSize="false" EnableC.."0" DisplaySize="0" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed>

    <P ALIGN=CENTER bottom>...<b>Nine Inch Nails - Closer<b/><p>
    <br><div id=vpdiv><embed name="RAOCXplayer" src="http://boss.streamos.com/wmedia/interscope/nin/downwardspiral/video/closer/000_closer.asx" type="application/x-mplayer2" width="300" height="300" ShowControls="0" ShowStatusBar="0" loop="true" EnableContextMenu="0" DisplaySize="0" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed></div>

    <P ALIGN=CENTER bottom>...<b>Ozzy Osbourne - Dreamer<b/><p>
    <br><div id=vpdiv><embed name="RAOCXplayer" src="http://www.ozzynet.com/video/ozzy_dreamerb_300.asx" type="application/x-mplayer2" width="300" height="300" ShowControls="0" ShowStatusBar="0" loop="true" EnableContextMenu="0" DisplaySize="0" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed></div>

    <P ALIGN=CENTER bottom>...<b>Motley Crue - If I Die Tomorrow<b/><p>
    <BR><div id=vpdiv><embed name="RAOCXplayer" src="http://boss.streamos.com/wmedia/ume/motley_crue/motleycrue_ifidietomorrow.asx" type="application/x-mplayer2" width="300" height="300" ShowControls="0" ShowStatusBar="0" loop="true" EnableContextMenu="0" DisplaySize="0" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed></div>

    <P ALIGN=CENTER bottom>...<b>the Used - The Taste Of Ink<b/><p>
    <BR><div id=vpdiv><embed style="FILTER: xray" name="RAOCXplayer" autoplay="true" src="http://www.warnerreprise.com/asx/theused_tasteofink_300.asx" type="application/x-mplayer2" width="320" height="265" ShowControls="1" ShowStatusBar="0" AutoSize="true" loop="true" EnableContextMenu="0" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed></div>

    <P ALIGN=CENTER bottom>...<b>Hawthorne Heights - Ohio Is For Lovers<b/><p>
    <BR><div id=vpdiv><embed name="RAOCXplayer" src="http://dalwmod011.bcst.yahoo.com/bmfroot02/BMFShare02/launch.com/15/8888046.wmv" type="application/x-mplayer2" width="300" height="300" ShowControls="0" ShowStatusBar="0" loop="true" EnableContextMenu="0" DisplaySize="0" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed></div>

    <P ALIGN=CENTER bottom>...<b>Rise Against - Swing Life Away<b/><p>
    <BR><div id=vpdiv><embed style="FILTER: xray" name="RAOCXplayer" autoplay="true" src="mms://msent.wmod.llnwd.net/a304/o2/msftmsne/Prod/wmv/v9/Video/36/74/90/100907436.wmv" type="application/x-mplayer2" width="320" height="265" ShowControls="1" ShowStatusBar="0" AutoSize="true" loop="true" EnableContextMenu="0" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed></div>
     
  2. NEMISIS

    NEMISIS GONE

    Messages:
    2,468
    Likes Received:
    0
    I'm sure there are many ways without doubt.
    Flash is an option if you know a little coding, easy stuff.
    Handy for making Pre-loaders too for people who have
    slower connections. etc, or large loading files.
    Theres probably even better ways of doing it that
    escapes me this minute. Oh, and yes, this will only
    work on your web site, but I have a feeling your on
    about your sig, which you can't do.!
     
  3. underplay

    underplay Member

    Messages:
    736
    Likes Received:
    1
    I dont think its possible with html, definitely php.
     
  4. Platinum_twf

    Platinum_twf Member

    Messages:
    234
    Likes Received:
    0
    can you use php with myspace? how would you do it with php?
     
  5. underplay

    underplay Member

    Messages:
    736
    Likes Received:
    1
    php is a very powerful scripting language(does it get compiled?), it wouldnt be enabled for myspace.
     
  6. Platinum_twf

    Platinum_twf Member

    Messages:
    234
    Likes Received:
    0
    well, how would I do it with php?
     
  7. underplay

    underplay Member

    Messages:
    736
    Likes Received:
    1
    Here is my example, http://www.underplay.net/randomsong.php

    Here is the code..

    EDIT: Oh you wanted to count from 0 to 6, that is possible but you would have to track the user who is rendering your page which would be more complicated, i coded this example before realizing you wanted them to count.

    Code:
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[url="http://www.w3.org/TR/html4/loose.dtd"]http://www.w3.org/TR/html4/loose.dtd[/url]">
        <?php
        
        	$vList[0]['name'] = "My Chemical Romance - I'm Not Okay (I Promise)";
        	$vList[0]['src'] = "[url="http://www.warnerreprise.com/asx/mychemicalromance_imnotokay_300-v.asx"]http://www.warnerreprise.com/asx/mychemicalromance_imnotokay_300-v.asx[/url]";
        	
        	$vList[1]['name'] = "Nine Inch Nails - Closer";
        	$vList[1]['src'] = "[url="http://boss.streamos.com/wmedia/interscope/nin/downwardspiral/video/closer/000_closer.asx"]http://boss.streamos.com/wmedia/interscope/nin/downwardspiral/video/closer/000_closer.asx[/url]";
        	
        	$vList[2]['name'] = "Ozzy Osbourne - Dreamer";
        	$vList[2]['src'] = "[url="http://www.ozzynet.com/video/ozzy_dreamerb_300.asx"]http://www.ozzynet.com/video/ozzy_dreamerb_300.asx[/url]";
        	
        	$vList[3]['name'] = "Motley Crue - If I Die Tomorrow";
        	$vList[3]['src'] = "[url="http://boss.streamos.com/wmedia/ume/motley_crue/motleycrue_ifidietomorrow.asx"]http://boss.streamos.com/wmedia/ume/motley_crue/motleycrue_ifidietomorrow.asx[/url]";
        	
        	$vList[4]['name'] = "The Used - The Taste Of Ink";
        	$vList[4]['src'] = "[url="http://www.warnerreprise.com/asx/theused_tasteofink_300.asx"]http://www.warnerreprise.com/asx/theused_tasteofink_300.asx[/url]";
        	
        	$vList[5]['name'] = "Hawthorne Heights - Ohio Is For Lovers";
        	$vList[5]['src'] = "[url="http://dalwmod011.bcst.yahoo.com/bmfroot02/BMFShare02/launch.com/15/8888046.wmv"]http://dalwmod011.bcst.yahoo.com/bmfroot02/BMFShare02/launch.com/15/8888046.wmv[/url]";
        	
        	$vList[6]['name'] = "Rise Against - Swing Life Away";
        	$vList[6]['src'] = "mms://[url="http://msent.wmod.llnwd.net/a304/o2/msftmsne/Prod/wmv/v9/Video/36/74/90/100907436.wmv"]msent.wmod.llnwd.net/a304/o2/msftmsne/Prod/wmv/v9/Video/36/74/90/100907436.wmv[/url]";
        	
        	$random = rand(0,6);
        	$title = $vList[$random]['name'];
        ?>
        <html>
        <head>
        	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        	<title><?=$title?></title>
        </head>
        <body>
        	<center>
     	<b>Example of generating random songs in php</b> - <i>underplay</i><br><br>
        	<b><?=$vList[$random]['name']?><b/><br>
     	<embed name="RAOCXplayer" src="<?=$vList[$random]['src']?>" type="application/x-mplayer2" width="320" height="302" ShowC.."1" ShowStatusBar="1" AutoSize="false" EnableC.."0" DisplaySize="0" pluginspage="[url="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"]http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/[/url]"></embed>
        	</center>
        </body>
        
        </html>
        
        
     
  8. Platinum_twf

    Platinum_twf Member

    Messages:
    234
    Likes Received:
    0
    thank you very very much, its good, it doesn't have to count from 0 to 6, thanks again....
     
  9. Platinum_twf

    Platinum_twf Member

    Messages:
    234
    Likes Received:
    0
    oh, when I try to put it up it comes up, with just:

    .. http-equiv="Content-Type" c.."text/html; charset=iso-8859-1">

    Example of generating random songs in php - underplay


    why does it do that?
     
  10. underplay

    underplay Member

    Messages:
    736
    Likes Received:
    1
    Probably because myspace doesnt allow php :)

    EDIT: Read 2nd page for solution.
     
  11. underplay

    underplay Member

    Messages:
    736
    Likes Received:
    1
    Ok i have found a way, use this code in your myspace crap.
    Code:
    <embed name="RAOCXplayer" src="http://www.underplay.net/randomsong.php" type="application/x-mplayer2" width="320" height="302" ShowC.."1" ShowStatusBar="1" AutoSize="false" EnableC.."0" DisplaySize="0" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed>
    
     
  12. Platinum_twf

    Platinum_twf Member

    Messages:
    234
    Likes Received:
    0
    so just put that code, not the other thing, or put both?
     
  13. underplay

    underplay Member

    Messages:
    736
    Likes Received:
    1
    Just put that code, what i put above in your myspace crap, not the code on the first page..just the code above, and edit it if you want.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice