superlapin62 Posted April 22, 2004 Share Posted April 22, 2004 Salut !!!!!!!!!!!!!! J'aurrais besoin d'un coup de pouce sous DMX 2004 ! Voila, je souhaiterai, lorsque l'on clique sur un lien, ourvrir ce dernier dans une nouvelle fenètre qui s'adapterai automatiquement au contenue. En gros pas besoin d'une fenêtre de 1024*768 pour une ch'tite image + déscription. Voili voilà, si vous pouviez m'aider car c'est trés important, j'en ai besoin pour continuer mon site d'infographie :) A++ les balèzes (et les autres) Link to comment Share on other sites More sharing options...
playstation.2.fg Posted April 22, 2004 Share Posted April 22, 2004 Un petit script qui permet d'ouvrir un popup qui s'adapte à la taille de l'image (je ne sais pas si c'est ça que tu veux exactemnt, mais je post quand même) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Titre</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script LANGUAGE="JavaScript"> // D'autres scripts et des tutoriaux sur http://www.toutjavascript.com function PopupImage(img) { titre="Titre"; w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes'); w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>"); w.document.write("<script language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>"); w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0>"); w.document.write(""); w.document.write("</BODY></HTML>"); w.document.close(); } </SCRIPT> </head> <body> <div align="center"> <p> </p> <p><font size="+4" face="Arial, Helvetica, sans-serif"><strong>Texte</strong></font></p> <table width="302" border="0" cellspacing="3" cellpadding="0"> <tr> <td><a href="javascript:PopupImage('Image.jpg')"><img src="Image.jpg" width="150" height="113" border="0"></a></td> </table> </div> </body> </html> J'ai laisser les références ( http://www.toutjavascript.com ), si jamais tu veux aller voir. En espérant que ça peux t'aider. Link to comment Share on other sites More sharing options...
superlapin62 Posted April 22, 2004 Author Share Posted April 22, 2004 OUAHHHHHHHHHHH MERCI BEAUCOUP !!!! C'est exactement ce que je recherchai ! Et merci pour le lien, ça va m'être trés utile tout ça ! A++ Link to comment Share on other sites More sharing options...
playstation.2.fg Posted April 22, 2004 Share Posted April 22, 2004 Ok, tant mieux Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.