<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>兼容各浏览器flash焦点幻灯片动画 </title>
<meta name="keywords" content="jquery特效,JS代码,js特效代码大全,js特效广告代码,导航菜单代码" />
<meta name="description" content="懒人建站为您提供-JS代码,js特效代码大全,js特效广告代码,下拉菜单,下拉菜单代码,导航菜单代码和基于jquery的各种特效与jquery插件。" />
</head>
<body>
<div class="focus">
<script type="text/javascript">
var focus_width=360;
var focus_height=270;
var text_height=0;
var swf_height = focus_height+text_height;
var pics='',links='', texts='';
pics+='|images/img01.jpg';links+='|http://www.baidu.com';texts+='|郑州豫甲商贸一企业慰问驻三亚某基地官兵';
pics+='|images/img02.jpg';links+='|http://www.baidu.com';texts+='|原副省长、省人大副主任李志斌品鉴水晶舍得';
pics+='|images/img03.jpg';links+='|http://www.baidu.com';texts+='|西沙徐司令';
pics+='|images/img04.jpg';links+='|http://www.baidu.com';texts+='|百度';
pics=pics.substring(1);links=links.substring(1);texts=texts.substring(1);
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="images/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" ?bgcolor="#ffffff" quality="high" width="'+
focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
</script>
</div>
<p>兼容各浏览器flash焦点幻灯片动画,网上有很多这个版本的提供下载,不过多少都有点问题,有的不兼容火狐,有的数据调用麻烦。我再这里把数据调用的地方做了些改动,现在只需要类似
pics+='|images/img01.jpg';links+='|http://www.baidu.com';texts+='|郑州豫甲商贸一企业慰问驻三亚某基地官兵'; 读循环就可以了。</p>
</body>
</html>