HTML DOM propiedad LOWSRC Imagen
Definición y Uso
LOWSRC conjuntos de propiedades o devuelve la versión de baja resolución de la URL de la imagen.
gramática
imageObject.lowsrc=URL
Soporte para el navegador
Todos los principales navegadores soportan la propiedad LOWSRC
Ejemplos
Ejemplos
En el siguiente ejemplo se crea una versión de baja resolución de los puntos de imagen en el enlace:
<!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>
Trate »
objeto de imagen