1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

论坛网摘收藏代码安装美化版,加了个小图片,有演示.

本帖由 shenlh2006-12-17 发布。版面名称:前端开发

  1. shenlh

    shenlh New Member

    注册:
    2006-12-03
    帖子:
    6
    赞:
    0
    论坛网摘收藏代码安装美化版,加了个小图片,有演示.

    演示见http://www.sunshuka.com/admin/xinggan/20061216204714.htm
    现在网摘太流行了,不过将你的网页加入网摘,确实能带来一定的流量,稍微把代码整理了一下,加了个图片,大家可以按照说明放在你的论坛上,
    你可以将代码放在任何你要显示的网页上,

    以下是针对phpwind 3.0.1以上论坛.read.htm的方法.当然你可以放在任何你想要放的页面.

    1.首先把图片上传到你风格文件夹里(一般在img/wind/).图片下载: 网摘代码.rar
    2.然后用网页编辑器打开template/wind/read.htm(如你更换了风格,风格也有read.htm,就修改你风格里的)

    3.搜索
    phpwind4.0搜索:<input type="button" value="删除选定的帖子" onclick="java script:document.delatc.submit();">
    <!--
    EOT;
    }}print <<<EOT
    -->
    <br><br>

    (如果是phpwind3.0版请搜索: <hr color='$tablecolor' size=1>)

    4.在以上代码下加入以下代码(以下网摘可以换成你想用的):
    <!--在此加入网摘代码--><!--
    EOT;
    if($read[lou] == $db_readperpage*($page-1)){print <<<EOT
    -->
    <div align="center">
    <center>
    <table border="0" width="600">
    <tr>
    <td><TABLE cellSpacing=0 cellPadding=0 width=90 border=0>
    <TBODY>
    <TR>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp01.gif"
    width=3 border=0></TD>
    <TD align=middle background=$imgpath/$stylepath/pp03.gif><span class="style1">收藏到</span></TD>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp02.gif"
    width=3 border=0></TD></TR></TBODY></TABLE>
    </td>
    <td><TABLE cellSpacing=0 cellPadding=0 width=90 border=0>
    <TBODY>
    <TR>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp10.gif"
    width=3 border=0></TD>
    <TD align=middle background=$imgpath/$stylepath/pp11.gif><B><a title=收藏到.高跟.丝袜.玉足.聚合门户 href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(zhai=window.open('http://hzhai.com/icollect.asp#t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'zhai','scrollbars=no,width=480,height=420,left=75,top=50,status=no,resizable=yes'));zhai.focus();"><font color='#CC0000'>红</font>摘</a></B></TD>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp12.gif"
    width=3 border=0></TD></TR></TBODY></TABLE>
    </td>
    <td><TABLE cellSpacing=0 cellPadding=0 width=90 border=0>
    <TBODY>
    <TR>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp04.gif"
    width=3 border=0></TD>
    <TD align=middle background=$imgpath/$stylepath/pp06.gif><B><a title=将此文章收藏到新浪VIVI href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=wellknow&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();">新浪VIVI</A></B></TD>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp05.gif"
    width=3 border=0></TD></TR></TBODY></TABLE>
    </td>
    <td><TABLE cellSpacing=0 cellPadding=0 width=90 border=0>
    <TBODY>
    <TR>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp13.gif"
    width=3 border=0></TD>
    <TD align=middle background=$imgpath/$stylepath/pp14.gif><B><a title=将此文章收藏到365KEY href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();">365KEY</A></B></TD>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp15.gif"
    width=3 border=0></TD></TR></TBODY></TABLE>
    </td>
    <td><TABLE cellSpacing=0 cellPadding=0 width=90 border=0>
    <TBODY>
    <TR>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp07.gif"
    width=3 border=0></TD>
    <TD align=middle background=$imgpath/$stylepath/pp08.gif><B><a title=将此文章收藏到天极网摘 href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(yesky=window.open('http://hot.yesky.com/dp.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t)+'&st=2','yesky','scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes'));yesky.focus();">天极网摘</A></B></TD>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp09.gif"
    width=3 border=0></TD></TR></TBODY></TABLE>
    </td>
    <td><TABLE cellSpacing=0 cellPadding=0 width=90 border=0>
    <TBODY>
    <TR>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp01.gif"
    width=3 border=0></TD>
    <TD align=middle background=$imgpath/$stylepath/pp03.gif><B><a title=将此文章收藏到和讯网摘 href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://bookmark.hexun.com/post.aspx?title='+escape(d.title)+'&url='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();">和讯网摘</A></B></TD>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp02.gif"
    width=3 border=0></TD></TR></TBODY></TABLE>
    </td>
    <td><TABLE cellSpacing=0 cellPadding=0 width=90 border=0>
    <TBODY>
    <TR>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp04.gif"
    width=3 border=0></TD>
    <TD align=middle background=$imgpath/$stylepath/pp06.gif><B><a title='天下图摘--全球美女自拍(www.cn3.cn)' href=javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.cn3.cn/user/addurl.asp?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=490,height=450,left=120,top=50,status=no,resizable=yes'));keyit.focus();><font color='#CC0000'>天下图摘</font></a></B></TD>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp05.gif"
    width=3 border=0></TD></TR></TBODY></TABLE>
    </td>
    <td><TABLE cellSpacing=0 cellPadding=0 width=90 border=0>
    <TBODY>
    <TR>

    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp10.gif"
    width=3 border=0></TD>
    <TD align=middle background=$imgpath/$stylepath/pp11.gif><B>
    <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(zhai=window.open('http://www.uuhoo.com//icollect.asp#t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'zhai','scrollbars=no,width=480,height=420,left=75,top=50,status=no,resizable=yes'));zhai.focus();">优虎图摘</a></B></TD>
    <TD width=3><IMG height=24 src="$imgpath/$stylepath/pp12.gif"
    width=3 border=0></TD>

    </TR></TBODY></TABLE>
    </td>
    </tr>
    </table>
    </center>
    </div>

    <!--
    EOT;
    }print <<<EOT
    --><!--网摘代码止--><br>


    好了,很简单吧,这样你随手随时就可以推荐了,一般网摘都有记忆账号功能,很方便的,最好在论坛里发个置顶贴,鼓励大家去推荐:)