Skrypty |
Worthy
worthyg.deviantart.com
|
Skrypty to są kody. Żeby wstawić obrazek (podobnie na forum) trzeba zalinkować obrazek a następnie.
<img src="TUWPISZADRESOBRAZKA"> Podajcie fajne skrypty lub strone z nimi :) Polecam: [link widoczny dla zalogowanych] wchodzicie w menu->dodatki na blogi->skrypty |
||||||||||||||
|
Madź
|
<SCRIPT LANGUAGE="JavaScript"><!--
//modified by Coffeecup.com function Info() {if (!confirm("Tu wpisz swój tekst")) history.go(-1);return " "} document.writeln(Info()) <!--End--></script> <SCRIPT language="VBScript"> I=InputBox() MsgBox +I </SCRIPT> Dzięki temu jak ktoś będzie wchodził na waszego bloga, na początku pojawi się okienko z wpisanym przez was tekstem. |
||||||||||||||
|
Worthy
worthyg.deviantart.com
|
Madziula dzięki ;] Przyda mi się :)
|
||||||||||||||
|
Mirpul
|
Czy to sie wkleja na poczatku HTML`u, czy gdzie indziej? |
||||||||||||||||
|
Madź
|
Na początku |
||||||||||||||||||
|
Worthy
worthyg.deviantart.com
|
Najlepiej na początku :)
|
||||||||||||||
|
Madź
|
Sie znaczy można gdzie indziej, ale wtedy można coś spe*****ć.
|
||||||||||||||
|
Mirpul
|
<CENTER><table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#ffffff" width="100%" id="AutoNumber1" bgcolor="#3366ff">
<tr> <td width="40%"> <p align="center"><span class="txt1"><b><font color="#ffffff"><marquee behavior=alternate> *Tu wpisz tytuł* </marquee></font></b></span></td> </tr> </table><br> Jeśli wpiszesz tam tytuł działu pojawi Ci sie on na tle w kolorze jaki sobie wybierzesz, przesuwajac sie. Efekt: [link widoczny dla zalogowanych] , u mnie sa niebieskie z biała obwodka, i duze ale mozna zmienic kolory i u was beda mniejsze |
||||||||||||||
|
Cedric_PL
Gość
|
Przyda mi się :) Ja dla Was narazie nic nie mam ciekawego. A szkoda. Może kiedy indziej. :)
|
||||||||||||||
|
Mirpul
|
A wie ktoś jaki dać Scrypt, żeby ten napis na górze (na [link widoczny dla zalogowanych] pisze "....::::Witaj na blogu Mirpul!Jak już tu jesteś to zamów coś lub zostaw koma::::....) się przesuwał, jak na mylogu Haczyka?
Pliss, zależy mi na tym... |
||||||||||||||
|
sawyer
Admin
crazy as a motherfucker
|
Oto on:
<TITLE>Tytuł bloga</TITLE> <!--Inicio do script--> <script> var repeat=1 // 0 para rolar uma vez, 1 para rolar infinitamente var title=document.title var leng=title.length var start=1 function titlemove() { titl=title.substring(start, leng) + title.substring(0, start) document.title=titl start++ if (start==leng+1) { start=0 if (repeat==0) return } setTimeout("titlemove()",140) } if (document.title) titlemove() </script> |
||||||||||||||
|
Mirpul
|
1. Skrypt na zablokowanie prawego przycisku myszki
<SCRIPT language=JavaScript><!-- function click() { if (event.button==2) { alert('Tu wpisz komunikat ze zablokowany') } } document.onmousedown=click // --> </SCRIPT> 2. Dzisiaj jest... <SCRIPT LANGUAGE="JavaScript"> <!-- Hide it // Returns today's date in a string with full day and month names // by Roger C. Scudder Jr. on 10-2-98 // corrected for Netscape by Grzegorz Golebiewski DayName = new Array(7) DayName[0] = "niedziela " DayName[1] = "poniedziałek " DayName[2] = "wtorek " DayName[3] = "środa " DayName[4] = "czwartek " DayName[5] = "piątek " DayName[6] = "sobota " MonthName = new Array(12) MonthName[0] = "stycznia " MonthName[1] = "lutego " MonthName[2] = "marca " MonthName[3] = "kwietnia " MonthName[4] = "maja " MonthName[5] = "czerwca " MonthName[6] = "lipca " MonthName[7] = "sierpnia " MonthName[8] = "września " MonthName[9] = "października " MonthName[10] = "listopada " MonthName[11] = "grudnia " function getDateStr(){ var Today = new Date() var WeekDay = Today.getDay() var Month = Today.getMonth() var Day = Today.getDate() var Year = Today.getFullYear() if(Year <= 99) Year += 1900 return DayName[WeekDay] + "," + " " + Day + " " + MonthName[Month] + ", " + Year } //--> </SCRIPT> <SCRIPT>document.write("Dzisiaj jest " + getDateStr())</SCRIPT> 3. Text latający za myszką <STYLE> .litera {POSITION:Absolute; VISIBILITY:Visible; TOP:-30px; FONT-SIZE:10pt; FONT-FAMILY:Curier; FONT-WEIGHT:Bold; COLOR:black} </STYLE> <SCRIPT LANGUAGE="JavaScript"> onload=Pozycja; if (document.layers) document.captureEvents(Event.MOUSEMOVE); document.onmousemove=Ruch; function Ruch(e){ x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX; y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY; raz=1; } var x,y; szer=12; raz=10; Napis="....MojE ZyCiE To BaJkA..."; Napis=Napis.split(""); xpos=new Array(); ypos=new Array(); for (i=0;i<=Napis.length;i++) xpos[i]=0; for (i=0;i<=Napis.length;i++) ypos[i]=-30; function Pozycja() { if (raz==1) { for (i=Napis.length; i>=1; i--) { xpos[i]=xpos[i-1]+szer; ypos[i]=ypos[i-1]; } xpos[0]=x+szer; ypos[0]=y; for (i=0; i<Napis.length; i++) { if (document.all) { thisSpan=eval("span"+(i)+".style"); thisSpan.posLeft=xpos[i]; thisSpan.posTop=ypos[i]; } if (document.layers) { thisSpan=eval("document.span"+i); thisSpan.left=xpos[i]; thisSpan.top=ypos[i]; } } } setTimeout("Pozycja()",20) } for (i=0;i<=Napis.length-1;i++) document.write("<DIV ID="span"+i+"" CLASS="litera">"+Napis[i]+"</DIV>"); </SCRIPT> 4. Zegarek latający za myszką <SCRIPT language=JavaScript> dCol='white';//date colour. fCol='black';//face colour. sCol='red';//seconds colour. mCol='white';//minutes colour. hCol='white';//hours colour. ClockHeight=40; ClockWidth=40; ClockFromMouseY=0; ClockFromMouseX=100; [link widoczny dla zalogowanych] nothing below! Alignments will be lost! d=new Array("Niedziela","Poniedziałek","Wtorek","środa","Czwartek","PiAtek","Sobota"); m=new Array("Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Pa?dziernik","Listopad","Grudzień"); date=new Date(); day=date.getDate(); year=date.getYear(); if (year < 2000) year=year+1900; TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year; D=TodaysDate.split(''); H='...'; H=H.split(''); M='....'; M=M.split(''); S='.....'; S=S.split(''); Face='1 2 3 4 5 6 7 8 9 10 11 12'; font='Arial CE'; size=1; speed=0.6; ns=(document.layers); ie=(document.all); Face=Face.split(' '); n=Face.length; a=size*10; ymouse=0; xmouse=0; scrll=0; props="<font face="+font+" size="+size+" color="+fCol+"><B>"; props2="<font face="+font+" size="+size+" color="+dCol+"><B>"; Split=360/n; Dsplit=360/D.length; HandHeight=ClockHeight/4.5 HandWidth=ClockWidth/4.5 HandY=-7; HandX=-2.5; scrll=0; step=0.06; currStep=0; y=new Array();x=new Array();Y=new Array();X=new Array(); for (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0} Dy=new Array();Dx=new Array();DY=new Array();DX=new Array(); for (i=0; i < D.length; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0} if (ns){ for (i=0; i < D.length; i++) document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</font></center></layer>'); for (i=0; i < n; i++) document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face[i]+'</font></center></layer>'); for (i=0; i < S.length; i++) document.write('<layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+sCol+'><center><b>'+S[i]+'</b></center></font></layer>'); for (i=0; i < M.length; i++) document.write('<layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+mCol+'><center><b>'+M[i]+'</b></center></font></layer>'); for (i=0; i < H.length; i++) document.write('<layer name=nsHours'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+hCol+'><center><b>'+H[i]+'</b></center></font></layer>'); } if (ie){ document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < D.length; i++) document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</B></font></div>'); document.write('</div></div>'); document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < n; i++) document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+Face[i]+'</B></font></div>'); document.write('</div></div>'); document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < H.length; i++) document.write('<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight:bold">'+H[i]+'</div>'); document.write('</div></div>'); document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < M.length; i++) document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weight:bold">'+M[i]+'</div>'); document.write('</div></div>') document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < S.length; i++) document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weight:bold">'+S[i]+'</div>'); document.write('</div></div>') } (ns)?window.captureEvents(Event.MOUSEMOVE):0; function Mouse(evnt){ ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY; xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX; } (ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse; function ClockAndAssign(){ time = new Date (); secs = time.getSeconds(); sec = -1.57 + Math.PI * secs/30; mins = time.getMinutes(); min = -1.57 + Math.PI * mins/30; hr = time.getHours(); hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360; if (ie){ Od.style.top=window.document.body.scrollTop; Of.style.top=window.document.body.scrollTop; Oh.style.top=window.document.body.scrollTop; Om.style.top=window.document.body.scrollTop; Os.style.top=window.document.body.scrollTop; } for (i=0; i < n; i++){ var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style; F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll; F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180); } for (i=0; i < H.length; i++){ var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style; HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll; HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs); } for (i=0; i < M.length; i++){ var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style; ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll; ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min); } for (i=0; i < S.length; i++){ var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style; SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll; SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec); } for (i=0; i < D.length; i++){ var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style; DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll; DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180); } currStep-=step; } function Delay(){ scrll=(ns)?window.pageYOffset:0; Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed); Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed); for (i=1; i < D.length; i++){ Dy[i]=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed); Dx[i]=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed); } y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed); x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed); for (i=1; i < n; i++){ y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed); x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed); } ClockAndAssign(); setTimeout('Delay()',20); } if (ns||ie)window.onload=Delay; </SCRIPT> EDIT: 5. Padający niebiesko-niebieski śnieg XD <DIV align=center id="napis12" style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 18px; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px"> <P align=center> <FONT color=#65babe size=5>*</FONT> </P> </DIV> <DIV align=center id="napis11" style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 18px; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px"> <P align=center> <FONT color=#65babe size=5>*</FONT> </P> </DIV> <DIV align=center id=napis10 style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 18px; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px"> <P align=center> <FONT color=#ffffff> <FONT size=5>*</FONT> </FONT> </P> </DIV> <DIV align=center id=napis9 style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 18px; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px"> <P align=center> <FONT color=#65babe size=5> * </FONT> <FONT color=#80ffff size=5>*</FONT> <FONT color=#65babe size=5> * * </FONT> <FONT color=#80ffff size=5>*</FONT> <FONT color=#65babe size=5> </FONT> </P> </DIV> <DIV align=center id=napis8 style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 18px; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px"> <P align=center> <FONT size=5> <FONT color=#65babe>*</FONT> * <FONT color=#497deb>*</FONT> * <FONT color=#4299d2>*</FONT> </FONT> </P> </DIV> <DIV align=center id=napis7 style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 24px; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px"> <DD> <P align=center> <FONT size=5> <FONT color=#80ffff><EM>*</EM></FONT> * <FONT color=#4299d2> *</FONT> <FONT color=#4299d2>*</FONT> <FONT color=#65babe> *</FONT> </FONT></P></DD></DIV> <DIV align=center id=napis6 style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 24px; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px"> <P align=center><FONT size=5><FONT color=#4299d2>* *</FONT> * </FONT></P></DIV> <DIV align=center id=napis5 style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 24px; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px"> <P align=center><FONT size=5> <FONT color=#4299d2>*</FONT> </FONT> </P></DIV> <DIV align=center id=napis0 style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 24px; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px"> <P align=center><FONT color=#4299d2 size=5> </FONT><FONT color=#00ffff size=5> * </FONT><FONT color=#4299d2 size=5> * </FONT><FONT color=#00ffff size=5>*</FONT><FONT color=#4299d2 size=5> </FONT><FONT color=#0000ff size=5>*</FONT><FONT color=#4299d2 size=5> </FONT><FONT color=#80ffff size=5>*</FONT><FONT color=#4299d2 size=5> </FONT><FONT color=#00ffff size=5> *</FONT><FONT color=#4299d2 size=5> * </FONT><FONT color=#80ffff size=5>*</FONT><FONT color=#4299d2 size=5> </FONT><FONT color=#0000ff size=5>*</FONT><FONT color=#4299d2 size=5> * </FONT></P></DIV> <DIV align=center id=napis style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 24px; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px"> <P align=center><FONT color=#80ffff size=5>*</FONT><FONT color=#4299d2 size=5> * * </FONT><FONT color=#ffffff size=5>*</FONT><FONT color=#4299d2 size=5> * </FONT><FONT color=#00ffff size=5>*</FONT><FONT color=#4299d2 size=5> * * </FONT></P></DIV> <DIV align=center id=napis3 style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 24px; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px"> <P align=center><FONT color=#4299d2 size=5> * </FONT><FONT color=#80ffff size=5>*</FONT></P></DIV> <DIV align=center id=napis1 style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 24px; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px"> <P align=center> <FONT color=#4299d2 size=5> </FONT><FONT color=#0000ff size=5> *</FONT><FONT color=#4299d2 size=5> * </FONT></P></DIV> <DIV align=center id=napis2 style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 24px; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px"> <P align=center><FONT color=#4299d2 size=5>* </FONT><FONT color=#80ffff size=5> *</FONT><FONT color=#4299d2 size=5> </FONT><FONT color=#00ffff size=5> *</FONT></P></DIV> <DIV align=center id=napis4 style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 24px; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px"> <P align=left><FONT color=#4299d2 size=5> * </FONT><FONT color=#80ffff size=5>*</FONT></P></DIV> <DIV align=center id=napis15 style="COLOR: #0000ff; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 24px; FONT-WEIGHT: bold; POSITION: absolute; TOP: 50px"> <P align=left><FONT color=#4299d2 size=5> </FONT><FONT color=#80ffff size=5>*</FONT><FONT color=#4299d2 size=5> *</FONT></P></DIV> <SCRIPT language=Javascript> <!-- done = 0; krok = 2; z=0; z0=-50; z1=-100; z2=-150; z3=-200; z4=-250; z5=-300; z6=-350; z7=-400; z8=-450; z9=-100; z10=-150; z11=-200; z15=50; z12=-300; z_mik=150; wys=320; licznik=0; x=0; x1=x2=x3=x4=x5=x6=x7=x8=x; x12=0; x11=0; x10=0; x_mik=-200; x9=0; krokz=1; krokz1=2; browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=3 ))); function ruch(x,z,z15,z0,z1,z2,z3,z4,z5,z6,z7,z8,z9,z10,z11,z12) { if (browser){ if(document.layers) { document.layers["napis8"].left=x8; document.layers["napis8"].top=z8; document.layers["napis15"].top=z15; document.layers["napis7"].left=x; document.layers["napis7"].top=z7; document.layers["napis6"].left=x; document.layers["napis6"].top=z6; document.layers["napis5"].left=x; document.layers["napis5"].top=z5; document.layers["napis"].left=x; document.layers["napis"].top=z ; document.layers["napis0"].left=x; document.layers["napis0"].top=z0; document.layers["napis1"].left=x; document.layers["napis1"].top=z1; document.layers["napis2"].left=x; document.layers["napis2"].top=z2; document.layers["napis3"].left=x; document.layers["napis3"].top=z3; document.layers["napis4"].left=x; document.layers["napis4"].top=z4; document.layers["napis9"].left=x; document.layers["napis9"].top=z9; document.layers["napis10"].left=x; document.layers["napis10"].top=z10; document.layers["napis11"].left=x; document.layers["napis11"].top=z11; document.layers["napis12"].left=x; document.layers["napis12"].top=z12; } else {document.all["napis"].style.left=x; document.all["napis"].style.top=z; document.all["napis15"].style.top=z15; document.all["napis0"].style.left=x; document.all["napis0"].style.top=z0; document.all["napis"].style.left=x; document.all["napis"].style.top=z; document.all["napis1"].style.left=x; document.all["napis1"].style.top=z1; document.all["napis2"].style.left=x; document.all["napis2"].style.top=z2; document.all["napis3"].style.left=x; document.all["napis3"].style.top=z3; document.all["napis4"].style.left=x; document.all["napis4"].style.top=z4; document.all["napis5"].style.left=x; document.all["napis5"].style.top=z5; document.all["napis6"].style.left=x6; document.all["napis6"].style.top=z6; document.all["napis7"].style.left=x; document.all["napis7"].style.top=z7; document.all["napis8"].style.left=x; document.all["napis8"].style.top=z8; document.all["napis9"].style.left=x; document.all["napis9"].style.top=z9; document.all["napis10"].style.left=x; document.all["napis10"].style.top=z10; document.all["napis11"].style.left=x; document.all["napis11"].style.top=z11; document.all["napis12"].style.left=x; document.all["napis12"].style.top=z12 }; z0=z0+krokz;z=z+krokz;z1=z1+krokz;z2=z2+krokz;z3=z3+krokz;z4=z4+krokz;z5=z5+krokz;z6=z6+krokz; z15=z15+krokz;z7=z7+krokz;z8=z8+krokz;z9=z9+krokz1;z10=z10+krokz1;z11=z11+krokz1;z12=z12+krokz1; //if (licznik==0){++x}; //if (x==50) licznik=1; //if (licznik==1){--x}; //if (x==0){licznik=0}; if(z0>wys) z0=0; if(z>wys) z=0; if(z4>wys) z4=0; if(z1>wys) z1=0; if(z2>wys) z2=0; if(z3>wys) z3=0; if(z15>wys) z15=0; if(z5>wys) z5=0; if(z6>wys) z6=0; if(z7>wys) z7=0; if(z8>wys+50) z8=0; if(z9>wys+50) z9=0; if(z10>wys) z10=0; if(z11>wys) z11=0; if(z12>wys) z12=0; // window.status=x; setTimeout('ruch('+(x)+','+z+','+z15+','+z0+','+z1+','+z2+','+z3+','+z4+','+z5+','+z6+','+z7+','+z8+','+z9+','+z10+','+z11+','+z12+')', 1); } } function start() { ruch(1,z,z15,z0,z1,z2,z3,z4,z5,z6,z7,z8,z9,z10,z11,z12); } //--> </SCRIPT> <SCRIPT language=Javascript> <!-- start(); //--> </SCRIPT> EDIT2: 6. Kolorowe kułka za myszką: Do umieszczenia tuż pod BODY: <div id="dot0" style="position: absolute; visibility: hidden; height: 11; width: 11;"><img src="bullet.gif" height=11 width=11></div> <div id="dot1" style="position: absolute; height: 11; width: 11;"><img src="bullet.gif" height=11 width=11></div> <div id="dot2" style="position: absolute; height: 11; width: 11;"><img src="bullet.gif" height=11 width=11></div> <div id="dot3" style="position: absolute; height: 11; width: 11;"><img src="bullet.gif" height=11 width=11></div> <div id="dot4" style="position: absolute; height: 11; width: 11;"><img src="bullet.gif" height=11 width=11></div> <div id="dot5" style="position: absolute; height: 11; width: 11;"><img src="bullet.gif" height=11 width=11></div> <div id="dot6" style="position: absolute; height: 11; width: 11;"><img src="bullet.gif" height=11 width=11></div> <script LANGUAGE="JavaScript"> <!-- hide code // Thanks to Troels Jakobsen <tjak@get2net.dk> // for fix which makes it work when the page is scrolled var nDots = 7; if (document.all&&window.print) document.body.style.cssText="overflow-x:hidden;overflow-y:scroll" var Xpos = 0; var Ypos = 0; // fixed time step, no relation to real time var DELTAT = .01; // size of one spring in pixels var SEGLEN = 10; // spring constant, stiffness of springs var SPRINGK = 10; // all the physics is bogus, just picked stuff to // make it look okay var MASS = 1; var GRAVITY = 50; var RESISTANCE = 10; // stopping criterea to prevent endless jittering // doesn't work when sitting on bottom since floor // doesn't push back so acceleration always as big // as gravity var STOPVEL = 0.1; var STOPACC = 0.1; var DOTSIZE = 11; // BOUNCE is percent of velocity retained when // bouncing off a wall var BOUNCE = 0.75; var isNetscape = navigator.appName=="Netscape"; // always on for now, could be played with to // let dots fall to botton, get thrown, etc. var followmouse = true; var dots = new Array(); init(); function init() { var i = 0; for (i = 0; i < nDots; i++) { dots[i] = new dot(i); } if (!isNetscape) { // I only know how to read the locations of the // <LI> items in IE //skip this for now // setInitPositions(dots) } // set their positions for (i = 0; i < nDots; i++) { dots[i].obj.left = dots[i].X; dots[i].obj.top = dots[i].Y; } if (isNetscape) { // start right away since they are positioned // at 0, 0 startanimate(); } else { // let dots sit there for a few seconds // since they're hiding on the real bullets setTimeout("startanimate()", 2000); } } function dot(i) { this.X = Xpos; this.Y = Ypos; this.dx = 0; this.dy = 0; if (isNetscape) { this.obj = eval("document.dot" + i); } else { this.obj = eval("dot" + i + ".style"); } } function startanimate() { setInterval("animate()", 20); } // This is to line up the bullets with actual LI tags on the page // Had to add -DOTSIZE to X and 2*DOTSIZE to Y for IE 5, not sure why // Still doesn't work great function setInitPositions(dots) { // initialize dot positions to be on top // of the bullets in the <ul> var startloc = document.all.tags("LI"); var i = 0; for (i = 0; i < startloc.length && i < (nDots - 1); i++) { dots[i+1].X = startloc[i].offsetLeft startloc[i].offsetParent.offsetLeft - DOTSIZE; dots[i+1].Y = startloc[i].offsetTop + startloc[i].offsetParent.offsetTop + 2*DOTSIZE; } // put 0th dot above 1st (it is hidden) dots[0].X = dots[1].X; dots[0].Y = dots[1].Y - SEGLEN; } // just save mouse position for animate() to use function MoveHandler(e) { Xpos = e.pageX; Ypos = e.pageY; return true; } // just save mouse position for animate() to use function MoveHandlerIE() { Xpos = window.event.x + document.body.scrollLeft; Ypos = window.event.y + document.body.scrollTop; } if (isNetscape) { document.captureEvents(Event.MOUSEMOVE); document.onMouseMove = MoveHandler; } else { document.onmousemove = MoveHandlerIE; } function vec(X, Y) { this.X = X; this.Y = Y; } // adds force in X and Y to spring for dot[i] on dot[j] function springForce(i, j, spring) { var dx = (dots[i].X - dots[j].X); var dy = (dots[i].Y - dots[j].Y); var len = Math.sqrt(dx*dx + dy*dy); if (len > SEGLEN) { var springF = SPRINGK * (len - SEGLEN); spring.X += (dx / len) * springF; spring.Y += (dy / len) * springF; } } function animate() { // dots[0] follows the mouse, // though no dot is drawn there var start = 0; if (followmouse) { dots[0].X = Xpos; dots[0].Y = Ypos; start = 1; } for (i = start ; i < nDots; i++ ) { var spring = new vec(0, 0); if (i > 0) { springForce(i-1, i, spring); } if (i < (nDots - 1)) { springForce(i+1, i, spring); } // air resisitance/friction var resist = new vec(-dots[i].dx * RESISTANCE, -dots[i].dy * RESISTANCE); // compute new accel, including gravity var accel = new vec((spring.X + resist.X)/ MASS, (spring.Y + resist.Y)/ MASS + GRAVITY); // compute new velocity dots[i].dx += (DELTAT * accel.X); dots[i].dy += (DELTAT * accel.Y); // stop dead so it doesn't jitter when nearly still if (Math.abs(dots[i].dx) < STOPVEL && Math.abs(dots[i].dy) < STOPVEL && Math.abs(accel.X) < STOPACC && Math.abs(accel.Y) < STOPACC) { dots[i].dx = 0; dots[i].dy = 0; } // move to new position dots[i].X += dots[i].dx; dots[i].Y += dots[i].dy; // get size of window var height, width; if (isNetscape) { height = window.innerHeight + document.scrollTop; width = window.innerWidth + document.scrollLeft; } else { height = document.body.clientHeight + document.body.scrollTop; width = document.body.clientWidth + document.body.scrollLeft; } // bounce of 3 walls (leave ceiling open) if (dots[i].Y >= height - DOTSIZE - 1) { if (dots[i].dy > 0) { dots[i].dy = BOUNCE * -dots[i].dy; } dots[i].Y = height - DOTSIZE - 1; } if (dots[i].X >= width - DOTSIZE) { if (dots[i].dx > 0) { dots[i].dx = BOUNCE * -dots[i].dx; } dots[i].X = width - DOTSIZE - 1; } if (dots[i].X < 0) { if (dots[i].dx < 0) { dots[i].dx = BOUNCE * -dots[i].dx; } dots[i].X = 0; } // move img to new position dots[i].obj.left = dots[i].X; dots[i].obj.top = dots[i].Y; } } // end code hiding --> </script> EDIT3 XD: 7. Na napis na pasku stanu, przesuwajacy sie: <SCRIPT LANGUAGE="JavaScript"> <!--// Copyright 1996 - Tomer and Yehuda Shiran // This example will appear in our forthcoming book on JavaScript. // Feel free to "steal" this code provided that you leave this notice as is. // Additional examples from the book can be found at [link widoczny dla zalogowanych] // For more information contact Tomer or Yehuda Shiran <yshiran@iil.intel.com> // set speed of banner (pause in milliseconds between addition of new character) var speed = 10 // decrease value to increase speed (must be positive) // set pause between completion of message and beginning of following message var pause = 1500 // increase value to increase pause // set initial values var timerID = null var bannerRunning = false // create array var ar = new Array() // assign the strings to the array's elements ar[0] = "Witaj na stronie ze skryptami" ar[1] = "Mam nadzieję, żę skrypt Ci się podoba" ar[2] = "To wprawdzie bajer, ale sympatyczny" ar[3] = "Treść wierszy możesz samodzielnie zredagować" // assign index of current message var message = 0 // empty string initialization var state = "" // no value is currently being displayed clearState() // stop the banner if it is currently running function stopBanner() { // if banner is currently running if (bannerRunning) // stop the banner clearTimeout(timerID) // timer is now stopped timerRunning = false } // start the banner function startBanner() { // make sure the banner is stopped stopBanner() // start the banner from the current position showBanner() } // assign state a string of "0" characters of the length of the current message function clearState() { // initialize to empty string state = "" // create string of same length containing 0 digits for (var i = 0; i < ar[message].length; ++i) { state += "0" } } // display the current message function showBanner() { // if the current message is done if (getString()) { // increment message message++ // if new message is out of range wrap around to first message if (ar.length <= message) message = 0 // new message is first displayed as empty string clearState() // display next character after pause milliseconds timerID = setTimeout("showBanner()", pause) } else { // initialize to empty string var str = "" // built string to be displayed (only character selected thus far are displayed) for (var j = 0; j < state.length; ++j) { str += (state.charAt(j) == "1") ? ar[message].charAt(j) : " " } // partial string is placed in status bar window.status = str // add another character after speed milliseconds timerID = setTimeout("showBanner()", speed) } } function getString() { // set variable to true (it will stay true unless proven otherwise) var full = true // set variable to false if a free space is found in string (a not-displayed char) for (var j = 0; j < state.length; ++j) { // if character at index j of current message has not been placed in displayed string if (state.charAt(j) == 0) full = false } // return true immediately if no space found (avoid infinitive loop later) if (full) return true // search for random until free space found (braoken up via break statement) while (1) { // a random number (between 0 and state.length - 1 == message.length - 1) var num = getRandom(ar[message].length) // if free space found break infinitive loop if (state.charAt(num) == "0") break } // replace the 0 character with 1 character at place found state = state.substring(0, num) + "1" + state.substring(num + 1, state.length) // return false because the string was not full (free space was found) return false } function getRandom(max) { // create instance of current date var now = new Date() // create a random number (good generator) var num = now.getTime() * now.getSeconds() * Math.random() // cut random number to value between 0 and max - 1, inclusive return num % max } startBanner() // --> </SCRIPT> |
||||||||||||||
|
sawyer
Admin
crazy as a motherfucker
|
A jaki jest kod, aby ulubione avatary tak płynęły jak np. u Mirpul?
|
||||||||||||||
|
Mirpul
|
Hm, niewiem, bo w umieszczeniu tak tych avków pomagała mi kassiak(.mylog.pl)
A jaki jest kod, żeby tam gdzie są "kluby" Były avki a nie tylko napisy? |
||||||||||||||
|
Zuzia :)
|
Raanyy! To nie dla mnie.. jakas czarna magia xD
|
||||||||||||||
|
Arti-bboy
|
haczyk a oto odp: <marquee>avatary</marquee>
|
||||||||||||||
|
sawyer
Admin
crazy as a motherfucker
|
Dziekuję, Arti :))
|
||||||||||||||
|
Arti-bboy
|
nie ma za co
|
||||||||||||||
|
sawyer
Admin
crazy as a motherfucker
|
A zna ktoś może Skrypcik, że jak w tych ulubionych - one płynąąąąąąąą do prawej i wychodzą z lewej. A ja poszukuję, że z dołu w górę, tak jak przy pozdrowieniach... Ma ktośśśśś?
|
||||||||||||||
|
szymoneQ93
Gość
|
hAcZyk
Pozdrowienia: <p align="center"> <b><marquee direction=up scrollAmount=1 width="105" height="117" scrolldelay="1" style="border: 3px double #17496C; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"> <center> <br>tekst pozdrowień </marquee></B></font><br/><br/> Płynący tekst: <marquee direction=left>{ulubieni}</marquee> |
||||||||||||||
Ostatnio zmieniony przez szymoneQ93 dnia Czw 12:36, 03 Sie 2006, w całości zmieniany 1 raz |
Mirpul
|
Wielkie dzięki, SzymoneQ!
|
||||||||||||||
|
Arti-bboy
|
proste tele żę tutaj nie zajrzałem
|
||||||||||||||
|
Mazia i Line
|
[link widoczny dla zalogowanych]
To jest extra strona z skryptami |
||||||||||||||
|
Arti-bboy
|
żeczywiście odlotowa strona
|
||||||||||||||
|
Skrypty |
|
||
fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001-2004 phpBB Group
phpBB Style created by phpBBStyles.com and distributed by Styles Database.
Powered by phpBB © 2001-2004 phpBB Group
phpBB Style created by phpBBStyles.com and distributed by Styles Database.