文书文秘网旗下的动易爱好者频道 www.5151doc.com

文书文秘网首页 | 动易爱好者首页 | 动易模板下载 |

您现在的位置: 文书文秘网免费网 >> 动易2006帮助 >> 常见问题 >> 文章正文
我想在海之恋首页模版的滑门中增加一个选项卡,该如何修改?

        

我想在海之恋首页模版的滑门中增加一个选项卡,该如何修改?
作者:动易网络  文章来源:动易网络  点击数:  更新时间:2007-9-12 21:29:41

一:找到{$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+' width=417 height=99 border=0 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 height=21 cellSpacing=0 cellPadding=0 width="100%" background={$InstallDir}Skin/sealove/news_topbg.gif border=0>
    <tr>
      <td width=17><IMG src="{$InstallDir}Skin/sealove/space.gif"></td>
      <td width=101><IMG id=bt1 onmouseover=javascript:clearInterval(inter);change(1) style="CURSOR: hand" onmouseout=javascript:inter=setInterval(next,2500); height=21 src="{$InstallDir}Skin/sealove/news_bt12.gif" width=95 border=0 name=bt1></td>
      <td width=101><IMG id=bt2 onmouseover=javascript:clearInterval(inter);change(2) style="CURSOR: hand" onmouseout=javascript:inter=setInterval(next,2500); height=21 src="{$InstallDir}Skin/sealove/news_bt21.gif" width=95 border=0 name=bt2></td>
      <td width=101><IMG id=bt3 onmouseover=javascript:clearInterval(inter);change(3) style="CURSOR: hand" onmouseout=javascript:inter=setInterval(next,2500); height=21 src="{$InstallDir}Skin/sealove/news_bt31.gif" width=95 border=0 name=bt3></td>
      <td width=205><IMG id=bt4 onmouseover=javascript:clearInterval(inter);change(4) style="CURSOR: hand" onmouseout=javascript:inter=setInterval(next,2500); height=21 src="{$InstallDir}Skin/sealove/news_bt41.gif" width=95 border=0 name=bt4></td>
      <td align=right><A href="{$InstallDir}Article/Shownew.asp"><IMG alt=更多最新更新 src="{$InstallDir}Skin/sealove/More03.gif" border=0></A></td>
    </tr>
  </table>
  <table cellSpacing=0 cellPadding=0 width="100%" border=0>
    <tr>
      <td width=1 bgColor=#dddcd9><IMG height=1 src="{$InstallDir}Skin/sealove/space.gif" width=1></td>
      <td onmouseover=javascript:clearInterval(inter); align=middle height=220>
        <table id=tb1 cellSpacing=0 cellPadding=1 width="100%" border=0>
          <tr>
            <td vAlign=top>
            <!--{$GetArticleList(1,0,true,0,0,10,false,false,"",0,3,2,27,0,false,2,false,false,3,false,false,false,true,true,false,0,1,,,,)}--> </td>
            <td vAlign=top align=middle width=150>
            <!--{$GetPicArticle(0,0,True,0,1,false,false,0,3,1,130,90,19,27,True,1)}--></td>
          </tr>
        </table>
        <table id=tb2 style="DISPLAY: none" cellSpacing=0 cellPadding=1 width="100%" border=0>
          <tr>
            <td vAlign=top>
            <!--{$GetArticleList(0,0,True,0,True,10,True,False,"",0,3,2,27,0,False,2,True,False,3,False,False,False,True,True,False,0,1,,,,)}--></td>
            <td align=middle width=150>
            <!--{$GetPicArticle(0,0,True,0,2,True,false,0,3,1,130,90,19,0,True,1)}--></td>
          </tr>
        </table>
        <table id=tb3 style="DISPLAY: none" cellSpacing=0 cellPadding=1 width="100%" border=0>
          <tr>
            <td vAlign=top>
            <!--{$GetArticleList(0,0,True,0,True,10,False,True,"",0,3,2,27,0,False,2,True,False,3,False,False,False,True,True,False,0,1,,,,)}--></td>
            <td align=middle width=150>
            <!--{$GetPicArticle(0,0,True,0,2,false,True,0,3,1,130,90,19,0,True,1)}--></td>
          </tr>
        </table>
        <table id=tb4 style="DISPLAY: none" cellSpacing=0 cellPadding=1 width="100%" border=0>
          <tr>
            <td vAlign=top>
            <!--{$GetArticleList(0,0,True,0,True,10,False,True,"",0,3,2,27,0,False,2,True,False,3,False,False,False,True,True,False,0,1,,,,)}--></td>
            <td align=middle width=150>
            <!--{$GetPicArticle(0,0,True,0,2,false,True,0,3,1,130,90,19,0,True,1)}--></td>
          </tr>
        </table>
      </td>
      <td width=1 bgColor=#dddcd9><IMG src="{$InstallDir}Skin/sealove/space.gif"></td>
    </tr>
  </table>
  <table cellSpacing=1 cellPadding=0 width="100%" bgColor=#dddcd9 border=0>
    <tr>
      <td bgColor=#f6f5f3 height=28>
        <table cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
          <tr>
            <td onmouseover=javascript:clearInterval(inter); width="80%">
              <table id=font1 cellSpacing=0 cellPadding=1 width="97%" align=center border=0>
                <tr>
                  <td width="9%"><IMG src="{$InstallDir}Skin/sealove/news_go.gif"></td>
                  <td width="91%"><A href="{$InstallDir}Article/Shownew.asp">最新文章更新</A></td>
                </tr>
              </table>
              <table id=font2 style="DISPLAY: none" cellSpacing=0 cellPadding=1 width="97%" align=center border=0>
                <tr>
                  <td width="9%"><IMG src="{$InstallDir}Skin/sealove/news_go.gif"></td>
                  <td width="91%"><A href="{$InstallDir}Article/ShowHot.asp">前十篇热门文章</A></td>
                </tr>
              </table>
              <table id=font3 style="DISPLAY: none" cellSpacing=0 cellPadding=1 width="97%" align=center border=0>
                <tr>
                  <td width="9%"><IMG src="{$InstallDir}Skin/sealove/news_go.gif"></td>
                  <td width="91%"><A href="{$InstallDir}Article/ShowElite.asp">前十篇推荐文章</A></td>
                </tr>
              </table>
              <table id=font4 style="DISPLAY: none" cellSpacing=0 cellPadding=1 width="97%" align=center border=0>
                <tr>
                  <td width="9%"><IMG src="{$InstallDir}Skin/sealove/news_go.gif"></td>
                  <td width="91%"><A href="{$InstallDir}Article/ShowElite.asp">自定义文章</A></td>
                </tr>
              </table>
            </td>
            <td align=middle width="20%">
              <table cellSpacing=0 cellPadding=0 border=0>
                <tr>
                  <td><IMG style="CURSOR: hand" onclick=javascript:clearInterval(inter);prev(); height=22 src="{$InstallDir}Skin/sealove/news_dwonbt_r1_c1.gif" width=23></td>
                  <td><IMG style="CURSOR: hand" onclick=javascript:clearInterval(inter); height=22 src="{$InstallDir}Skin/sealove/news_dwonbt_r1_c2.gif" width=24></td>
                  <td><IMG style="CURSOR: hand" onclick=javascript:clearInterval(inter);next(); height=22 src="{$InstallDir}Skin/sealove/news_dwonbt_r1_c3.gif" width=24></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>

 

二:需要自己再修改的地方

1.Skin/sealove 文件夹中加入news_bt41.gif(默认选项卡图片),news_bt42.gif(鼠标悬停时选项卡图片)

2.        <table id=tb4 style="DISPLAY: none" cellSpacing=0 cellPadding=1 width="100%" border=0>
          <tr>
            <td vAlign=top>
            <!--{$GetArticleList

(0,0,True,0,True,10,False,True,"",0,3,2,27,0,False,2,True,False,3,False,False,False,True,True,False,0,1,,,,)}--

></td>
            <td align=middle width=150>
            <!--{$GetPicArticle(0,0,True,0,2,false,True,0,3,1,130,90,19,0,True,1)}--></td>
          </tr>
        </table>

加红色的两个标签内容为鼠标移到相应选项卡时显示的具体内容.请根据实际需要修改

3.              <table id=font4 style="DISPLAY: none" cellSpacing=0 cellPadding=1 width="97%" align=center

border=0>
                <tr>
                  <td width="9%"><IMG src="{$InstallDir}Skin/sealove/news_go.gif"></td>
                  <td width="91%"><A href="{$InstallDir}Article/ShowElite.asp">自定义文章</A></td>
                </tr>
              </table>

红色部分为鼠标移到相应选项卡时在滑门下边的提示还有连接.请根据需要做相应的修改.

文章录入:5151doc    责任编辑:5151doc 
  • 上一篇文章:

  • 下一篇文章:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    最新热点
    最新推荐
    相关文章
    相关信息