JavaScript Reference/Javascript Properties/lowsrc

Материал из Web эксперт
Перейти к: навигация, поиск

"lowsrc" Example

    
<html>
<body>
<script language="JavaScript">
    document.all.myLsrc.lowsrc = "yourimage.jpg";
</script>
<img id="myLsrc" src="yourlowresimage.jpg" width="99" height="76">
</body>
</html>



"lowsrc" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<img>                           <input>                       |
|                |<input type="image">                                          |
+----------------+--------------------------------------------------------------+



"lowsrc" Syntax and Note

Note:
Read and write property. 
Specifies the URL of a lower-resolution image, or 
some other quick-loading placeholder.
    
Syntax:
    
document.getElementById("elementID").lowsrc = value
document.all.elementID.lowsrc = value // IE only