echo '
<div><div id="staticbuttons" style="position: absolute; width: 0px; right: 0px; top: 0px;" align="right">
<td><a href="javascript:void(close())"><img src="popup_close.gif" width="140" height="20" border="0"></a><br>
<a href="http://www.maxman1999.net" target="_blank"><img src="http://postto.me/it/maxman140250.gif" alt="" width="140" height="250" border="0"></a><br>
<a href="javascript:void(close())"><img src="popup_close.gif" width="140" height="20" border="0"></a><br>
<a href="http://www.prittydvd.com/" target="_blank"><img src="http://postto.me/iv/bfws2.gif" border="0"/></a><br>
<a href="javascript:void(close())"><img src="popup_close.gif" width="140" height="20" border="0"></a>
</div>
<div id="staticbuttons2" style="position: absolute; width: 0px; left: 0px; top: 0px;" align="left">
<a href="javascript:void(close())"><img src="popup_close.gif" width="120" height="20"></a>
<a href="http://www.sextoy108.org/" target="_blank">
<img src="http://postto.me/ia/120x1201.gif" alt="" width="120" height="120" border="0">
</a>
<a href="javascript:void(close())"><img src="popup_close.gif" width="120" height="20" border="0"></a>
<a href="http://www.yadee.net/" target="_blank">
<img src="http://postto.me/ie/yad125.gif" alt="" width="120" height="120" border="0">
</a>
<a href="javascript:void(close())"><img src="popup_close.gif" width="120" height="20" border="0"></a>
<a target="_blank" href="http://www.uncenclub.net/ad/ad.html">
<img src="http://www.uncenclub.net/ad/120x120.gif" width="120" border="0" height="120">
</a>
<a href="javascript:void(close())"><img src="popup_close.gif" width="120" height="20" border="0"></a>
</div>
<div id="staticbuttons3" style="position:absolute;">
<a href="javascript:void(close())"><img src="popup_close.gif" width="120" height="20" border="0"></a><br>
<a href="http://www.jskdrug.com" target="_blank"><img src="http://www.postto.me/iz/jskdrug120x120.gif" alt="" width="120" height="120" border="0"></a>
<br>
<a href="javascript:void(close())"><img src="popup_close.gif" width="120" height="20" border="0"></a><br>
<a href="http://www.ozonegame.com/" target="_blank"><img src="http://postto.me/iz/ku120.gif" alt="" width="120" height="120" border="0"></a><br>
<a href="javascript:void(close())"><img src="popup_close.gif" width="120" height="20" border="0"></a>
</div>
<script>
function close() {
document.getElementById("staticbuttons").style.display="none";
document.getElementById("staticbuttons2").style.display="none";
document.getElementById("staticbuttons3").style.display="none";
}
var Hoffset=160 //Enter buttons offset from right edge of window (adjust depending on images width)
var Voffset=570 //Enter buttons offset from bottom edge of window (adjust depending on images height)
var thespeed=20 //Enter scroll speed in integer (Advised: 1-3)
var Hoffset2=0 //Enter buttons offset from right edge of window (adjust depending on images width)
var Voffset2=450 //Enter buttons offset from bottom edge of window (adjust depending on images height)
var thespeed2=20 //Enter scroll speed in integer (Advised: 1-3)
var Hoffset3=285 //Enter buttons offset from right edge of window (adjust depending on images width)
var Voffset3=400 //Enter buttons offset from bottom edge of window (adjust depending on images height)
var thespeed3=20 //Enter scroll speed in integer (Advised: 1-3)
var ieNOTopera=document.all&&navigator.userAgent.indexOf("Opera")==-1
var myspeed=0
var ieHoffset_extra=document.all? 15 : 0
var cross_obj=document.all? document.all.staticbuttons : document.getElementById? document.getElementById("staticbuttons") : document.staticbuttons
var ieHoffset_extra2=document.all? 15 : 0
var cross_obj2=document.all? document.all.staticbuttons2 : document.getElementById? document.getElementById("staticbuttons2") : document.staticbuttons2
var ieHoffset_extra3=document.all? 15 : 0
var cross_obj3=document.all? document.all.staticbuttons3 : document.getElementById? document.getElementById("staticbuttons3") : document.staticbuttons3
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function positionit(){
var dsocleft=document.all? iecompattest().scrollLeft : pageXOffset
var dsoctop=document.all? iecompattest().scrollTop : pageYOffset
var window_width=ieNOTopera? iecompattest().clientWidth ieHoffset_extra : window.innerWidth ieHoffset_extra
var window_height=ieNOTopera? iecompattest().clientHeight : window.innerHeight
var dsocleft2=document.all? iecompattest().scrollLeft : pageXOffset
var dsoctop2=document.all? iecompattest().scrollTop : pageYOffset
var window_width2=ieNOTopera? iecompattest().clientWidth ieHoffset_extra : window.innerWidth ieHoffset_extra
var window_height2=ieNOTopera? iecompattest().clientHeight : window.innerHeight
var dsocleft3=document.all? iecompattest().scrollLeft : pageXOffset
var dsoctop3=document.all? iecompattest().scrollTop : pageYOffset
var window_width3=ieNOTopera? iecompattest().clientWidth ieHoffset_extra : window.innerWidth ieHoffset_extra
var window_height3=ieNOTopera? iecompattest().clientHeight : window.innerHeight
if (document.all||document.getElementById){
cross_obj.style.left=parseInt(dsocleft) parseInt(window_width)-Hoffset "px"
cross_obj.style.top=dsoctop parseInt(window_height)-Voffset "px"
cross_obj2.style.left=(0) parseInt(dsocleft) "px"
cross_obj2.style.top=dsoctop2 parseInt(window_height2)-Voffset2 "px"
cross_obj3.style.left=(0) parseInt(dsocleft) "px"
cross_obj3.style.left=parseInt(dsocleft) parseInt(window_width)-Hoffset3 "px"
cross_obj3.style.top=dsoctop3 parseInt(window_height3)-Voffset3 "px"
}
else if (document.layers){
cross_obj.left=dsocleft window_width-Hoffset
cross_obj.top=dsoctop window_height-Voffset
cross_obj2.left=dsocleft2 window_width-Hoffset2
cross_obj2.top=dsoctop2 window_height-Voffset2
cross_obj3.left=dsocleft3 window_width-Hoffset3
cross_obj3.top=dsoctop3 window_height-Voffset3
}
}
function scrollwindow(){
window.scrollBy(0,myspeed)
}
function initializeIT(){
positionit()
if (myspeed!=0){
scrollwindow()
}
}
if (document.all||document.getElementById||document.layers)
setInterval("initializeIT()",20)
</script>
</div>';
ลองเอาไปประยุก ดูน้อง
อย่าลืม สไลค์พี่ละ
ข้อสังเกต
ให้ใส่โค้ดนี้ ท้ายๆ body และ ต้อง ปิด echo แล้วเท่านั้น สังเกต '; แบบนี้คือปืดแล้ว ถึงใส่เพิ่มไป
แก้ไขที่ไฟล์ index.template.php