FCKediter上传图片到服务器端后,编辑里只有保存图片的连接
在显示图片时图片太大,是如何处理这图片的大小?
在显示图片时图片太大,是如何处理这图片的大小?
解决方案 »
- Socket 问题
- 谁帮我看下我写的这个程序的错误(用户 'WWW1\IWPD_53(y106)' 登录失败。)
- SPC系统开发
- 高手进来。我这里有两百分,100在ajax板块中一百在此,如果谁能解决。立刻奉送
- ASP.NET2.0 如何建立框架 (在线)
- 谁有显示TreeView控件的IEWebControls.dll文件啊?
- 用过asp.net高级编程(发现问题、提出问题、解决问题)一书的朋友请帮忙
- 请问有没有啥工具可以运行一下,然后系统启动菜单就变了.
- ???IIS服务器出错???ASPX文件不能访问
- 页面中加入了验证控件,如何使一个datagrid不参与此验证?
- 站点地图不能显示导航信息
- 一个比较棘手的问题,大家给点建议...
<script language="JavaScript">
var flag=false;
function DrawImage(ImgD,iwidth,iheight){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= iwidth/iheight){
if(image.width>iwidth){
ImgD.width=iwidth;
ImgD.height=(image.height*iwidth)/image.width;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
ImgD.alt=image.width+"×"+image.height;
}
else{
if(image.height>iheight){
ImgD.height=iheight;
ImgD.width=(image.width*iheight)/image.height;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
ImgD.alt=image.width+"×"+image.height;
} }
}