SWFObject: Javascript Flash Player detection and embed script

SWFOjbect,一个不错的flash播放器插入脚本。你可以点击这里访问其网站并下载。他可以帮助你轻松的在页面中插入flash播放器,并且支持目前所有主要的浏览器。

sample:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<script type="text/javascript" src="/js/flashobject.js"></script>
</head>

<body>
            
<div id="flash_demo">
                
<div id="no_falsh_block">Your browser does not have Flash Player 8. <href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" title="Download FP8">Download Flash Player 8</a>.</div>
            
</div>
                            
            
<script type="text/javascript">
                
// <![CDATA[
                var fObj = new FlashObject("/demo/demo_home.swf""demohome""496""376"7"#1F1F1F");
                fObj.addParam(
"base",".");
                fObj.write(
"flash_demo");
                
// ]]>
            
</script>
            
</body>

</html>

posted on 2006-08-14 11:21  超子  阅读(649)  评论(0编辑  收藏  举报

导航