日期:2014-05-16 浏览次数:20407 次
<script type="text/javascript"> function facuSwap(the_image,the_new_image,the_url) { the_image.src = the_new_image; var my_window = window.open(the_url,my_window,'height=300,width=150'); } </script> </head> <body> <img src="01.jpg" name="sun1" border="0" onMouseOver="facuSwap(window.document.sun1,'011.jpg','http://www.qq.com/');" onMouseOut="window.document.sun1.src='01.jpg';" /> <br /> <img src="02.jpg" name="sun2" border="0" onMouseOver="facuSwap(window.document.sun2,'022.jpg','http://www.baidu.com/');" onMouseOut="window.document.sun2.src='02.jpg';" />
function sum(x, y) { //括号中的x、y就叫形式参数 return x + y; }