Sorte de POST-IT pour site web

Résolu/Fermé
VPTBoss Messages postés 82 Date d'inscription mercredi 15 avril 2009 Statut Membre Dernière intervention 28 juin 2015 - 2 févr. 2011 à 18:54
duweb Messages postés 352 Date d'inscription dimanche 30 mai 2010 Statut Membre Dernière intervention 6 mars 2014 - 3 févr. 2011 à 13:20
Bonjour, j'ai fais un site pour mon père : http://barau10.fr et je souhaite pour les soirées à thèmes faire des sortes de POST-IT comme sur ce site de mon lycée : http://claveille.org

MERCI =)



A voir également:

3 réponses

Bonsoir,
<script type="text/javascript">
/***********************************************
* Drag and Drop Script: © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

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()
</script>
<!-- POSTIT --> 
<img class="drag" src="/Images/JPO_2011.png" title="Si cette image gène, déplacez la !" style="left: 580px; top: 290px; position: absolute; height: 262px; width: 262px;" /> 
<img class="drag" src="/Images/Taxe.png" title="Si cette image gène, déplacez la !" style="left: 550px; top: 60px; position: absolute; height: 264px; width: 264px;" />
<!-- /POSTIT -->
0
VPTBoss Messages postés 82 Date d'inscription mercredi 15 avril 2009 Statut Membre Dernière intervention 28 juin 2015 6
3 févr. 2011 à 11:08
Effectivement, c'étais dans le code source. Merci =)
0
duweb Messages postés 352 Date d'inscription dimanche 30 mai 2010 Statut Membre Dernière intervention 6 mars 2014 72
3 févr. 2011 à 13:20
penser à modifier en [Résolu]
0