i have this code..witch changes the background of my html..but i would like if possible..to change the background only to the table and not the whole page .. <HTML> <HEAD> <TITLE> New Document </TITLE> <SCRIPT LANGUAGE="Javascript"> function bgl(){ document.body.background = "file:///"+document.form.text2.value; } </SCRIPT> </HEAD> <link href="style.css" rel="stylesheet" type="text/css" /> <center> <BODY> <table border="2" width="100%" height="100%"> <tr><td> <FORM NAME="form"> <INPUT TYPE="file" NAME="text2"><br> <INPUT TYPE="button" VALUE="wallpaper" onClick="bgl()"><BR> </form> </td> </tr> </table> </BODY> </center> </HTML>
managed to do it .. but now the problem is it won`t strech the images acording to the table size ..anyway to do that ?