Меню сайта |
|
|
Разделы дневника |
|
|
Мини-чат |
|
|
Наш опрос |
|
|
|
Главная » 2008 » Oktyabr » 24 » saat etrafinda adiniz donsun.firlansin
saat etrafinda adiniz donsun.firlansin | 21:50 |
<br />//Circling text trail- Tim Tilton<br /><br />// your message here<br />var msg='Senin yazacagin sozu bura yaz';<br /><br />var font='Verdana,Arial';<br />var size=3; // up to seven<br />var color='#0000FF';<br /><br />// This is not the rotation speed, its the reaction speed, keep low!<br />// Set this to 1 for just plain rotation w/out drag<br />var speed=.3;<br /><br />// This is the rotation speed, set it negative if you want<br />// it to spin clockwise<br />var rotation=.2;<br /><br />// Alter no variables past here!, unless you are good<br />//---------------------------------------------------<br /><br />var ns=(document.layers);<br />var ie=(document.all);<br />var msg=msg.split('');<br />var n=msg.length; <br />var a=size*15;<br />var currStep=0;<br />var ymouse=0;<br />var xmouse=0;<br />var scrll=0;<br />var props="<font face="+font+" size="+size+" color="+color+">";<br /><br />if (ie)<br />window.pageYOffset=0<br /><br />// writes the message<br /> if (ns){<br /> for (i=0; i < n; i++)<br /> document.write('<div align="center">'+props+msg[i]+'</font></div>');<br /> }<br /> if (ie){<br /> document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');<br /> for (i=0; i < n; i++)<br /> document.write('<div id="iemsg" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center;font-weight:regular;cursor:default">'+props+msg[i]+'</font></div>');<br /> document.write('</div></div>');<br /> }<br /> (ns)?window.captureEvents(Event.MOUSEMOVE):0;<br /><br />function Mouse(evnt){<br /> ymouse = (ns)?evnt.pageY+20-(window.pageYOffset):event.y; // y-position<br /> xmouse = (ns)?evnt.pageX+20:event.x-20; // x-position<br />}<br /><br />if (ns||ie)<br />(ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;<br />y=new Array();<br />x=new Array();<br />Y=new Array();<br />X=new Array();<br />for (i=0; i < n; i++){<br /> y[i]=0;<br /> x[i]=0;<br /> Y[i]=0;<br /> X[i]=0;<br />}<br /><br />function makecircle(){ // rotation properties<br />if (ie) outer.style.top=document.body.scrollTop;<br />currStep-=rotation;<br /> for (i=0; i < n; i++){ // makes the circle<br /> var d=(ns)?document.layers['nsmsg'+i]:iemsg[i].style;<br /> d.top=y[i]+a*Math.sin((currStep+i*1)/3.8)+window.pageYOffset-15;<br /> d.left=x[i]+a*Math.cos((currStep+i*1)/3.8)*2; // remove *2 for just a plain circle, not oval<br /> }<br />}<br /><br />function drag(){ // makes the resistance<br /> scrll=(ns)?window.pageYOffset:0;<br /> y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);<br /> x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);<br /> for (var i=1; i <br />
|
Категория: Cursor Effektleri |
Просмотров: 922 |
Добавил: Casper
| Рейтинг: 4.7/3 |
|
Всего комментариев: 2 | |
2
aze.fuad
(06.05.2009 00:08)
0
salam xaiw edirem ikan varsa duzeldin
|
1
Emin
(12.02.2009 03:13)
0
123
|
|
|
|
|
|
Форма входа |
|
|
Календарь |
|
|
Поиск |
|
|
Друзья сайта |
|
|
Статистика |
Hal-hazırda saytda: 1 Qonaq: 1 İstifadeçiler: 0 |
|
|