30、Banner广告:
<!--{if !empty($_SCONFIG['indexadheader'])}-->
<div class="banner468">$_SCONFIG[indexadheader]</div>
<!--{/if}-->
31、通栏广告:
<!--{if !empty($_SCONFIG['indexadcenter'])}-->
<div class="content" style="background: none; margin-bottom: 0.5em;">
$_SCONFIG[indexadcenter]
</div>
<!--{/if}-->
32、内容页广告:
<!--{if !empty($_SCONFIG['viewadmessage'])}-->
$_SCONFIG[viewadmessage]
<!--{/if}-->
33、底部广告:
<!--{if !empty($_SCONFIG['indexadfooter'])}-->
$_SCONFIG[indexadfooter]
<!--{/if}-->
34、漂浮广告:
<!--{if !empty($_SCONFIG['indexadfloating']) || !empty($_SCONFIG['indexadside'])}-->
<script type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
<script language="javascript">
<!--{if !empty($_SCONFIG['indexadfloating'])}-->
var lengthobj = getWindowSize();
lsfloatdiv('floatAdv', 0, 0, "<div style=\"position: absolute; right: 6px; bottom: -"+lengthobj.winHeight+"px;\"><!--{eval echo jsstrip($_SCONFIG['indexadfloating']);}--></div>").floatIt();
<!--{/if}-->
35、侧边广告:
<!--{if !empty($_SCONFIG['indexadside'])}-->
lsfloatdiv('coupleBannerAdv', 0, 0, "<div style=\"position: absolute; left: 6px; top: 6px;\"><!--{eval echo jsstrip($_SCONFIG['indexadside']);}--><br><img src=\"{S_URL}/images/system/advclose.gif\" onMouseOver=\"this.style.cursor='hand'\" onClick=\"closeBanner('coupleBannerAdv');\"></div><div style=\"position: absolute; right: 6px; top: 6px;\"><!--{eval echo jsstrip($_SCONFIG['indexadside']);}--><br><img src=\"{S_URL}/images/system/advclose.gif\" onMouseOver=\"this.style.cursor='hand'\" onClick=\"closeBanner('coupleBannerAdv');\"></div>").floatIt();
<!--{/if}-->
</script>
<!--{/if}-->
36、弹窗广告:
<!--{if !empty($_SCONFIG['indexadwindow'])}-->
<script type="text/javascript">
window.open('$_SCONFIG[indexadwindow]');
</script>
<!--{/if}-->
37、友情链接:
<!--{block name="bbslink" parameter="order/displayorder/limit/0,100/cachetime/11600/namelen/16/cachename/bbslink/tpl/data"}-->
<!--{eval $imglink=$txtlink="";}-->
<!--{loop $_SBLOCK['bbslink'] $value}-->
<!--{if $value[logo]}-->
<!--{eval $imglink .="<li><a href=\"".$valuehttp://fpdownload.macromedia.com ... cab#version=6,0,0,0" width="'+ _width +'" height="'+ flash_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+f+'"><param name="quality" value="high"><param name="bgcolor">');
document.write('<param name="menu" value="false"><param name=wmode value="transparent">');
document.write('<param name="FlashVars" value="pics='+p+'&links='+l+'&texts='+t+'&borderwidth='+_width+'&borderheight='+_height+'&textheight='+text_height+'">');
document.write('<embed ID="focus_flash" src="'+f+'" wmode="opaque" FlashVars="pics='+p+'&links='+l+'&texts='+t+'&borderwidth='+_width+'&borderheight='+_height+'&textheight='+text_height+'" menu="false" quality="high" width="'+ _width +'" height="'+ flash_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
//-->
</SCRIPT>
文中使用的flash文件未找到,遗憾了!
----------------我是淫荡的分割线-----------------------
另外一种代码效果,不过未试验过,有兴趣大家可以试试看
<!--资讯图片幻灯片 开始-->
<!--{block name="spacenews" parameter="haveattach/1/showattach/1/order/i.dateline DESC/limit/0,6/subjectlen/20/cachetime/11930/cachename/picnews/tpl/data"}-->
<script type="text/javascript">
var varText = ""
function addInfo(title,photourl,link){
if(varText!=""){
varText+="|||";
}
varText+=title+"|_|"+photourl+"|_|"+link;
}
linkarr = new Array();
picarr = new Array();
textarr = new Array();
<!--{eval $i=0;}-->
<!--{loop $_SBLOCK['picnews'] $key $value}-->
linkarr[$i] = "<!--{eval echo url_remake($value['url']);}-->";
picarr[$i] = "$value[a_thumbpath]";
textarr[$i] = "$value[subject]";
<!--{eval $i++;}-->
<!--{/loop}-->
//
addInfo(textarr[1],picarr[1],linkarr[1]);
addInfo(textarr[2],picarr[2],linkarr[2]);
addInfo(textarr[3],picarr[3],linkarr[3]);
addInfo(textarr[4],picarr[4],linkarr[4]);
addInfo(textarr[5],picarr[5],linkarr[5]);
document.write('<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="410" height="200" id="01" align="middle">')
document.write('<param name="allowScriptAccess" value="sameDomain" />')
document.write('<param name="movie" value="http://www.yaluncn.com/images/xcblue/toplist/flash.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="{S_URL}/templates/$_SCONFIG[template]/images/flash.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>
----------------我是淫荡的分割线-----------------------
ss页面调用技巧之分页格式的修改
主要说一下,内容页中分页的修改,增加一种上下页的效果。
1.分页样式在 模板文件夹下的 css/style.css 里面改
找到 .pages ,根据需要改后面的参数就可以了。
2.实现“上一页” “下一页”效果的方法:
在模板文件夹下找到 news_view.html.php
再找到以下代码:
<div class="pages">$multipage</div>
在上面的代码前加上
<!--{eval $multipage=str_replace('>','下一页',$multipage);}-->
<!--{eval $multipage=str_replace('<','上一页',$multipage);}-->
----------------我是淫荡的分割线-----------------------
ss页面调用技巧之调用论坛内容
一、排行序列
示列图一
里面的1,2,3,4,5,6……等序列,当然还可以用背景图做成的,我这里不用
及里面的热门进度条
代码:
复制内容到剪贴板代码:
<!--{block name="bbsforum" parameter="type/forum/allowblog/1/order/posts DESC/limit/0,10/cachetime/14400/cachename/hotforums/tpl/data"}-->
<!--{if !empty( $_SBLOCK['hotforums'])}-->
<!--{eval $i=1;}-->
<!--{loop $_SBLOCK['hotforums'] $key $value}-->
<tr><td><img src="/templates/cnbfg/images/num-$i-on.gif" border=0></td><td><div class="title1"><a href="$value" target="_blank">$value[name]</a></div></td><td><div class="title2"><img src="/templates/cnbfg/images/hot-$i-bbs.gif" border=0></div></td><td><div class="number">$value[posts]</div></td></tr>
<!--{eval $i++;}-->
<!--{/loop}-->
<!--{/if}--> |