|
|
| Author |
Message |
|
shadow2389 |
Posted: Mon 14 Jul 2008 - 19:16 Post subject: [Tuto] Image qui suit la souris |
 |
|
Previous post review:
bonjour j`ai mis ça dans mon overall header tpl:
<!-- DEBUT DU SCRIPT -->
<script type="text/javascript">
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.monchval.com/images/cure-pieds.gif";
function Bouge_Image()
{
if (document.getElementById && anim)
{
posX = posX+(((x-posX)+20)/15);
posY = posY+(((y-posY)+20)/15);
document.getElementById("teteronde").style.top = posY;
document.getElementById("teteronde").style.left = posX;
tempo = setTimeout("Bouge_Image()", 15)
}
}
if(document.getElementById)
{
document.write('
');
document.write('');
document.write('http://sd-1.archive-host.com/membres/images/1589445561313469/flo_125.gif');
document.write('');
document.write('
');
}
</SCRIPT>
<!-- FIN DU SCRIPT -->
mais sa fonctionne pas
je fait tu quelque chose de travers |
|
Joined: 27 Jun 2008
Posts: 9
|
 |
|
 |
|
themalin |
|
| Membre |

|
 Online |
Joined: 19 Apr 2006
Posts: 35,167
Point(s): 35,074 Moyenne: 1.00 Trophées: 
|
 |
|
 |
|
shadow2389 |
Posted: Mon 14 Jul 2008 - 20:54 Post subject: [Tuto] Image qui suit la souris |
 |
|
le code je l`ai mis au début de tout _______________________ venez voir mon forum
http://infos-ubuntu.xooit.fr/index.php
|
|
| Membre |

|
Offline |
Joined: 27 Jun 2008
Posts: 9
Niveau: Point(s): 7 Moyenne: 0.78
|
 |
|
 |
|
themalin |
Posted: Mon 14 Jul 2008 - 20:57 Post subject: [Tuto] Image qui suit la souris |
 |
|
il faut le mettre juste avant le code que je t'ai mis _______________________
|
|
| Membre |

|
 Online |
Joined: 19 Apr 2006
Posts: 35,167
Point(s): 35,074 Moyenne: 1.00 Trophées: 
|
 |
|
 |
|
shadow2389 |
Posted: Tue 15 Jul 2008 - 15:09 Post subject: [Tuto] Image qui suit la souris |
 |
|
c ce que j`ai fait pis sa marche quand même pas _______________________ venez voir mon forum
http://infos-ubuntu.xooit.fr/index.php
|
|
| Membre |

|
Offline |
Joined: 27 Jun 2008
Posts: 9
Niveau: Point(s): 7 Moyenne: 0.78
|
 |
|
 |
|
themalin |
|
| Membre |

|
 Online |
Joined: 19 Apr 2006
Posts: 35,167
Point(s): 35,074 Moyenne: 1.00 Trophées: 
|
 |
|
 |
|
shadow2389 |
Posted: Thu 17 Jul 2008 - 17:12 Post subject: [Tuto] Image qui suit la souris |
 |
|
sa marche pas plus pis le code que je me sert de c celui dans mon premier message si t `as le gout de vérifier si c`est le bon moi je ne m`y connais pas vraiment je fait du copier coller moi pis c toutje ne comprend rien au language du code mais bon c`est pour ça que des forums comme le vôtre existe pour pouvoir aider les nuls comme moi _______________________ venez voir mon forum
http://infos-ubuntu.xooit.fr/index.php
|
|
| Membre |

|
Offline |
Joined: 27 Jun 2008
Posts: 9
Niveau: Point(s): 7 Moyenne: 0.78
|
 |
|
 |
|
themalin |
Posted: Thu 17 Jul 2008 - 18:40 Post subject: [Tuto] Image qui suit la souris |
 |
|
il vaut mieux essayer un autre code car celui du preier message je ne sais pas s'il marche encore
essayes d'en trouver un ici
http://www.editeurjavascript.com/ _______________________
|
|
| Membre |

|
 Online |
Joined: 19 Apr 2006
Posts: 35,167
Point(s): 35,074 Moyenne: 1.00 Trophées: 
|
 |
|
 |
|
shadow2389 |
Posted: Fri 18 Jul 2008 - 18:19 Post subject: [Tuto] Image qui suit la souris |
 |
|
j`ai mis ce script que j`ai pris sur le site proposer par themalin et sa marche
sa serait bien de éditer le script du tuto pour les aures qui voudrait l`utiliser:
<!-- DEBUT DU SCRIPT -->
<script type="text/javascript">
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.monchval.com/images/cure-pieds.gif";
function Bouge_Image()
{
if (document.getElementById && anim)
{
posX = posX+(((x-posX)+20)/15);
posY = posY+(((y-posY)+20)/15);
document.getElementById("teteronde").style.top = posY;
document.getElementById("teteronde").style.left = posX;
tempo = setTimeout("Bouge_Image()", 15)
}
}
if(document.getElementById)
{
document.write('
');
document.write('');
document.write(' ');
document.write('');
document.write('
');
}
</SCRIPT>
<!-- FIN DU SCRIPT --> _______________________ venez voir mon forum
http://infos-ubuntu.xooit.fr/index.php
Last edited by shadow2389 on Fri 18 Jul 2008 - 18:22; edited 1 time in total
|
|
| Membre |

|
Offline |
Joined: 27 Jun 2008
Posts: 9
Niveau: Point(s): 7 Moyenne: 0.78
|
 |
|
 |
|
themalin |
Posted: Fri 18 Jul 2008 - 18:20 Post subject: [Tuto] Image qui suit la souris |
 |
|
oui mais seul celui qui a posté le tuto peut le faire donc il faut attendre qu'il l'édites _______________________
|
|
| Membre |

|
 Online |
Joined: 19 Apr 2006
Posts: 35,167
Point(s): 35,074 Moyenne: 1.00 Trophées: 
|
 |
|
 |
|