เพิ่ม Bookmark Bar ในหน้ากระทู้ phpWind: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Category:PhpWind 1.แก้ไขได้ที่ไฟล์ '''template/wind/read.htm''' 2.เสิร์ซหาโค๊ดก้อนนี้ <div id="checku...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 26: | Line 26: | ||
<li class="smallfont" style="width:25%; min-width:160px; float:left; margin-top:6px"> | <li class="smallfont" style="width:25%; min-width:160px; float:left; margin-top:6px"> | ||
< | <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="" layout="button_count" show_faces="false" width="100" action="recommend" font=""></fb:like> | ||
</li> | </li> | ||
Line 44: | Line 44: | ||
<li class="smallfont" style="width:25%; min-width:160px; float:left; margin-top:6px"> | <li class="smallfont" style="width:25%; min-width:160px; float:left; margin-top:6px"> | ||
<img src="http://l.yimg.com/hr/img/delicious.small.gif" height="10" width="10" alt="Delicious" /> | <img src="<nowiki>http://l.yimg.com/hr/img/delicious.small.gif</nowiki>" height="10" width="10" alt="Delicious" /> | ||
<a href="http://www.delicious.com/save" onclick="window.open('http://www.delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;"> Bookmark this on Delicious</a> | <a href="http://www.delicious.com/save" onclick="window.open('http://www.delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;"> Bookmark this on Delicious</a> | ||
</li> | </li> |
Latest revision as of 16:45, 23 April 2011
1.แก้ไขได้ที่ไฟล์ template/wind/read.htm
2.เสิร์ซหาโค๊ดก้อนนี้
<div id="checkurl" class="menu menu-post" style="display:none;"> <div class="menu-b tac"> <table width="280" cellspacing="0" cellpadding="0"> <tr> <th class="h" colspan="2"><span id="suburl">$db_bbsurl</span></th> </tr> <tr> <td colspan="2">เช็คลิงก์ออก คุณแน่ใจแล้วหรือที่จะเข้าชมไซต์นี้</td> </tr> <tr> <td><a href="" target="_blank" onclick="closep();" id="trueurl">เข้าชมเว็บนี้</a></td> <td><a href="javascript:;" onclick="closep();">คลิกปิด</a></td> </tr> </table> </div> </div>
3.เติม code html ของกล่อง Bookmark ที่ต้องการลงไป, ตัวอย่าง HTML
<table cellpadding="6" cellspacing="1" border="0" width="100%" class="tborder" align="center" style="margin:16px 0;"> <tbody><tr> <td class="thead h">Bookmarks</td> </tr> <tr class="vt"><td class="alt2" style="padding-top:0px"><div style="clear:both"></div> <ul style="list-style-type:none; margin:0px; padding:0px"> <li class="smallfont" style="width:25%; min-width:160px; float:left; margin-top:6px"> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1%22></script><fb:like href="" layout="button_count" show_faces="false" width="100" action="recommend" font=""></fb:like> </li> <li class="smallfont" style="width:25%; min-width:160px; float:left; margin-top:6px"> <!-- Compact Button --> <a class="DiggThisButton DiggCompact"></a> <script type="text/javascript"> (function() { var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0]; s.type = 'text/javascript'; s.async = true; s.src = 'http://widgets.digg.com/buttons.js'; s1.parentNode.insertBefore(s, s1); })(); </script> </li> <li class="smallfont" style="width:25%; min-width:160px; float:left; margin-top:6px"> <img src="http://l.yimg.com/hr/img/delicious.small.gif" height="10" width="10" alt="Delicious" /> <a href="http://www.delicious.com/save" onclick="window.open('http://www.delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;"> Bookmark this on Delicious</a> </li> <li class="smallfont" style="width:25%; min-width:160px; float:left; margin-top:6px"> <script src="http://www.stumbleupon.com/hostedbadge.php?s=2"></script> </li> </ul><div style="clear:both"></div></td> </tr> </tbody></table>