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

推荐订阅源

J
Java Code Geeks
腾讯CDC
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
L
LangChain Blog
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog
P
Proofpoint News Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
IT之家
IT之家
A
About on SuperTechFans
H
Help Net Security

博客园 - 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)    收藏  举报

刷新页面返回顶部