效果预览:
标签内容:
1、参数: 频道ID 调用数量 Flash宽度 Flash高度 标题长度
2、SQL查询语句: select top {input(1)} ArticleID,ChannelID,Title,DefaultPicUrl from PE_Article Where ChannelID = {input(0)} And Status =3 and DefaultPicUrl like '%.jpg' and Deleted=0 order by ArticleID desc
3、标签内容: <script src="/Skin/sohufocus/js/sohuflash_1.js" type="text/javascript"></script> <div id="flashcontent01"></div> <script type="text/javascript"> var titles = ""; var imgs = ""; var urls = ""; function addtitle(title){ if(titles!=""){ titles+="|"; } titles+=title; } function addphotourl(photourl){ if(imgs!=""){ imgs+="|"; } imgs+=photourl; } function addlink(link){ if(urls!=""){ urls+="|"; } urls+=link; } {Loop}{Infobegin} addtitle("{$Field(2,Text,{input(4)},1,0)}"); addphotourl("{$InstallDir}{$Field(1,GetChannel,1)}/{$Field(1,GetChannel,3)}/{$Field(3,Text,0,0,0)}"); addlink("{$InstallDir}{$Field(0,GetUrl,Article,1)}"); {Infoend}{/Loop} var speed = 4000; var sohuFlash2 = new sohuFlash("/Skin/sohufocus/focus0414a.swf","flashcontent01","{input(2)}","{input(3)}","8","#ffffff"); sohuFlash2.addParam("quality", "medium"); sohuFlash2.addParam("wmode", "opaque"); sohuFlash2.addVariable("speed",speed); sohuFlash2.addVariable("p",imgs); sohuFlash2.addVariable("l",urls); sohuFlash2.addVariable("icon",titles); sohuFlash2.write("flashcontent01"); </script>
标签下载地址:搜狐flash幻灯片标签 |