Flash and HTML drop down menu!?
Posted: Fri Mar 11, 2011 1:57 pm
I am using the generated flash file plus the HTML codes but the flash appears over the HTML drop down menu on my site. What should I do?
help please...
help please...
Code: Select all
<!--FLASH STARTS-->
<table id="flashHeader" width="948" height="350" border="0" cellspacing="0" cellpadding="0" class="TABLEwhole">
<tr><td align="center" valign="middle">
<script type="text/javascript">
<!--
if ((window.p2q_Version) && (window.p2q_Version>=2.0)) {
var flashvars="";
p2q_EmbedFlash('virtual_tours/2/images/flashfile.swf','898','348','allowFullScreen','true','FlashVars', flashvars);
// Check to see if the version meets the requirements for playback
if (!DetectFlashVer(9,0,0)) {
document.write('<p class="warning">This content requires Adobe Flash Player Version 9 or higher. '
+ '<a href="http://www.adobe.com/go/getflash/">Get Flash<\/a><\/p>');
}
} else {
document.writeln('<p class="warning">p2q_embed_object.js is not included or it is too old! Please copy this file into your html directory.<\/p>');
}
//-->
</script>
<noscript>
<p class="warning">Please enable Javascript!</p>
</noscript>
</td></tr>
</table>
<!--FLASH ENDS-->
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript" src="p2q_embed_object.js"></script>
</head>
<body>
<div align="center">
<!--MENU & LOGO START-->
<?php include("_menu/topMenu.html") ?>
<!--MENU & LOGO ENDS-->
<!--FLASH STARTS-->
<table id="flashHeader" width="948" height="350" border="0" cellspacing="0" cellpadding="0" class="TABLEwhole">
<tr><td align="center" valign="middle">
<script type="text/javascript">
<!--
if ((window.p2q_Version) && (window.p2q_Version>=2.0)) {
var flashvars="";
p2q_EmbedFlash('flashfile.swf','898','348','allowFullScreen','true','FlashVars', flashvars);
// Check to see if the version meets the requirements for playback
if (!DetectFlashVer(9,0,0)) {
document.write('<p class="warning">This content requires Adobe Flash Player Version 9 or higher. '
+ '<a href="http://www.adobe.com/go/getflash/">Get Flash<\/a><\/p>');
}
} else {
document.writeln('<p class="warning">p2q_embed_object.js is not included or it is too old! Please copy this file into your html directory.<\/p>');
}
//-->
</script>
<noscript>
<p class="warning">Please enable Javascript!</p>
</noscript>
</td></tr>
</table>
<!--FLASH ENDS-->
</div>
</body>
</html>
Code: Select all
p2q_EmbedFlash('flashfile.swf','898','348','allowFullScreen','true','FlashVars', flashvars);
Code: Select all
p2q_EmbedFlash('flashfile.swf','898','348','allowFullScreen','true','wmode','transparent','FlashVars', flashvars);
Code: Select all
'wmode','opaque',
Code: Select all
'wmode','window',
Using "wMode=direct" will force hardware acceleration (true since 10.0 I think) although that will give the problem with js dropdown menus. Hardware acceleration is now always used in fullscreen mode.smooth wrote:Using 'WMODE' will though make your auto-rotate panorama very choppy on all but very powerful computers as it disables hardware acceleration
Code: Select all
<script type="text/javascript" src="pano2vr_player.js">
</script>
<script type="text/javascript" src="skin.js">
</script>
<script type="text/javascript" src="pano2vrgyro.js">
</script>
<div id="container" style="width:898px;height:348px;">This content requires HTML5/CSS3, WebGL, or Adobe Flash Player Version 9 or higher. Content of this page runs error-free on the following web browsers: Chrome, Safari & Firefox.</div>
<script type="text/javascript">
if (swfobject.hasFlashPlayerVersion("9.0.0")) {
var flashvars = {};
var params = {};
params.quality = "high";
params.bgcolor = "#ffffff";
params.allowscriptaccess = "sameDomain";
params.allowfullscreen = "true";
var attributes = {};
attributes.id = "pano";
attributes.name = "pano";
attributes.align = "middle";
swfobject.embedSWF(
"GLivinaInt.swf", "container",
"898", "348",
"9.0.0", "expressInstall.swf",
flashvars, params, attributes);
} else
// check for CSS3 3D transformations and WebGL
if (ggHasHtml5Css3D() || ggHasWebGL()) {
// use HTML5 panorama
// create the panorama player with the container
pano=new pano2vrPlayer("container");
// add the skin object
skin=new pano2vrSkin(pano);
// load the configuration
pano.readConfigUrl("GLivinaInt.xml");
// hide the URL bar on the iPhone
hideUrlBar();
// add gyroscope controller
gyro=new pano2vrGyro(pano,"container");
}
</script>
<noscript>
<p><b>Please enable Javascript!</b></p>
</noscript>
I didn't quiet get what you are trying to say!Hopki wrote:HI,
Tested with Safari and Firefox, I see the drop down menu over the Flash output?
Regards,
Hopki