一:找到{$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>
新闻热点
疑难解答
图片精选