Ver Mensaje Individual
  #5 (permalink)  
Antiguo 28/06/2006, 16:52
thunder.scripts
 
Fecha de Ingreso: febrero-2005
Mensajes: 670
Antigüedad: 19 años, 2 meses
Puntos: 0
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Test</title>
</head>

<body>

<script type="text/javascript">
/*<![CDATA[*/
	document.body.innerHTML = '<img src="http://augustino.net/IMA/?resolucion='+screen.width+'&amp;id=goarrow" alt=""/>';
/*]]>*/
</script>

<noscript>
	<div><img src="http://augustino.net/IMA/?resolucion=800&amp;id=goarrow" alt=""/></div>
</noscript>

</body>
</html>
De todas formas me parece más práctico dejar la imagen con la url por defecto y cambiarla con javascript (como dice alvlin). Además, innerHTML no es estándar, la forma "correcta" de hacer esto es crear la imagen usando el DOM.

Suerte
Fede
__________________
Federico H. García
Desarrollo Web
www.federicog.com.ar