一款FLASH图片切换效果

<html>
<head>
<title>中国站长站上的一款FLASH图片切换效果 </title>
<SCRIPT>
function CreateFlash(idad, swfurl, wad, had, vs){
var str = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"" + wad + "\" height=\"" + had + "\" id=\"" + idad + "\" align=\"middle\">";
str += "<param name=\"allowScriptAccess\" value=\"always\">";
str += "<param name=\"quality\" value=\"high\">";
str += "<param name=\"movie\" value=\"" + swfurl + "\">";
str += '<param name=\"wmode\" value=\"transparent\">';
str += "<param name=\"flashvars\" value=\"" + vs + "\">";
str += "<embed src=\"" + swfurl + "\" flashvars=\"" + vs + "\" wmode=\"transparent\" quality=\"high\" width=\"" + wad + "\" height=\"" + had + "\" name=\"" + idad + "\" align=\"middle\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\http://danjb.diandian.com/>";
str += "</object>";
document.write(str);
}
</SCRIPT>

</head>
<body>
 <div class="flash">
<script type="text/javascript">   
CreateFlash("finance_photo", http://tianmsc.sinaapp.com/ , 298, 250);
 function getXml() {return "<?xml version='1.0' encoding='utf-8'?><root><p u='http://www.qpsh.com/icon/chinaz_1.jpg' a=http://zyymxwssd.sinaapp.com/' n='茱莉:婚恋交友网站信赖是命脉'/><p u='http://www.qpsh.com/icon/chinaz_2.jpg' a=http://tianmsc.sinaapp.com/' n='孙德良:冬天论电子商务首当其冲'/><p u='http://www.qpsh.com/icon/chinaz_3.jpg' a=http://tianmscnz.sinaapp.com/' n='俞渝:目前电子商务不必看重回报'/><p u='http://www.qpsh.com/icon/chinaz_4.jpg' a=http://zuyppp.diandian.com/' n='刘丹:华尔街关心模式能否坚持住'/><p u='http://www.qpsh.com/icon/chinaz_5.jpg' a=http://diannaoz.diandian.com/' n='戴志康:社区向SNS转化相对简单'/></root>";}
</script>
</div>
</body>
</html>

posted @ 2012-11-05 22:14  tmscnz  阅读(182)  评论(0编辑  收藏  举报