一款flash图片切换的源码

1

<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://www.macromedia.com/go/getflashplayer\">";
str += "</object>";
document.write(str);
}
</SCRIPT>
<div class=flash>
<SCRIPT type=text/javascript>    
CreateFlash("finance_photo","http://wangyeba.com/teixiao/UploadFiles_4612/200812/2008120510084601.swf", 298, 250);
 function getXml() {return "<?xml version='1.0' encoding='utf-8'?><root><p u='/teixiao/UploadFiles_4612/200812/20081205100617998.jpg' a='http://www.wangyeba.com/' n='茱莉:婚恋交友网站信赖是命脉'/><p u='/teixiao/UploadFiles_4612/200812/20081205100618600.jpg' a='http://www.qpsh.com/' n='孙德良:冬天论电子商务首当其冲'/><p u='/teixiao/UploadFiles_4612/200812/20081205100618789.jpg' a='http://www.wangyeba.com/' n='俞渝:目前电子商务不必看重回报'/><p u='/teixiao/UploadFiles_4612/200812/20081205100619207.jpg' a='http://www.wangyeba.com/' n='刘丹:华尔街关心模式能否坚持住'/><p u='/teixiao/UploadFiles_4612/200812/20081205100619262.jpg' a='http://www.wangyeba.com/' n='戴志康:社区向SNS转化相对简单'/></root>";}
</SCRIPT>
</div>

 2

 

你可能感兴趣的:(JavaScript,Flash,电子商务,Go,SNS)