Version compl�te: jsB@nk » Image » Image Clone
URL: https://www.javascriptbank.com/clone-image.html
C'est très simple JavaScript timepass programme. Il tuile de vos images.
Version compl�te: jsB@nk » Image » Image Clone
URL: https://www.javascriptbank.com/clone-image.html
<BODY onKeyPress="catchKeyCode();"><TABLE BORDER=0 CELLPADDING=10 WIDTH=30% BGCOLOR=#FF9900><TR><TD ALIGN=center><script language="JavaScript"><!--if(navigator.appName == "Microsoft Internet Explorer"){function draw_Image() //draws an image randomly each time the page reloads{idx = Math.round(Math.random()*16)+1; //generates a number between 1 to 16document.write("<IMG SRC='gif_logojsb2.gif'>");}draw_Image(); //draw the image which is going to clonefunction user_Input(){//prompt for a number and convert the number to an integer,//if it fails to convert nothing will happeninput = parseInt(prompt("How many copies would you like to make this image?",""));for(i = 0; i < input; i++){document.write("<IMG SRC='gif_logojsb2.gif'>");}}}else{window.alert("Sorry, this script requires Microsoft Internet Explorer. It doesn't work with Netscape Navigator or other browsers!");}--></script></TD></TR><TR><TD VALIGN=botttom ALIGN=center><FORM><INPUT TYPE=button VALUE=Clone onClick="user_Input();"STYLE="font-weight: bold; color: #FFFFFF; background-color:#0099FF"></FORM></TD></TR></TABLE><SCRIPT LANGUAGE="JavaScript"><!--if(navigator.appName == "Microsoft Internet Explorer"){function catchKeyCode() //calls when the user press the RETURN key{if(event.keyCode == 13) user_Input();}}--></SCRIPT><BR><BR></TD></TR></TABLE></BODY><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->