第2个标签制作雷同,只是SQL的语句少了个字段:
select ID,Tid,Title,Picurl,Slide from KS_Article where tid in('栏目ID1','栏目ID2') and verific=1 and Slide =1 order by ID desc
输入上面的SQL语句后,继续下一步->在循环体里输入:
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center"><script type="text/javascript">
var varText = ""
function addInfo(title,photourl,link){
if(varText!=""){
varText+="|||";
}
varText+=title+"|_|"+photourl+"|_|"+link;
}
[loop=4]
addInfo("{$Field(Title,Text,0,...,0,)}","{$Field(Picurl,Text,0,...,0,)}","{$Field(ID,GetInfoUrl,1,1)}");
[/loop]
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="410" height="200" id="01" align="middle">')
document.write('<param name="allowScriptAccess" value="sameDomain" />')
document.write('<param name="movie" value="http://sf.mz520.cn/01.swf?info='+varText+'" />')
document.write('<param name="quality" value="high" />')
document.write('<param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" />')
document.write('<embed src="http://sf.mz520.cn/01.swf" quality="high" bgcolor="#ffffff" width="410" height="200" name="01" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object>')
</script></td>
</tr>
</table>
保存标签,在模板里调用就行啦!
具体效果可见http://i.mz520.cn 大家一起交流啊,呵呵