Berikut ini adalah cara yg jitu buat beriklan ria.. Karena dengan script ini gambar akan mengikuti cursor kemanapun dia pergi,jadi kayak anak ayam yang enggak mau ketinggalan induknya <html> <head> <script> if (!document.layers) document.write('<div id="divStayTopright" style="position:absolute">') </script> </head> <body> <layer id="divStayTopright"> <!--EDIT BELOW CODE TO YOUR OWN MENU--> <table border="0" width="130" cellspacing="0" cellpadding="0"> <tr> <td><img src="http://kendhin.890m.com/soniclari.gif"></td> </tr> </table> <!--END OF EDIT--> </layer> <script type="text/javascript"> /* Floating Menu script- Roy Whittle (http://www.javascript-fx.com/) Script featured on/available at http://www.dynamicdrive.com/ This notice must stay intact for use */ //Enter "frombottom" or "fromtop" var verticalpos="fromtop" if (!document.layers) document.write('</div>') function JSFX_FloatTopDiv() { var startX = 0, startY = 0; var ns = (navigator.appName.indexOf("Netscape") != -1); var d = document; function ml(id) { var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id]; if(d.layers)el.style=el; el.sP=function(x,y){this.style.right=x;this.style.top=y;}; el.x = startX; if (verticalpos=="fromtop") el.y = startY; else{ el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight; el.y -= startY; } return el; } window.stayTopright=function() { if (verticalpos=="fromtop"){ var pY = ns ? pageYOffset : document.body.scrollTop; ftlObj.y += (pY + startY - ftlObj.y)/8; } else{ var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight; ftlObj.y += (pY - startY - ftlObj.y)/8; } ftlObj.sP(ftlObj.x, ftlObj.y); setTimeout("stayTopright()", 10); } ftlObj = ml("divStayTopright"); stayTopright(); } JSFX_FloatTopDiv(); </script> </body> </html>
All post
Kamis, 20 November 2008
Langganan:
Posting Komentar (Atom)
4 komentar:
wah asik juga tuh dan blog kita jadi keren!!
Tapi masalahnya sangat mengganggu sekali, terutama pada saat kita ingin membaca isi posting...
please visit http://www.whitehackcommunity.co.cc/
dont forget to follow and comment ^_^ thanks...
Ini ukuran gambar yg diletakkan berapa gan? :|
Ikutan nyoba yah ;)
Posting Komentar