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>
ลอง»
ภาพวัตถุ