Forum Moderators: open
<OBJECT ID="SeeVideo_Porsche" width=320 height=280 CLASSID="CLSID:68253470-5d4f-4cdf-8d9c-353c14a2f013" codebase="http://www.example.com/file.cab#version=2,5,13,110">
<PARAM NAME="ServerIP" VALUE="999.999.999.999">
<PARAM NAME="PortNum" VALUE="5000">
<PARAM NAME="MediaItem" VALUE="77872023">
<PARAM NAME="NoTicket" VALUE="1">
<PARAM NAME="AutoPlay" VALUE="1">
<PARAM NAME="RandomEnable" VALUE="1">
<PARAM NAME="SkinName" VALUE="2003default_320">
<PARAM NAME="SkinCodeBase" VALUE="http://www.example.com/otherfile.sbd#Version=31015">
</OBJECT>
Liz
<script type="text/javascript">
function popWithThis(MediaItem){
imgWin = window.open('','',id);
with (imgWin.document){
writeln('<html><head></head><body bgcolor=000000 scroll="no">');
writeln('<OBJECT ID="SeeVideo_Porsche" width=320 height=280 ');
writeln('CLASSID="CLSID:68253470-5d4f-4cdf-8d9c-353c14a2f013" ');
writeln('codebase="http://www.example.com/file.cab#version=2,5,13,110"> ');
writeln('<PARAM NAME="ServerIP" VALUE="999.999.999.999"> ');
writeln('<PARAM NAME="PortNum" VALUE="5000"> ');
writeln('<PARAM NAME="MediaItem" VALUE="'+MediaItem+'">');
writeln('<PARAM NAME="NoTicket" VALUE="1"> ');
writeln('<PARAM NAME="AutoPlay" VALUE="1"> ');
writeln('<PARAM NAME="RandomEnable" VALUE="1"> ');
writeln('<PARAM NAME="SkinName" VALUE="2003default_320"> ');
writeln('<PARAM NAME="SkinCodeBase"');
writeln('VALUE="http://www.example.com/otherfile.sbd#Version=31015"> ');
writeln('</OBJECT></body></html>');
}}
</script>
Then put this link somewhere on the page:
<a href="#" onclick="popWithThis('77872023');return false;">Test</a>
Let me know how that works out -- it's tested but it was also very very quickly thrown together. For the different links, you just swap out the number in the link. :)
It works in one browser only -- the one I tested in. All the rest choke because there are all sorts of characters which need to be escaped. Basically everywhere you see a "/" it needs to have a "\" in front of it, making "\/". I may have made other syntax errors as well, I have about ten minutes to get it working before I have to go...
If I don't post again tonight, I'll do my best to do it this weekend sometime. Perhaps someone more knowledgable will post an even better way of doing the whole thing. (This method is what I would describe as "brute force." There's probably a very smooth and simple way of accomplishing the same end goal.)
<script type="text/javascript">
function popWithThis(MediaItem){
imgWin = window.open('','Movie','');
with (imgWin.document){
writeln('<html><head><\/head><body bgcolor=000000 scroll="no">');
writeln('<OBJECT ID="SeeVideo_Porsche" width=320 height=280 ');
writeln('CLASSID="CLSID:68253470-5d4f-4cdf-8d9c-353c14a2f013" ');
writeln('codebase="http:\/\/www.example.com\/file.cab#version=2,5,13,110"> ');
writeln('<PARAM NAME="ServerIP" VALUE="999.999.999.999"> ');
writeln('<PARAM NAME="PortNum" VALUE="5000"> ');
writeln('<PARAM NAME="MediaItem" VALUE="'+MediaItem+'">');
writeln('<PARAM NAME="NoTicket" VALUE="1"> ');
writeln('<PARAM NAME="AutoPlay" VALUE="1"> ');
writeln('<PARAM NAME="RandomEnable" VALUE="1"> ');
writeln('<PARAM NAME="SkinName" VALUE="2003default_320"> ');
writeln('<PARAM NAME="SkinCodeBase"');
writeln('VALUE="http:\/\/www.example.com\/otherfile.sbd#Version=31015"> ');
writeln('<\/OBJECT><\/body><\/html>');
}}
</script>