PDA

View Full Version : embedding QT with js + css problem


g00fy
03-13-2003, 11:48 AM
hi to all,

maybe this should b a css post ??

i have embedded a quicktime movie using javascript and it is supposed to popup in a popup (thats why they call them popups) :)

anyway i had to embedd it with document.write to get a var into it and when it appears in the window it is not centred, i tried using a table to centre it but it still wouldn't centre (go figure)
so i used css to set an absolute position of 5px left & 5px top

when it loads (or tries to) i get the blue Q placeholder that is now in the middle and my network activity looks like it is downloading the qt file to play but it never appears :(
if i remove the css class from the div its in it works fine

any ideas,

see code below pls

<style type="text/css">
<!--
.preview {
position: absolute;
left: 5px;
top: 5px;
}
-->
</style>

<script>
document.write(' <object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="400" height="300" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">');
document.write(' <param name="src" value='+ mpgFile +' ');
document.write(' <param name="autoplay" value="true"> ');
document.write(' <param name="loop" value="false"> ');
document.write(' <param name="controller" value="true"> ');
document.write(' <embed src='+ mpgFile +' width="400" height="300" autoplay="true" loop="false" controller="true" pluginspage="http://www.apple.com/quicktime/"></embed> ');
document.write(' </object> ');
</script>


thanx to all


g00fy

Quiet Storm
03-13-2003, 03:41 PM
Could you give us the actual URL of where this code is so we can see the entire thing?

There may be something different you've overlooked that's affecting the QT script... :)