giodbest01
Guest
> : I love HCG!newbie here!hehe
Posts : 2
Age : 30
Location : la union
Mood : Happy
Country :
Reg-Date : 2009-03-23
Forum Warning :
Contribution :
|
Subject: kiss cursor trail Wed Oct 21, 2009 7:42 am |
|
|
delete if double posted - Code:
-
//Kissing trail- By dij8 (dij8@dij8.com) //Modified by Dynamic Drive for bug fixes //Visit http://www.dynamicdrive.com for this script
kisserCount = 15 //maximum number of images on screen at one time curKisser = 0 //the last image DIV to be displayed (used for timer) kissDelay = 1000 //duration images stay on screen (in milliseconds) kissSpacer = 50 //distance to move mouse b4 next heart appears theimage = "http://i34.tinypic.com/m2042.jpg" //the 1st image to be displayed theimage2 = "http://i38.tinypic.com/55fs6e.jpg" //the 2nd image to be displayed
//Browser checking and syntax variables var docLayers = (document.layers) ? true:false; var docId = (document.getElementById) ? true:false; var docAll = (document.all) ? true:false; var docbitK = (docLayers) ? "document.layers['":(docId) ? "document.getElementById('":(docAll) ? "document.all['":"document." var docbitendK = (docLayers) ? "']":(docId) ? "')":(docAll) ? "']":"" var stylebitK = (docLayers) ? "":".style" var showbitK = (docLayers) ? "show":"visible" var hidebitK = (docLayers) ? "hide":"hidden" var ns6=document.getElementById&&!document.all //Variables used in script var posX, posY, lastX, lastY, kisserCount, curKisser, kissDelay, kissSpacer, theimage lastX = 0 lastY = 0 //Collection of functions to get mouse position and place the images function doKisser(e) {
posX = getMouseXPos(e) posY = getMouseYPos(e) if (posX>(lastX+kissSpacer)||posX<(lastX-kissSpacer)||posY>(lastY+kissSpacer)||posY<(lastY-kissSpacer)) { showKisser(posX,posY) lastX = posX lastY = posY } } // Get the horizontal position of the mouse function getMouseXPos(e) { if (document.layers||ns6) { return parseInt(e.pageX+10) } else { return (parseInt(event.clientX+10) + parseInt(document.body.scrollLeft)) } } // Get the vartical position of the mouse function getMouseYPos(e) { if (document.layers||ns6) { return parseInt(e.pageY) } else { return (parseInt(event.clientY) + parseInt(document.body.scrollTop)) } } //Place the image and start timer so that it disappears after a period of time function showKisser(x,y) { var processedx=ns6? Math.min(x,window.innerWidth-75) : docAll? Math.min(x,document.body.clientWidth-55) : x if (curKisser >= kisserCount) {curKisser = 0} eval(docbitK + "kisser" + curKisser + docbitendK + stylebitK + ".left = " + processedx) eval(docbitK + "kisser" + curKisser + docbitendK + stylebitK + ".top = " + y) eval(docbitK + "kisser" + curKisser + docbitendK + stylebitK + ".visibility = '" + showbitK + "'") if (eval("typeof(kissDelay" + curKisser + ")")=="number") { eval("clearTimeout(kissDelay" + curKisser + ")") } eval("kissDelay" + curKisser + " = setTimeout('hideKisser(" + curKisser + ")',kissDelay)") curKisser += 1 } //Make the image disappear function hideKisser(knum) { eval(docbitK + "kisser" + knum + docbitendK + stylebitK + ".visibility = '" + hidebitK + "'") }
function kissbegin(){ //Let the browser know when the mouse moves if (docLayers) { document.captureEvents(Event.MOUSEMOVE) document.onMouseMove = doKisser } else { document.onmousemove = doKisser } } window.onload=kissbegin // decloak -->
document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\" http://giovannimorante01.fileave.com/kiss.css \" />');
//<!-- cloak // Add all DIV's of hearts if (document.all||document.getElementById||document.layers){ for (k=0;k<kisserCount;k=k+2) { document.write('<div id="kisser' + k + '" class="kisser"><img src="' + theimage + '" alt="" border="0"></div>\n') document.write('<div id="kisser' + (k+1) + '" class="kisser"><img src="' + theimage2 + '" alt="" border="0"></div>\n') } }
// decloak -->
paste in ur js file
preview here :[url] http://giovannimorante01.fileave.com/mamon.html [/url]
|
|
dropdead018
HCG Addict
> : DropDead </3
Posts : 320
Age : 32
Location : B|U|L|A|C|A|N
Mood : Crazy
Country :
Reg-Date : 2009-07-29
Forum Warning :
Contribution :
|
Subject: Re: kiss cursor trail Sat Dec 19, 2009 2:32 am |
|
|
kiss cursor :"> HEP! HEP! HOREY! My Siggy Says:Hindi Lahat ng CUTE nakikipagbiruan- JAMESilog
|
|
Shin.yihaa
HCG Freak
> : I love HCG!
Posts : 144
Age : 30
Location : Laguna/Makati
Mood : Crazy
Country :
Reg-Date : 2009-12-28
Forum Warning :
Contribution :
|
Subject: Re: kiss cursor trail Tue Dec 29, 2009 1:04 am |
|
|
|
|
ayaah
Guest
> : I love HCG!
Posts : 1
Reg-Date : 2010-06-03
Forum Warning :
Contribution :
|
|
nicole_nicole
HCG Addict
> : P
Posts : 406
Age : 28
Location : :)
Mood : Bitchy
Country :
Reg-Date : 2008-12-05
Forum Warning :
Contribution :
|
Subject: Re: kiss cursor trail Thu Jan 20, 2011 4:10 pm |
|
|
|
|
Sponsored content
|
Subject: Re: kiss cursor trail |
|
|
|
|