Javascript Open Flash Object

<script src=”/commons/js/flashobject.js” type=”text/javascript”></script> <script src=”/commons/js/FlashDetect.js” type=”text/javascript”></script>
<script type=”text/javascript”>// <![CDATA[
// Globals
// Major version of Flash required
var requiredMajorVersion = 8;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;
function openVideoPopUp()
{
document.getElementById(“showflash”).style.display=””;
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
// Check to see if the version meets the requirements for playback
if (hasReqestedVersion)
{
var fo = new FlashObject(“falsh.swf”, “showingflashvideo”, “300”, “300”, “9”, “”);
fo.addParam(“quality”,”high”);
fo.addParam(“menu”, “false”);
fo.addParam(“wmode”, “transparent”);
fo.addParam(“allowfullscreen”, “true”);
fo.addParam(“flashvars”,”var1=source”);
fo.write(“showflash”);
}
else
{
var alternateContent = ”
+ ‘<span>This content requires the Adobe Flash Player. ‘
+ ‘<a href=http://www.adobe.com/go/getflash></a>Get Flash</a></span>’;
//document.write(alternateContent);  // insert non-flash content
document.getElementById(‘showflash’).innerHTML=alternateContent
}
}
function closeVideoPopUp()
{
document.getElementById(“showflash”).style.display = “none”;
}
// ]]></script>
<a href=”javascript:openVideoPopUp()”> </a>

<script src=”/commons/js/flashobject.js” type=”text/javascript”></script> <script src=”/commons/js/FlashDetect.js” type=”text/javascript”></script><script type=”text/javascript”>// <![CDATA[// Globals// Major version of Flash requiredvar requiredMajorVersion = 8;// Minor version of Flash requiredvar requiredMinorVersion = 0;// Minor version of Flash requiredvar requiredRevision = 0;
function openVideoPopUp(){ document.getElementById(“showflash”).style.display=””; var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); // Check to see if the version meets the requirements for playback if (hasReqestedVersion) { var fo = new FlashObject(“falsh.swf”, “showingflashvideo”, “300”, “300”, “9”, “”); fo.addParam(“quality”,”high”); fo.addParam(“menu”, “false”); fo.addParam(“wmode”, “transparent”); fo.addParam(“allowfullscreen”, “true”); fo.addParam(“flashvars”,”var1=source”); fo.write(“showflash”); } else  {   var alternateContent = ” + ‘<span>This content requires the Adobe Flash Player. ‘ + ‘<a href=http://www.adobe.com/go/getflash></a>Get Flash</a></span>’; //document.write(alternateContent);  // insert non-flash content document.getElementById(‘showflash’).innerHTML=alternateContent  }}function closeVideoPopUp(){ document.getElementById(“showflash”).style.display = “none”;}// ]]></script>
<a href=”javascript:openVideoPopUp()”> </a>

Leave a comment