惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
宝玉的分享
宝玉的分享
腾讯CDC
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
T
The Exploit Database - CXSecurity.com
T
The Blog of Author Tim Ferriss
V
V2EX
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
Y
Y Combinator Blog
P
Proofpoint News Feed
T
Tor Project blog
AWS News Blog
AWS News Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
T
Threat Research - Cisco Blogs
B
Blog
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
N
News and Events Feed by Topic
博客园 - 司徒正美
H
Help Net Security
C
Cisco Blogs
C
Check Point Blog
S
Secure Thoughts

博客园 - DiviSoft

出如此错误,同样的代码却能在另一台机器执行(估计是补丁问题 - DiviSoft - 博客园 温习存储过程的CURSOR PHP下的DLL Accesss Denied解决之道 xp下的host文件配置 sqlserver in子句的使用?--如何实现CorpIDSet作为ID集合使用,能在存储过程中正确执行如一般SQL效果? 急:为什么我把本子置为 standby 待机 ,就唤不醒了呢(唤醒我的笔记本) php 安全介绍。。 j#操作EXCEL css 文本输出方式 采用textarea 转载:操作EXCEL .NET JDK在LINUX安装 js for myself 常用JS,HTML对象 smarty 模板 JavaScript类(转载) XML解析问题 php+cookies 崚 不能被 iconv(gb2312,utf-8 ,string) DOMDocument for php5
使页面里所有大于_width的图片,全部成比例缩小成_width
DiviSoft · 2004-09-09 · via 博客园 - DiviSoft

脚本控制://
使页面里所有大于_width的图片,全部成比例缩小成_width

function imageresize(_width) {//自动将所有大图片变成固定宽度
 var iIndex=0;
 var nImgCount=0;
 var _obj=document;
 
  nImgCount=_obj.images.length;
  for(i=0;i<nImgCount;i++)
  {
   
   if(_obj.images(i).width>_width)
    {     
     _obj.images(i).height=_width*_obj.images(i).height/_obj.images(i).width
     _obj.images(i).width=_width;
    }
  }
    
  

posted on 2004-09-09 15:21  DiviSoft  阅读(366)  评论(0)    收藏  举报

刷新页面返回顶部