I'm not aware of a script for that:
I saw scripts in dynamic drive for generating popup pages on the fly, is there any way I could make a generated page like that apear in my second frame maybe??
on DD here, which one? It is possible though but, as far as I know a page like that cannot be put inside a frame. However, a single 'stock' page can be made up, a template. Then certain values on the template can be filled in using variables passed to it on its url. This still involves javascript or some other scripting language. This method is full of potential pitfalls on the internet but, if you are releasing this only on a disk and are sure all browsers will be either modern IE (5+) or modern Mozilla based like NS6+ and FF1.0+, it should be OK. Another problem will arise in IE though. Using javascript in locally run material will pop-up a security warning in the alert bar and/or a security violation 'page cannot be loaded' unless 'the mark of the web' is on all the pages. I still think a separate page for each video is the way to go but, if you want to try this out, 'the mark of the web' can be given to a page by putting:
Code:
<!-- saved from url=(0014)about:internet -->
just below the <html> tag. This must be done to all pages used in the presentation. Then a link can look like this:
HTML Code:
<a href="VideoPlayer.html?vidList=videos/playlist.m3u">Link Text</a>
Pulling that variable out is easy enough, applying it inside your OBJECT tag may be a little tricky and you may need to expand that tag to be an object/embed tag to work in Mozilla, not sure. OK, the script on the receiving page to catch this one variable could be:
Code:
<script type="text/javascript">
var vidList=location.href.split('=')[1]
</script>
and be placed in the head of the VideoPlayer.html page. Then for your OBJECT tag, you could use document.write:
Code:
<TD align="center" width="320" padding="0" bgcolor="#000000">
<script type="text/javascript">
document.write('<OBJECT ID="mediaPlayer" width="320" height="240"\n\
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"\n\
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"\n\
STANDBY="Loading Microsoft Windows Media Player components..."\n\
TYPE="application/x-oleobject">\n\
<param name="Filename" value="'+vidList+'">\n\
</OBJECT>\n')
</script>
</TD>
Right there in the body where the tag normally would go.
Bookmarks