欢迎来到3672js教程,我们关注js教程、js框架、js代码特效等。

js哪个事件发生了?用法代码

js哪个事件发生了?用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescript type=text/javascriptfunction getEventType(event){ alert(event.type);}/script/headbody onmousedown=getEventType(event)p在文档中点...(投递于2019-03-08 13:47:22)

jsshift键被按下了吗?用法代码

jsshift键被按下了吗?用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction isKeyPressed(event){if (event.shiftKey==1){alert( shift 键被按下!);}else{alert( shift 键没被按下!);}}/script/he...(投递于2019-03-08 13:47:18)

js鼠标相对于屏幕的坐标?用法代码

js鼠标相对于屏幕的坐标?用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescript type=text/javascriptfunction coordinates(event){x=event.screenXy=event.screenYalert(X= + x + Y= + y)}/script/headbody onm...(投递于2019-03-08 13:47:14)

js鼠标的坐标?用法代码

js鼠标的坐标?用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction show_coords(event){var x=event.clientX;var y=event.clientY;alert(X coords: + x + , Y coords: + y);}/script/headbodyp onmousedown...(投递于2019-03-08 13:47:10)

js被按下的键盘键的keycode?用法代码

js被按下的键盘键的keycode?用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction whichButton(event){alert(event.keyCode);}/script/headbody onkeyup=whichButton(event)pb注释:/b在测试这个例...(投递于2019-03-08 13:47:06)

js返回一个客户端图像映射的usemap的值用法代码

js返回一个客户端图像映射的usemap的值用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyimg id=planets src=planets.gif width=145 height=126 usemap=#planetmapmap name=planetmaparea id=venus sha...(投递于2019-03-08 13:47:02)

js改变image的src用法代码

js改变image的src用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction changeSrc(){document.getElementById(myImage).src=hackanm.gif;}/script/headbodyimg id=myImage src=compman.gif width=107 height=98b...(投递于2019-03-08 13:46:57)

js返回image的name用法代码

js返回image的name用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyimg id=compman name=compman src=compman.gif alt=Computerman width=107 height=98brscriptdocument.write(图像名称: );document.write(d...(投递于2019-03-08 13:46:53)

js创建一个链接指向一个低分辨率的image用法代码

js创建一个链接指向一个低分辨率的image用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyimg id=compman src=compman.gif lowsrc=compman_lowres.gif alt=Computerman width=107 height=98brscriptva...(投递于2019-03-08 13:46:49)

js返回image的longdesc属性的值用法代码

js返回image的longdesc属性的值用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyimg id=compman src=compman.gif longdesc=description.htm alt=Computerman width=107 height=98brplongdesc属性的值为:...(投递于2019-03-08 13:46:45)

js设置image的hspace和vspace属性用法代码

js设置image的hspace和vspace属性用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction setSpace(){document.getElementById(compman).hspace=50;document.getElementById(compman).vspace=50;}/script/headb...(投递于2019-03-08 13:46:41)

js改变image的高度和宽度用法代码

js改变image的高度和宽度用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction changeSize(){document.getElementById(compman).height=250;document.getElementById(compman).width=300;}/script/headbody...(投递于2019-03-08 13:46:37)

js给image加上border用法代码

js给image加上border用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction addBorder(){document.getElementById(compman).border=2;}/script/headbodyimg id=compman src=compman.gif alt=Computerman width=10...(投递于2019-03-08 13:46:33)

js返回image的替代文本用法代码

js返回image的替代文本用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyimg id=compman src=compman.gif alt=Crazy computerman width=107 height=98palt属性值为: scriptdocument.write(document.getEle...(投递于2019-03-08 13:46:29)

js对image排版用法代码

js对image排版用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction alignImg(){document.getElementById(compman).align=right;}/script/headbodyimg id=compman src=compman.gif alt=Computerman width=107 he...(投递于2019-03-08 13:46:25)

js改变一个iframe的src用法代码

js改变一个iframe的src用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction changeSrc(){document.getElementById(myframe).src=http://www.baidu.com;}/script/headbodyiframe id=myframe src=http://www.36...(投递于2019-03-08 13:46:21)

js返回和设置一个iframe中的scrolling属性的值用法代码

js返回和设置一个iframe中的scrolling属性的值用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction removeScroll(){document.getElementById(myframe).scrolling=no;}/script/headbodyiframe id=myfr...(投递于2019-03-08 13:46:17)

js返回一个iframe中的name属性的值用法代码

js返回一个iframe中的name属性的值用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyiframe id=myframe src=http://www.3672js.com name=myframep你的浏览器不支持iframes./p/iframepiframe的名称...(投递于2019-03-08 13:46:13)

js返回一个iframe中的marginwidth属性的值用法代码

js返回一个iframe中的marginwidth属性的值用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyiframe id=myframe src=demo_iframe.htm marginheight=50 marginwidth=50p你的浏览器不支持iframes./p/i...(投递于2019-03-08 13:46:09)

js返回一个iframe中的marginheight属性的值用法代码

js返回一个iframe中的marginheight属性的值用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyiframe id=myframe src=demo_iframe.htm marginheight=50 marginwidth=50p你的浏览器不支持iframes。/...(投递于2019-03-08 13:46:05)

js返回一个iframe中的longdesc属性的值用法代码

js返回一个iframe中的longdesc属性的值用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyiframe id=myframe src=http://www.3672js.com longdesc=w3s.txtp你的浏览器不支持iframes./p/iframep图像描...(投递于2019-03-08 13:46:01)

js改变iframe的高度和宽度用法代码

js改变iframe的高度和宽度用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction changeSize(){document.getElementById(myframe).height=300;document.getElementById(myframe).width=300;}/script/headbod...(投递于2019-03-08 13:45:57)

js删除iframe的frameborder用法代码

js删除iframe的frameborder用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction removeBorder(){document.getElementById(myframe).frameBorder=0;}/script/headbodyiframe id=myframe src=http://www.3672js.c...(投递于2019-03-08 13:45:53)

js返回一个iframe中的frameborder属性的值用法代码

js返回一个iframe中的frameborder属性的值用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/title/headbodyiframe id=myframe src=http://www.3672js.com frameborder=0p你的浏览器不支持 iframes./p/iframep这个...(投递于2019-03-08 13:45:49)

js改变一个包含在iframe中的文档的背景颜色用法代码

js改变一个包含在iframe中的文档的背景颜色用法代码 !DOCTYPE htmlhtmlheadmeta charset=utf-8title3672js教程(3672js.com)/titlescriptfunction changeStyle(){var x=document.getElementById(myframe);var y=(x.contentWindow || x.contentDocu...(投递于2019-03-08 13:45:46)