Xooit.com

Aide et Support

[XOU-IT]

All times are GMT + 2 Hours


[Tuto] Image qui suit la souris
Goto page: <  1, 2, 3, 4
 
Post new topic   Reply to topic Goto page: <  1, 2, 3, 4
 
Author Message
shadow2389
PostPosted: Mon 14 Jul 2008 - 19:16    Post subject: [Tuto] Image qui suit la souris Reply with quote

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

Visit poster’s website
themalin
PostPosted: Mon 14 Jul 2008 - 19:19    Post subject: [Tuto] Image qui suit la souris Reply with quote

bonjour
tu mets bien le code avant ça


 
Code: Sélectionner - Agrandir
</head> 

_______________________


Membre
Membre

Online

Joined: 19 Apr 2006
Posts: 35,167
Point(s): 35,074
Moyenne: 1.00
Trophées: Trophée Bleu : Meilleur Posteur du forum d'entraide.
Firefox 3 Windows

Visit poster’s website
shadow2389
PostPosted: Mon 14 Jul 2008 - 20:54    Post subject: [Tuto] Image qui suit la souris Reply with quote

le code je l`ai mis au début de tout
_______________________
venez voir mon forum
http://infos-ubuntu.xooit.fr/index.php


Membre
Membre

Offline

Joined: 27 Jun 2008
Posts: 9
Niveau:
Point(s): 7
Moyenne: 0.78
Firefox Linux Masculin Taureau (20avr-20mai) 馬 Cheval

Visit poster’s website
themalin
PostPosted: Mon 14 Jul 2008 - 20:57    Post subject: [Tuto] Image qui suit la souris Reply with quote

il faut le mettre juste avant le code que je t'ai mis
_______________________


Membre
Membre

Online

Joined: 19 Apr 2006
Posts: 35,167
Point(s): 35,074
Moyenne: 1.00
Trophées: Trophée Bleu : Meilleur Posteur du forum d'entraide.
Firefox 3 Windows

Visit poster’s website
shadow2389
PostPosted: Tue 15 Jul 2008 - 15:09    Post subject: [Tuto] Image qui suit la souris Reply with quote

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
Membre

Offline

Joined: 27 Jun 2008
Posts: 9
Niveau:
Point(s): 7
Moyenne: 0.78
Firefox Linux Masculin Taureau (20avr-20mai) 馬 Cheval

Visit poster’s website
themalin
PostPosted: Tue 15 Jul 2008 - 20:01    Post subject: [Tuto] Image qui suit la souris Reply with quote

et si tu mets le code juste après la balise


 
Code: Sélectionner - Agrandir
<body> 


sinon est ce que le code est bien correct
_______________________


Membre
Membre

Online

Joined: 19 Apr 2006
Posts: 35,167
Point(s): 35,074
Moyenne: 1.00
Trophées: Trophée Bleu : Meilleur Posteur du forum d'entraide.
Firefox 3 Windows

Visit poster’s website
shadow2389
PostPosted: Thu 17 Jul 2008 - 17:12    Post subject: [Tuto] Image qui suit la souris Reply with quote

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
Membre

Offline

Joined: 27 Jun 2008
Posts: 9
Niveau:
Point(s): 7
Moyenne: 0.78
Firefox Linux Masculin Taureau (20avr-20mai) 馬 Cheval

Visit poster’s website
themalin
PostPosted: Thu 17 Jul 2008 - 18:40    Post subject: [Tuto] Image qui suit la souris Reply with quote

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
Membre

Online

Joined: 19 Apr 2006
Posts: 35,167
Point(s): 35,074
Moyenne: 1.00
Trophées: Trophée Bleu : Meilleur Posteur du forum d'entraide.
Firefox 3 Windows

Visit poster’s website
shadow2389
PostPosted: Fri 18 Jul 2008 - 18:19    Post subject: [Tuto] Image qui suit la souris Reply with quote

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
Membre

Offline

Joined: 27 Jun 2008
Posts: 9
Niveau:
Point(s): 7
Moyenne: 0.78
Firefox Linux Masculin Taureau (20avr-20mai) 馬 Cheval

Visit poster’s website
themalin
PostPosted: Fri 18 Jul 2008 - 18:20    Post subject: [Tuto] Image qui suit la souris Reply with quote

oui mais seul celui qui a posté le tuto peut le faire donc il faut attendre qu'il l'édites
_______________________


Membre
Membre

Online

Joined: 19 Apr 2006
Posts: 35,167
Point(s): 35,074
Moyenne: 1.00
Trophées: Trophée Bleu : Meilleur Posteur du forum d'entraide.
Firefox 3 Windows

Visit poster’s website
Display posts from previous:   
Post new topic   Reply to topic Goto page: <  1, 2, 3, 4
Page 4 of 4

All times are GMT + 2 Hours


Jump to:  


Top Forums Xooit