Projet en html

bag-forever -  
caipirinha Messages postés 1138 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,
J'ai remarquer un projet ici :http://taatuproject.tk/
Et j'aimerais faire un projet du même genre mais je ne sais pas comment m'y prendre merci de m'aider
A voir également:

1 réponse

caipirinha Messages postés 1138 Date d'inscription   Statut Membre Dernière intervention   227
 
Bonjour.

Des images :
http://moe.mabul.org/up/moe/2009/05/22/img-005550mcaew.png
http://moe.mabul.org/up/moe/2009/05/21/img-215644jz905.png
http://moe.mabul.org/up/moe/2009/05/21/img-143040os420.png

Et du code en Java de ce genre là :

var dragobject={ z: 0, x: 0, y: 0, offsetx : null, offsety : null, targetobj : null, dragapproved : 0, initialize:function(){ document.onmousedown=this.drag document.onmouseup=function(){this.dragapproved=0} }, drag:function(e){ var evtobj=window.event? window.event : e this.targetobj=window.event? event.srcElement : e.target if (this.targetobj.className=="drag"){ this.dragapproved=1 if (isNaN(parseInt(this.targetobj.style.left))){this.targetobj.style.left=0} if (isNaN(parseInt(this.targetobj.style.top))){this.targetobj.style.top=0} this.offsetx=parseInt(this.targetobj.style.left) this.offsety=parseInt(this.targetobj.style.top) this.x=evtobj.clientX this.y=evtobj.clientY if (evtobj.preventDefault) evtobj.preventDefault() document.onmousemove=dragobject.moveit } }, moveit:function(e){ var evtobj=window.event? window.event : e if (this.dragapproved==1){ this.targetobj.style.left=this.offsetx+evtobj.clientX-this.x+"px" this.targetobj.style.top=this.offsety+evtobj.clientY-this.y+"px" return false } } } dragobject.initialize()

Il faudra t'orienter vers le forum programmation pour plus d 'informations.
0