<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> ...
//返回上一级页面 onclick="javascript : window.history.go(-1)";//进入下一个页面 onclick="location.href='reg.aspx'";//关闭窗口 onclick="javascript : window.colse();";清空文本onclick="this.value="&...
<script type="text/javascript"> // 设置为主页 function SetHome(obj,vrl){ try{ obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl); } catch(e){ if(window.netscape) { try { ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ut...
在Web上显示图片,通常都会有图片显示比例问题,如果不给<img />限制width和height,那么如果图片大了就会将整个页面挤乱,图片小了又会使图片失真。我的需求如下:1、预先定义好图片显示的标准宽度和高度。2、如果图片的大小超过了标准定义,那么等比例压缩图片。3、如果图片的大小等于标准定义,那么按照标准宽度和高度显示图片。4、如果图片的大小小于标准定义,那么不对图片进行任何压缩处理。<script langua...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>&l...
function getWindowHeight(frameObject) {if (document.all) return frameObject.document.body.clientHeight; // IE on Mac and Windowsif (document.layers) return frameObject.document.clientHeight;}function getWindowWidth(frame...