![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
文章平均质量分 55
SharpBright
熱愛生活,敢于挑戰;癡迷于.NET與數據庫技術,廣交朋友..........
展开
-
单击一个CheckBox时选中所有子CheckBox
function SelectAll(tempControl) { var theBox=tempControl; xState=theBox.checked; elem=theBox.form.elements; for(i=0;i { if(elem[i].type=="checkbox" && elem[i].id!=theBox.id)原创 2008-04-07 22:19:00 · 647 阅读 · 0 评论 -
增加上传文件控件
function AddFile() { var strFile=; document.getElementById("DivFile").insertAdjacentHTM("beforeEnd",strFile); }原创 2008-04-07 22:22:00 · 496 阅读 · 0 评论 -
js改变图片大小——把鼠标放图片上,滚动鼠标滚轮.
<!--//改变图片大小function resizepic(thispic){if(thispic.width>700) thispic.width=700;}//无级缩放图片大小function bbimg(o){ var zoom=parseInt(o.style.zoom, 10)||100; zoom+=event.wheelDelta/1转载 2008-07-10 09:22:00 · 1834 阅读 · 1 评论 -
JS---自动改变图片大小
JS---自动改变图片大小http://www.vtek.com.cn/images/home_ad/shower_01.gif" name="u" border="0" alt="自动改变图片大小的JS代码-sunblue">var b = 1;var c = true;function fade(){if(document.all);if(c =原创 2008-07-10 09:33:00 · 1327 阅读 · 0 评论 -
js 經過小圖時彈出大圖
page: function showLarge(img){//onmouseover img.onmouseover=function(event){ event = window.event; var ei = document.getElementById("enlar原创 2008-07-10 17:06:00 · 1152 阅读 · 0 评论 -
js图片放大效果
http://www.w3.org/TR/html4/strict.dtd">5 html { overflow: hidden; } body { margin: 0px; padding: 0px; background: #000; position: absolute; width: 100%; height: 10转载 2008-07-10 09:50:00 · 3570 阅读 · 1 评论 -
点击小图动态弹出大图
以下是三个类似功能的代码1.點擊彈出#demo{overflow:hidden;width:120px;text-align:center;padding:10px;}#demo img{border:none;width:100px;height:100px;}#enlarge_images{position:absolute;display:none;z-index:2;}转载 2008-07-10 11:11:00 · 1557 阅读 · 0 评论