<!–图片放大–>
<!– two steps to install image resizer – drag and drop:
1. copy the coding into the head of your html document
2. add the last code into the body of your html document –>
<!– step one: paste this code into the head of your html document –>
<head>
<script language=”JavaScript“>
<!– this script and many more are available free online at –>
<!– the javascript source!! http://javascript.internet.com –>
<!– begin
function resizeimage(evt,name){
newx=evt.x
newy=evt.y
eval(“document.”+name+”.width=newx”)
eval(“document.”+name+”.height=newy”)
}
// end –>
</script>
</head>
<body>
点击拖动放大该图片大小。
<p>
<img src=”http://www.cxybl.com/html/wyzz/JavaScript_Ajax/20120708/test/test.gif”
width=”150″ height=”58″ name=”image1″
ondrag=”resizeimage(event,”image1″)”> 本文链接http://www.cxybl.com/html/wyzz/JavaScript_Ajax/20120708/31776.html
欢迎大家阅读《js特效代码:js特效_js》,跪求各位点评,若觉得好的话请收藏本文,by 搞代码