Neutraliser la souris droite et e-mail de permission HoSaM 5:19 AM Neutraliser la souris droite et e-mail de permission Placez ce code entre les balises de votre document html: <script language="JavaScript"> <!-- Beginning of JavaScript - // www.lecodejava.com function buttoncheck(e) { if (document.all && event.button==2) { document.all.orderwindow.style.visibility="visible" alert("c'est pas permit !") return false } if (document.layers && e.which==3) { document.orderwindow.visibility="visible" alert("Il faut la permission!") return false } } function sendmail() { if (document.all) { document.all.orderwindow.style.visibility="hidden" document.forms[0].submit() } if (document.layers) { document.orderwindow.visibility="hidden" document.orderwindow.document.forms[0].submit() } } function closewindow() { if (document.all) { document.all.orderwindow.style.visibility="hidden" } if (document.layers) { document.orderwindow.visibility="hidden" } } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=buttoncheck; // --> </script> Inserez ce code entre les balises du document HTML: <div id="orderwindow" style="position:absolute;top:10px;left:220px;visibility:hidden"><form action="mailto:lecodejava@yahoo.com"><table width=300 cellpadding=4 cellspacing=0 border=0><tr> <td COLSPAN=2 ALIGN=MIDDLE bgcolor=00FFAA><FONT face=Verdana size=1 color=FFFFFc><b>Votre site est jolie .<br>S'il vous plait envoie moi votre code.</b></font></td> </tr> <tr> <td align=right bgcolor=000FFF><FONT face=Verdana size=1 color=FFFFFc>Nom:</td> <td align=left bgcolor=000FFF><FONT face=Verdana size=1><input type="Text" name="lastname" size="20" maxlength="40"></font></td> </tr> <tr> <td align=right bgcolor=000FFF><FONT face=Verdana size=1 color=FFFFFc>Prenom:</td> <td align=left bgcolor=000FFF><FONT face=Verdana size=1><input type="Text" name="firstname" size="20" maxlength="40"></font></td> </tr> <tr> <td align=right bgcolor=0000FF><FONT face=Verdana size=1 color=FFFFFc>Pays:</td> <td align=left bgcolor=0000FF><FONT face=Verdana size=1><input type="Text" name="country" size="20" maxlength="40"></font></td> </tr> <tr> <td align=right bgcolor=0000FF><FONT face=Verdana size=1 color=FFFFFc>e-Mail:</td> <td align=left bgcolor=0000FF><FONT face=Verdana size=1><input type="Text" name="email" size="20" maxlength="40"></font></td> </tr> <tr> <td align=right bgcolor=0000FF><FONT face=Verdana size=1 color=FFFFFc><input type="button" value="Envoyer " onClick="sendmail()"></font></td> <td align=left bgcolor=0000FF><FONT face=Verdana size=1><input type="button" value="Ferme la fenetre" onClick="closewindow()"></font></td> </tr> </table></div></form> ÔÇÑß ÇáãæÖæÚ: Codes Related Posts