- 積分
- 547
- 威望
- 547
- 金錢
- 74
- 最後登錄
- 2023-4-6
|
本帖最後由 xiangzi8821 於 2012-11-6 20:12 編輯
代码名称:为帖子添加“顶”功能!
代码作者:菜鸟基地(资深菜鸟)
使用方法:第三方
代码说明:菜鸟基地编写,转载请注明出处!
使用备注:还木有发现有关数据不增加或者不显示的问题(望广大会员们自行找下BUG吧)
演示站点:
http://cainiaojidi.5d6d.net/bbs.php
http://xiangzi8821.66rt.com/view ... &extra=page%3D1
演示效果:
.
.
.
代码:- <script>var $obj_pos = document.getElementsByTagName("DIV");for (i = 0; i < $obj_pos.length; i++) {if ($obj_pos[i].className == "useraction") {for (u = 0; u < $obj_pos.length; u++) {if ($obj_pos[u].className == "postact s_clear") {$obj_pos[u].getElementsByTagName("p")[0].innerHTML+=$obj_pos[i].innerHTML;}}}}</script>
- <div id="xiangzi10281" style="text-align:center; display:none;">
- <div class="bdlikebutton"></div>
- <script id="bdlike_shell"></script>
- <script>if ($("viewthread") != null){var bdShare_config = {"type":"large","color":"blue","uid":"736189"};document.getElementById("bdlike_shell").src="http://bdimg.share.baidu.com/static/js/like_shell.js?t=" + new Date().getHours()};</script></div>
- <script>if ($("viewthread") != null){var $obj_pos = document.getElementsByTagName("DIV");for (i = 0; i < $obj_pos.length; i++) {if ($obj_pos[i].className == "useraction") {$obj_pos[i].innerHTML=$("xiangzi10281").innerHTML;}}}</script>
複製代碼 |
-
1
評分人數
-
|