PDA

View Full Version : open top 10 music flash video...



queerfm
11-07-2006, 12:44 PM
hi i would like to offer my users the following
I have a script that when the user clicks on a title it starts playing that video.

I would like to make a link at he bottom of the page that opens the video that they are watching in a new windows (full screen) Can any one help here is the script


<html>
<head>
<title>Flash FLV Player Playlist</title>
<script type="text/javascript" src="ufo.js"></script>
<style type="text/css">
body { margin: 50px; font:12/18px Arial; }
h2 { font-weight: normal; color: #C00; }
ul, li { padding: 0; list-style: none; }
li a { display: block; background: #EEE; text-decoration: none; color: #000; padding: 5px; width: 310px; }
li .alt { background:#FFF; }
li a:hover { background: #C00; color: #FFF; }
</style>
</head>

<body>


<h2>Javascript playlist example</h2>







<table border="0" width="100%" id="table1">
<tr>
<td width="0" valign="top"><div id="player"></div>
<script type="text/javascript">
function playMovie(file) {
var FO = { movie:"flvplayer.swf",
width:"320px",
height:"270px",
majorversion:"7",
build:"0",
bgcolor:"#FFFFFF",
flashvars:"file="+file+"&autoStart=true" };
UFO.create(FO, 'player');
}
playMovie('../video.flv');
</script><script type="text/javascript">
function playMovie(file) {
var FO = { movie:"flvplayer.swf",
width:"320px",
height:"270px",
majorversion:"7",
build:"0",
bgcolor:"#FFFFFF",
flashvars:"file="+file+"&autoStart=true" };
UFO.create(FO, 'player');
}
playMovie('../video.flv');
</script></td>
<td width="889" valign="top"><ul>
<li><a href="javascript:playMovie('http://www.jeroenwijering.com/upload/acera.flv')">JW's La Acera</a></li>
<li><a href="javascript:playMovie('http://www.jeroenwijering.com/upload/windmill_warriors.flv')" class="alt">JW's Windmill Warriors</a></li>
<li><a href="javascript:playMovie('http://www.queerrecords.com.au/video/ok2bgay.flv')">ok2bgay</a></li>
<li><a href="javascript:playMovie('http://www.jeroenwijering.com/upload/acera.flv')" class="alt">JW's La Acera</a></li>
<li><a href="javascript:playMovie('http://www.jeroenwijering.com/upload/windmill_warriors.flv')">JW's Windmill Warriors</a></li>
<li><a href="javascript:playMovie('http://www.queerrecords.com.au/video/ok2bgay.flv')" class="alt">ok2bgay</a></li>
<li><a href="javascript:playMovie('http://www.jeroenwijering.com/upload/acera.flv')">JW's La Acera</a></li>
<li><a href="javascript:playMovie('http://www.jeroenwijering.com/upload/windmill_warriors.flv')" class="alt">JW's Windmill Warriors</a></li>
<li><a href="javascript:playMovie('http://www.queerrecords.com.au/video/ok2bgay.flv')">ok2bgay</a></li>
<li><a href="javascript:playMovie('http://www.jeroenwijering.com/upload/acera.flv')" class="alt">JW's La Acera</a></li>

</ul></td>
</tr>
</table>



</body>
</html>

Working demo @ http://www.queerfm.net/movieflash/playlist.html

Thanks

**UPDATE**
just found out this users Java script to get the file to the flash thanks i hope that helps