当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > HTML DOM lowsrc属性

HTML DOM
DOM Input Checkbox
DOM Input File 对象
DOM Input Hidden对象
DOM Input Password 对象
DOM Input Radio 对象
DOM Input Reset 对象
DOM Input Submit 对象
DOM Input Text 对象
DOM Link 对象
DOM Location 对象
DOM Meta 对象
DOM Navigator 对象
DOM 对象
DOM Option 对象
DOM Screen 对象
DOM Select 对象
DOM Style 对象
DOM Table 对象
DOM TableData 对象
DOM TableHeader 对象

HTML DOM lowsrc属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 383 ::
收藏到网摘: n/a

Definition and Usage
定义与用法

The lowsrc property sets or returns a URL to a low-resolution version of an image.
lowsrc属性可设置或返回分辨率比较低的图片的URL

Syntax
语法

imageObject.lowsrc=URL


Example
举例

The following example creates a link to the low-resolution version of the image:
为分辨率较低的图片建立链接:

<html>

<body>
<img id="compman" src="compman.gif"
lowsrc="compman_lowres.gif" alt="Computerman" />
<br />
<script type="text/javascript">
var x=document.getElementById("compman");
document.write('<a href="' + x.lowsrc + '">Low resolution</a>');
</script>
</body>

</html>


Try-It-Yourself Demos
尝试与演示

Create a link to the low-resolution version of an image
建立一个连接到低分辨率图片的链接

评论 (0) All

登陆 | 还没注册?