| Scripts | |
|
|
|
Auteur | Message |
---|
Belzebub Adminoschizopathe
Nombre de messages : 4472 Age : 42 Localisation : Derrière toi Date d'inscription : 14/10/2004
| Sujet: Scripts Ven 5 Nov - 14:43 | |
| Quelq'un peut m'aider pour insérer une horloge sur le portail qui changera d'heure automatiquement (heure d'été/hiver) ??? Pour le moment j'ai ça Je sais pas si c'est bon - Code:
-
<script language="JavaScript"> <!-- //PLF-http://www.jejavascript.net/ function heure() { var Maintenant = new Date(); var fuseau = Maintenant.getTimezoneOffset(); var heures = Maintenant.getHours(); var minutes = Maintenant.getMinutes(); var secondes = Maintenant.getSeconds(); heures = heures + (fuseau/60)+1; //heure été var annee = Maintenant.getFullYear(); for (i=31; i >24; i--) { dimanche = new Date(annee, 2, i); if (dimanche.getDay()==0) break; } for (i=31; i >24; i--) { dimanche2 = new Date(annee, 9, i); if (dimanche2.getDay()==0) break; } if (Maintenant >= dimanche && Maintenant < dimanche2) heures = heures + 1; //heure été heures = ((heures < 10) ? " 0" : " ") + heures; minutes = ((minutes < 10) ? ":0" : ":") + minutes; secondes = ((secondes < 10) ? ":0" : ":") + secondes; document.formhorloge.horloge.value = heures + minutes + secondes; setTimeout("heure()",1000); } //--> </script> | |
|
| |
Belzebub Adminoschizopathe
Nombre de messages : 4472 Age : 42 Localisation : Derrière toi Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 11:46 | |
| Bon j'ai renommé ce topic en scripts....bref Shadow, est ce que tu pourrais me tester ce code dans ton forum de test s'il te plait? - Code:
-
<body background=""> <script language="JavaScript">
Image0=new Image(); Image0.src="http://img110.exs.cx/img110/8861/snow3.gif"; Amount=15;
Ypos=new Array(); Xpos=new Array(); Speed=new Array(); rate=new Array(); grow=new Array(); Step=new Array(); Cstep=new Array(); nsSize=new Array(); ns=(document.layers)?1:0; WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight; WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth; for (j=0; j < Amount; j++){ Ypos[j] = Math.round(Math.random()*WinHeight); Xpos[j] = Math.round(Math.random()*WinWidth); Speed[j]= Math.random()*2+2; Cstep[j]=0; Step[j]=Math.random()*0.1+0.05; grow[j]=10; nsSize[j]=Math.random()*15+5; rate[j]=Math.random()*0.5+0.1; } if (ns){ for (j=0;j< Amount;j++){ document.write("<LAYER NAME='sn"+j+"' LEFT=0 TOP=0><img src="+image0.src+" name='N' width="+nsSize[j]+" height="+nsSize[j]+"></LAYER>"); } } else{ document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (j=0;j< Amount;j++){ document.write('<img id="si" src="'+Image0.src+'" style="position:absolute;top:0px;left:0px;filter:alpha(opacity=100)">'); } document.write('</div></div>'); } function bubbles(){ var WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight; var WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth; var hscrll=(document.layers)?window.pageYOffset:document.body.scrollTop; var wscrll=(document.layers)?window.pageXOffset:document.body.scrollLeft; for (j=0;j<Amount;j++){ sy = Speed[j]*Math.sin(270*Math.PI/180); sx = Speed[j]*Math.cos(Cstep[j]); Ypos[j]-=sy; Xpos[j]+=sx; if (Ypos[j] > WinHeight){ Ypos[j]=-50; Xpos[j]=Math.round(Math.random()*WinWidth); Speed[j]=Math.random()*4+6;
grow[j]=10; nsSize[j]=Math.random()*15+10; } if (ns){ document.layers['sn'+j].left=Xpos[j]+wscrll; document.layers['sn'+j].top=Ypos[j]+hscrll; } else{ si[j].style.pixelLeft=Xpos[j]+wscrll; si[j].style.pixelTop=Ypos[j]-hscrll; si[j].style.width=grow[j]; si[j].style.height=grow[j]; } grow[j]+=rate[j]; Cstep[j]+=Step[j]; if (grow[j] > 24) grow[j]=25; } setTimeout('bubbles()',30); } bubbles(); //--> </script>
Marki | |
|
| |
Shadow Wouahou!!! Viens d'avoir sa licence es flood!
Nombre de messages : 1478 Localisation : Perdu Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 15:15 | |
| Ok je vais tester ça | |
|
| |
Belzebub Adminoschizopathe
Nombre de messages : 4472 Age : 42 Localisation : Derrière toi Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 15:44 | |
| Marki Shadow (dommage pour Mozilla par contre ) Essaye celui là à la place - Code:
-
<script language="JavaScript">
Image0=new Image(); Image0.src="http://img110.exs.cx/img110/8861/snow3.gif"; Amount=8;
Ypos=new Array(); Xpos=new Array(); Speed=new Array(); rate=new Array(); grow=new Array(); Step=new Array(); Cstep=new Array(); nsSize=new Array(); ns=(document.layers)?1:0; WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight; WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth; for (i=0; i < Amount; i++){ Ypos[i] = Math.round(Math.random()*WinHeight); Xpos[i] = Math.round(Math.random()*WinWidth); Speed[i]= Math.random()*2+2; Cstep[i]=0; Step[i]=Math.random()*0.1+0.05; grow[i]=10; nsSize[i]=Math.random()*15+5; rate[i]=Math.random()*0.5+0.1; } if (ns){ for (i = 0; i < Amount; i++){ document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+Image0.src+" name='N' width="+nsSize[i]+" height="+nsSize[i]+"></LAYER>"); } } else{ document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i = 0; i < Amount; i++){ document.write('<img id="si" src="'+Image0.src+'" style="position:absolute;top:0px;left:0px;filter:alpha(opacity=100)">'); } document.write('</div></div>'); } function bubbles(){ var WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight; var WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth; var hscrll=(document.layers)?window.pageYOffset:document.body.scrollTop; var wscrll=(document.layers)?window.pageXOffset:document.body.scrollLeft; for (i=0; i < Amount; i++){ sy = Speed[i]*Math.sin(270*Math.PI/180); sx = Speed[i]*Math.cos(Cstep[i]); Ypos[i]+=sy; Xpos[i]+=sx; if (Ypos[i] < -50){ Ypos[i]=WinHeight+50; Xpos[i]=Math.round(Math.random()*WinWidth); Speed[i]=Math.random()*4+6;
grow[i]=10; nsSize[i]=Math.random()*15+10; } if (ns){ document.layers['sn'+i].left=Xpos[i]+wscrll; document.layers['sn'+i].top=Ypos[i]+hscrll; } else{ si[i].style.pixelLeft=Xpos[i]+wscrll; si[i].style.pixelTop=Ypos[i]+hscrll; si[i].style.width=grow[i]; si[i].style.height=grow[i]; } grow[i]+=rate[i]; Cstep[i]+=Step[i]; if (grow[i] > 24) grow[i]=25; } setTimeout('bubbles()',10); } bubbles(); //--> </script> Dis moi c'que ça donne <====pas sûre du résultat | |
|
| |
Shadow Wouahou!!! Viens d'avoir sa licence es flood!
Nombre de messages : 1478 Localisation : Perdu Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 15:46 | |
| De rien, je test ça.
Je sais qu'il y a moyen de faire marcher sous FF mais je sais pas comment, le javascript et moi c'est pas ça. | |
|
| |
Belzebub Adminoschizopathe
Nombre de messages : 4472 Age : 42 Localisation : Derrière toi Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 15:54 | |
| curseur - Code:
-
<!-- DEBUT DU SCRIPT --><SCRIPT LANGUAGE="JavaScript">/*Image qui suit et regarde la sourishttp://www.editeurjavascript.com/scripts/scripts_images_1_66.phpSCRIPT EDITE SUR L'EDITEUR JAVASCRIPThttp://www.editeurjavascript.com*/var x = 0;var y = 0;if (document.getElementById) { if(navigator.appName.substring(0,3) == "Net") document.captureEvents(Event.MOUSEMOVE); document.onmousemove = Pos_Souris; window.onload = Bouge_Image; }function Pos_Souris(e) { x = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft; y = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop; }posX = 0;posY = 0;anim = true;oldpos = "http://img110.exs.cx/img110/8861/snow3.gif";function Bouge_Image() { if (document.getElementById && anim) { posX = posX+(((x-posX)+20)/15); posY = posY+(((y-posY)+20)/15); if(posX<x) newpos='http://img110.exs.cx/img110/8861/snow3.gif'; else newpos='http://img110.exs.cx/img110/8861/snow3.gif'; if(newpos!=oldpos) { document.tete.src=newpos; oldpos=newpos; } document.getElementById("teteronde").style.top = posY; document.getElementById("teteronde").style.left = posX; tempo = setTimeout("Bouge_Image()", 15) } }if(document.getElementById) { document.write('<DIV ID=teteronde style="position: absolute">'); document.write('<A HREF="#" onClick="anim=false;document.getElementById(\'teteronde\').style.visibility = \'hidden\';return(false)">'); document.write('<IMG SRC="http://img110.exs.cx/img110/8861/snow3.gif" BORDER=0 HSPACE=0 VSPACE=0 NAME=tete ALT="Cliquez ici pour faire disparaître">'); document.write('</A>'); document.write('</DIV>'); }</SCRIPT><!-- FIN DU SCRIPT --> Essaye ça Si ça marche pas j'me tue | |
|
| |
Shadow Wouahou!!! Viens d'avoir sa licence es flood!
Nombre de messages : 1478 Localisation : Perdu Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 15:57 | |
| Oke je test, et dis pas de bétise | |
|
| |
Belzebub Adminoschizopathe
Nombre de messages : 4472 Age : 42 Localisation : Derrière toi Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:06 | |
| Ca marche? | |
|
| |
Shadow Wouahou!!! Viens d'avoir sa licence es flood!
Nombre de messages : 1478 Localisation : Perdu Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:11 | |
| celui là devrait marcher: - Code:
-
<!-- DEBUT DU SCRIPT --> <SCRIPT LANGUAGE="JavaScript"> /* SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT http://www.editeurjavascript.com
Script basé sur Trail par E.D Prod 1998 http://javascript.lab.cc */ var Xpos = 50; var Ypos = 50; var vara="DIV ID"; var varb="/DIV"; var styl='style="position:absolute;left:0px;top:0px;width:32px;height:32px;visibility:hidden;"' chaine='<'+vara+'="obj1" '+styl+'>' chaine='<'+vara+'="obj1" '+styl+'>' +'<img src="http://img110.exs.cx/img110/8861/snow3.gif" border=0>' +'<'+varb+'>' +'<'+vara+'="obj2" '+styl+'>' +'<img src="http://img110.exs.cx/img110/8861/snow3.gif" border=0>' +'<'+varb+'>' +'<'+vara+'="obj3" '+styl+'>' +'<img src="http://img110.exs.cx/img110/8861/snow3.gif" border=0>' +'<'+varb+'>' +'<'+vara+'="obj4" '+styl+'>' +'<img src="http://img110.exs.cx/img110/8861/snow3.gif" border=0>' +'<'+varb+'>' +'<'+vara+'="obj5" '+styl+'>' +'<img src="http://img110.exs.cx/img110/8861/snow3.gif" border=0>' +'<'+varb+'>' +'<'+vara+'="obj6" '+styl+'>' +'<img src="http://img110.exs.cx/img110/8861/snow3.gif" border=0>' +'<'+varb+'>' +'<'+vara+'="obj7" '+styl+'>' +'<img src="http://img110.exs.cx/img110/8861/snow3.gif" border=0>' +'<'+varb+'>' +'<'+vara+'="obj8" '+styl+'>' +'<img src="http://img110.exs.cx/img110/8861/snow3.gif" border=0>' +'<'+varb+'>' +'<'+vara+'="obj9" '+styl+'>' +'<img src="http://img110.exs.cx/img110/8861/snow3.gif" border=0>' +'<'+varb+'>' +'<'+vara+'="obj10" '+styl+'>' +'<img src="http://img110.exs.cx/img110/8861/snow3.gif" border=0>' +'<'+varb+'>' document.write(chaine); var div1 = document.getElementById("obj1").style; var div2 = document.getElementById("obj2").style; var div3 = document.getElementById("obj3").style; var div4 = document.getElementById("obj4").style; var div5 = document.getElementById("obj5").style; var div6 = document.getElementById("obj6").style; var div7 = document.getElementById("obj7").style; var div8 = document.getElementById("obj8").style; var div9 = document.getElementById("obj9").style; var div10 = document.getElementById("obj10").style; var objet;var coordx;var coordy; objet = new Array(div1,div2,div3,div4,div5,div6,div7,div8,div9,div10); coordx = new Array(0,0,0,0,0,0,0,0,0,0);coordy = new Array(0,0,0,0,0,0,0,0,0,0); function placeObj(i,px,py) { objet[i].left=px; objet[i].top=py; } function voirObj(i) { objet[i].visibility="visible"; } function cacheObj(i) { objet[i].visibility="hidden"; } function cacheObj(i) { objet[i].visibility="hidden"; }
if (document.getElementById) { if(navigator.appName.substring(0,3) == "Net") document.captureEvents(Event.MOUSEMOVE); document.onmousemove = Pos_Souris; }
function Pos_Souris(e) { Xpos = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft; Ypos = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop; }
function vole() { x0=coordx[0];y0=coordy[1];ex=Xpos+10;ey=Ypos+10 reelx=x0+0.6;reely=y0+0.6; rx=reelx;ry=reely; rx+=(ex-rx)*0.6;ry+=(ey-ry)*0.6; reelx=rx;reely=ry; x0=Math.round(reelx);y0=Math.round(reely);
for (var i = 9; i > 0; i--) { coordx[i]=coordx[i-1]; coordy[i]=coordy[i-1]; }
coordx[0]=x0;coordy[0]=y0; for (var i = 0; i < 10; i++) { voirObj(i);placeObj(i,coordx[i]+i-2,coordy[i]-i); } setTimeout("vole()",10) } if(document.getElementById) window.onload = vole; </SCRIPT> <!-- FIN DU SCRIPT --> | |
|
| |
Belzebub Adminoschizopathe
Nombre de messages : 4472 Age : 42 Localisation : Derrière toi Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:12 | |
| Si le forum explose c'est normal hin | |
|
| |
Shadow Wouahou!!! Viens d'avoir sa licence es flood!
Nombre de messages : 1478 Localisation : Perdu Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:16 | |
| LOL pas grave | |
|
| |
Belzebub Adminoschizopathe
Nombre de messages : 4472 Age : 42 Localisation : Derrière toi Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:21 | |
| Soyons fous Ceci dit ton script marche pas......quoique j'ai pas testé sous IE Atta.... | |
|
| |
Testing Floodeur de Passage
Nombre de messages : 12 Date d'inscription : 17/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:23 | |
| Marche pas sous IE non plus Atta encore....... J'vais l'avoir | |
|
| |
Shadow Wouahou!!! Viens d'avoir sa licence es flood!
Nombre de messages : 1478 Localisation : Perdu Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:24 | |
| je comprend plus rien moi, aucun script ne marche forumactif c'est pas ça | |
|
| |
Testing Floodeur de Passage
Nombre de messages : 12 Date d'inscription : 17/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:25 | |
| A mort forumactif Laisse moi réfléchir à une solution (ça va être dur....ah merde, j'ai le droit d'être intelligent suis pas Bzb là ) | |
|
| |
Shadow Wouahou!!! Viens d'avoir sa licence es flood!
Nombre de messages : 1478 Localisation : Perdu Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:26 | |
| | |
|
| |
Testing Floodeur de Passage
Nombre de messages : 12 Date d'inscription : 17/10/2004
| |
| |
Belzebub Adminoschizopathe
Nombre de messages : 4472 Age : 42 Localisation : Derrière toi Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:29 | |
| Moi j'vois rien Ok je retourne dehors | |
|
| |
Shadow Wouahou!!! Viens d'avoir sa licence es flood!
Nombre de messages : 1478 Localisation : Perdu Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:30 | |
| ok je te le dis, mais je vois rien | |
|
| |
Belzebub Adminoschizopathe
Nombre de messages : 4472 Age : 42 Localisation : Derrière toi Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:32 | |
| | |
|
| |
Testing Floodeur de Passage
Nombre de messages : 12 Date d'inscription : 17/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:33 | |
| Je vois toujours rien non plus | |
|
| |
Shadow Wouahou!!! Viens d'avoir sa licence es flood!
Nombre de messages : 1478 Localisation : Perdu Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:33 | |
| Idem rien | |
|
| |
Belzebub Adminoschizopathe
Nombre de messages : 4472 Age : 42 Localisation : Derrière toi Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:34 | |
| vive le javascript alors | |
|
| |
Shadow Wouahou!!! Viens d'avoir sa licence es flood!
Nombre de messages : 1478 Localisation : Perdu Date d'inscription : 14/10/2004
| |
| |
Belzebub Adminoschizopathe
Nombre de messages : 4472 Age : 42 Localisation : Derrière toi Date d'inscription : 14/10/2004
| Sujet: Re: Scripts Mar 9 Nov - 16:37 | |
| Bon bah j'peux l'enlever | |
|
| |
Contenu sponsorisé
| Sujet: Re: Scripts | |
| |
|
| |
| Scripts | |
|