你这个挺麻烦的说。
如果是只有onload里有js的话那么就把onload去掉。不就可以啦?
如果是只有onload里有js的话那么就把onload去掉。不就可以啦?
解决方案 »
- Jqeury二级联动问题
- web前端面试题一道,给出合情合理答案的同学,欢迎来奇艺参加下一轮的面试。
- 页面打开时候设置大小还有菜单栏,滚动条,位置居中等信息?online ..
- 如何在jquery获取iframe里面静态网页的<a>,设置其target属性
- javascript调用javascript函数问题
- 回调函数执行问题
- 请教parseFloat
- 如何使用JScript得到WinXP或者Win2000的桌面所在目录?
- 急!鼠标移到连接怎么样在一个固定的地方显示连接的描述说明,那里有现成的源代码?
- javascript可以在jsp中用吗?
- 在浏览器中,用JS怎么判断一组图片是否下载完成?
- 高手来指教一下,我不想用ONLOAD,可不可以,怎么办???
var cc = document.getElementById("aa");
if(cc!=null)
{
var images = cc.getElementsByTagName("img");
for(i=0;i<images.length;i++)
{
if(images[i].width>200)
{
images[i].width=200;
这个就不顶用了
}
}
function wc(a, b, c, d, e, f) {
if (c) {
if (parseInt(c) > 200)
return "width=" + b + 200 + b;
else
return a;
} else {
if (parseInt(e) > 200)
return d + 200 + f;
else
return a;
}
}
var strng = '<div style="width:2001px;" width="2001"></div>';
var p = /width=([\"']?)(\d+)\1|(style=\"[^\"]*?width:)(\d+)([^\"]*\")/gi;
var j = strng.replace(p, wc);
alert(j);
//好麻烦的说。。
</script>
if (parseInt(c || e) > 200) {
if (c)
return "width=" + b + 200 + b;
else
return d + 200 + f;
} else return a;
}