国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

JS使用oumousemove和oumouseout動態(tài)改變圖片顯示的方法

2019-11-20 12:48:25
字體:
來源:轉載
供稿:網友

本文實例講述了JS使用oumousemove和oumouseout動態(tài)改變圖片顯示的方法。分享給大家供大家參考。具體如下:

鼠標放到圖片上時圖片會自動變大,鼠標離開圖片還原

<!DOCTYPE html><html><head><script>function bigImg(x){x.style.height="64px";x.style.width="64px";}function normalImg(x){x.style.height="32px";x.style.width="32px";}</script></head><body><img onmouseover="bigImg(this)" onmouseout="normalImg(this)"border="0" src="smiley.gif" alt="Smiley" width="32" height="32"><p>The function bigImg() is triggered when the user movesthe mouse pointer over the image.</p><p>The function normalImg() is triggered when the mousepointer is moved out of the image.</p></body></html>

希望本文所述對大家的javascript程序設計有所幫助。

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 榆社县| 南和县| 陇南市| 桐梓县| 余江县| 德安县| 长治县| 衡阳县| 吉首市| 伊宁市| 平凉市| 广元市| 高清| 嘉义县| 墨竹工卡县| 澄江县| 资源县| 丹江口市| 巫山县| 库伦旗| 兖州市| 奉节县| 神池县| 大冶市| 沙田区| 龙州县| 宾川县| 徐州市| 嵊泗县| 上饶县| 鹤山市| 青铜峡市| 望城县| 唐海县| 贡嘎县| 嫩江县| 株洲市| 岳西县| 宁国市| 高尔夫| 习水县|