poil Administrateur
Nombre de messages : 393 Date d'inscription : 18/08/2005
| Sujet: Plin de petit scripte Dim 18 Sep - 6:15 | |
| Pour avoir une horloge qui suit la souris: - Code:
-
<SCRIPT language=JavaScript> dCol='#F08080 ';//date colour. fCol='#6A5ACD ';//face colour. sCol='#008B8B ';//seconds colour. mCol='#C71585 ';//minutes colour. hCol='#000000 ';//hours colour. ClockHeight=40; ClockWidth=40; ClockFromMouseY=0; ClockFromMouseX=100;~
//Alter nothing below! Alignments will be lost!
d=new Array("DIMANCHE","LUNDI","MARDI","MERCREDI","JEUDI","VENDREDI","SAMEDI"); m=new Array("JANVIER","FEVRIER","MARS","AVRIL","MAI","JUIN","JUILLET","AOUT","SEPTEMBRE","OCTOBRE","NOVEMBRE","DECEMBRE"); 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'; size=1; speed=0.6; ns=(document.layers); ie=(document.all); Face=Face.split(' '); n=Face.length; a=size*10; Pour une image qui suit et regarde la souris: - Code:
-
<!-- DEBUT DU SCRIPT --> <SCRIPT LANGUAGE="JavaScript"> /* Image qui suit et regarde la souris http://www.editeurjavascript.com/scripts/scripts_images_1_66.php
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT http://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://www.editeurjavascript.com/img/img_exemples/gauche.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://www.editeurjavascript.com/img/img_exemples/droite.gif'; else newpos='http://www.editeurjavascript.com/img/img_exemples/gauche.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://www.editeurjavascript.com/img/img_exemples/droite.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 --> Pour changer de cuseur au passage d'un lien: - Code:
-
<table> <tr> <td bgcolor=#FFCC00 style="cursor: pointer;">Lien (main)</td> </tr> <tr> <td bgcolor=#FFCC00 style="cursor: help;">Help !</td> </tr> <tr> <td bgcolor=#FFCC00 style="cursor: crosshair;">Precision</td> </tr> <tr> <td bgcolor=#FFCC00 style="cursor: move;">Bouger</td> </tr> <tr> <td bgcolor=#FFCC00 style="cursor: text;">Texte</td> </tr> <tr> <td bgcolor=#FFCC00 style="cursor: wait;">Wait</td> </tr> </table> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Ps/ je ne sait pas si les scripts marche; je ne les est pas tester.</script> pris sur forum.forumactif.com
Dernière édition par le Dim 25 Sep - 2:31, édité 1 fois | |
|
Floodaî Timide
Nombre de messages : 75 Localisation : chez moi Date d'inscription : 18/09/2005
| Sujet: Re: Plin de petit scripte Mer 21 Sep - 11:45 | |
| ben avant de les mettre il faudrais le faire | |
|
firstwave
Nombre de messages : 3 Date d'inscription : 22/09/2005
| Sujet: Re: Plin de petit scripte Jeu 22 Sep - 15:27 | |
| Salut
Il faut mettre ça ou sur le forum ?
Merci | |
|
poil Administrateur
Nombre de messages : 393 Date d'inscription : 18/08/2005
| Sujet: Re: Plin de petit scripte Ven 23 Sep - 4:26 | |
| sa depand si tu veux que lfet sois dans le protail tu doit le mettre comme blok hltml
si s'est pas la pag forum tu doit mettre sa ou tu veux enfin s'est se qu'on ma dit | |
|
Contenu sponsorisé
| Sujet: Re: Plin de petit scripte | |
| |
|