HTML DOM 이미지 lowsrc 속성
정의 및 사용
속성 세트를 lowsrc 또는 이미지 URL의 저해상도 버전을 반환합니다.
문법
imageObject.lowsrc=URL
브라우저 지원
모든 주요 브라우저는 lowsrc 속성을 지원
예
예
다음 예는 링크 이미지 포인트의 저해상도 버전을 생성한다 :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>本教程(w3big.com)</title>
</head>
<body>
<img id="compman" src="compman.gif" lowsrc="compman_lowres.gif" alt="Computerman" width="107" height="98">
<br>
<script>
var x=document.getElementById("compman");
document.write('<a href="' + x.lowsrc + '">低分辨率</a>');
</script>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>本教程(w3big.com)</title>
</head>
<body>
<img id="compman" src="compman.gif" lowsrc="compman_lowres.gif" alt="Computerman" width="107" height="98">
<br>
<script>
var x=document.getElementById("compman");
document.write('<a href="' + x.lowsrc + '">低分辨率</a>');
</script>
</body>
</html>
»시도
이미지 개체