PDA

View Full Version : Slide-out Popup playing Flash video?



cobalt
09-25-2006, 12:07 AM
Hey everyone.

I want to make a slide-out "popup" window that will automatically play a .flv (or .swf) video automatically with you-tube-style controls that show how much of the clip has been downloaded, and play/pause etc. controls.

The most important though is just the code to make a slide-out popup window. And can I put *any* HTML code in the popup? Because I have a huge lot of code from Dreamweaver that makes an flv player (but without the bar telling you how much of a video has been downloaded).

If anyone can help out, it would be immensely appreciated!

cobalt

cobalt
09-26-2006, 01:13 AM
I found a neat flv player that suited my needs and was free (http://www.jeroenwijering.com/?item=Flash_Video_Player).

However, I would still like to know the basic code required for a slide-out "popup"

Thanks in advance!

cobalt
09-27-2006, 01:47 AM
Okay, I found several places, but all their little html code generators for these (or even plain ordinary) popups don't work, at least not for me.
Here's some code from one:

<html>
<head>

<!-- No-Block DHTML PopUp Script created with Spider Webmaster Tools (http://spiderwebmastertools.com). -->
<script language=javascript>
var ie=document.all
var ns6=document.getElementById && !document.all
function showPopUp(){
document.getElementById('pWinConfg').style.visibility='visible';
}
function hidePopUp(){
document.getElementById('pWinConfg').style.visibility='hidden';
}
function startPopUp(){
timerID=setTimeout('showPopUp()',1000);
}
<style>.pWinConfg{
font-family:Arial, Verdana, Sans-Serif;
font-size:11px;
position:absolute;
width:340;
height:290;
background-color:white;
top:238.9520059992501;
left:470;
border-style:solid;
border-width:1;
border-color:black;
padding:0;
visibility:hidden;
@filter: progid:DXImageTransform.Microsoft.Shadow(color=,direction=135);
}</style>

</head>

<body>
<body onload="startPopUp();">
<DIV class="pWinConfg" id="pWinConfg">

This is the text of the popup ad.

</DIV>
</body>
</html>

Where is it going wrong? :(