日期:2014-05-17 浏览次数:20710 次
<!DOCTYPE html> <html> <head> <script> function fun() { // var Arr=new Array( "1.jpg ", "2.jpg ") // var i=0 ; var aa=document.getElementById("aa"); aa.style.background="url(2.jpg)"; alert("sdfsdfsdf"); } </script> </head> <body> <table width=500 height=100 id= "aa " background="1.jpg" > <tr> <td> aaaa </td> </tr> </table> <input type="submit" value="Button" id="bb" onClick="fun();"/> </body> </html>