我想在海之恋首页模版的滑门中增加一个选项卡,该如何修改?_动易Cms教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

一:找到{$MY_动易海之恋首页最新文章表格}这个标签,用以下代码替换原来的标签代码,替换前请先做好备份工作.

<script language="JavaScript" type="text/JavaScript">
var pic_index=1;
var max_index=3;
var inter=null;
inter=setInterval(next,5000);
function changeall() {
for (i=1;i<5;i ) {
eval("tb" i).style.display="none";
eval("font" i).style.display="none";
eval("bt" i).src="{$InstallDir}Skin/sealove/news_bt" i "1.gif";
}
}
function change(a) {
changeall();
pic_index=a;
eval("tb" a).style.display="";
eval("font" a).style.display="";
eval("bt" a).src="{$InstallDir}Skin/sealove/news_bt" a "2.gif";
}
function next(){
pic_index ;
changeall();
if(pic_index>max_index){pic_index=1}
eval("tb" pic_index).style.display="";
eval("font" pic_index).style.display="";
eval("bt" pic_index).src="{$InstallDir}Skin/sealove/news_bt" pic_index "2.gif";
}
function prev(){
pic_index--;
changeall();
if(pic_index<1){pic_index=max_index}
eval("tb" pic_index).style.display="";
eval("font" pic_index).style.display="";
eval("bt" pic_index).src="{$InstallDir}Skin/sealove/news_bt" pic_index "2.gif";
}
</script>
<script>
function writeNewsImage(url, img) {
var str = '<a href=' url;
if (-1 < url.indexOf("(") || -1 < url.indexOf("javascript:") )
str =' target=_self>';
else
str =' target=_blank>';
str ='<img src=' img ' onmouseout="inter=setInterval(next,2500)" onmouseover="clearInterval(inter)" /></a>';
document.write(str);
}
function writeNewsTitle(url, des) {
var str = '<a href=' url;
if (-1 < url.indexOf("(") || -1 < url.indexOf("javascript:") )
str =' target=_self ';
else
str =' target=_blank ';
str = ' class=news0601 onmouseout="javascript:inter=setInterval(next,2500)" onmouseover="clearInterval(inter)" >';
str = des;
str = '</a>';
document.write(str);
}
</script>
<table cellSpacing=0 cellPadding=0 background={$InstallDir}Skin/sealove/news_topbg.gif>
<tr>
<td src="{$InstallDir}Skin/sealove/space.gif"></td>
<td id=bt1 onmouseover=javascript:clearInterval(inter);change(1) style="CURSOR: hand" onmouseout=javascript:inter=setInterval(next,2500); src="{$InstallDir}Skin/sealove/news_bt12.gif" name=bt1></td>
<td id=bt2 onmouseover=javascript:clearInterval(inter);change(2) style="CURSOR: hand" onmouseout=javascript:inter=setInterval(next,2500); src="{$InstallDir}Skin/sealove/news_bt21.gif" name=bt2></td>
<td id=bt3 onmouseover=javascript:clearInterval(inter);change(3) style="CURSOR: hand" onmouseout=javascript:inter=setInterval(next,2500); src="{$InstallDir}Skin/sealove/news_bt31.gif" name=bt3></td>
<td id=bt4 onmouseover=javascript:clearInterval(inter);change(4) style="CURSOR: hand" onmouseout=javascript:inter=setInterval(next,2500); src="{$InstallDir}Skin/sealove/news_bt41.gif" name=bt4></td>

查看更多 动易Cms教程  动易Cms模板

共4页上一页1234下一页
来源:模板无忧//所属分类:动易Cms教程/更新时间:2007-09-10
相关动易Cms教程