PDA

View Full Version : PopUps



totallychibi
02-07-2007, 11:53 PM
I am relatively new at javascripting,
so my lingo is a little off
hope i will be able to get the case across

i have a web site which streams mpeg4
it is shown via Active X
there are four frames
each with a different feed

i would like to double-click on an image
and have it pop-Up full screen

but i cannot been to wrap any anchors around the image to do so

this is what i have so far

<script language="JavaScript" type="text/javascript">
<!--


if ((navigator.appName == "Microsoft Internet Explorer") && (navigator.platform != "MacPPC") && (navigator.platform != "Mac68k")) {
var browser = "IE"
} else {
var browser = "Netscape"
}
var File = "rtsp://" + host + ":554/mpeg4/1/media.amp";
var output = "";

if ((browser == "IE") && ("activex" != "quicktime")) {
output = '<OBJECT ID="Player" width=' + width + ' height=' + height + ' CLASSID="CLSID:DE625294-70E6-45ED-B895-CFFA13AEB044" CODEBASE="/activex/AMC.cab#version=3,32,37,1">';
output += '<param name="MediaURL" value="' + File + '">';
output += '<param name="MediaType" value="auto-sense">';
output += '<param name="ShowStatusBar" value="0">';
output += '<param name="ShowToolbar" value="0">';
output += '<param name="AutoStart" value="1">';
output += '<BR>AXIS Media Control, which enables streaming video in Microsoft Internet Explorer, could not be registered on this computer. To install AXIS Media Control, you must have administration rights on this computer and you must answer Yes when asked if you wish to allow the installation. The AXIS 232D+ can also be configured to show still images.';
output += '<BR></OBJECT>';
} else {
output = '<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width=' + width + ' height=' + height + ' CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">';
output += '<param name="src" value="/view/AxisMoviePoster.mov">';
output += '<param name="autoplay" value="true">';
output += '<param name="controller" value="false">';
output += '<param name="qtsrc" value="' + File + '">';
output += '<embed src="/view/AxisMoviePoster.mov" width=704 height=576 qtsrc="' + File + '" autoplay="true" controller="false" target="myself" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></embed>';
output += '</OBJECT>';
}
document.write(output);
// -->
</script>


any ideas?

totallychibi
02-08-2007, 11:42 PM
ok,
am going to try layers
and putting div tags around the flash code