31/07/2008, 16:04
|
| | Fecha de Ingreso: marzo-2007 Ubicación: Mexico
Mensajes: 99
Antigüedad: 17 años, 11 meses Puntos: 0 | |
Respuesta: Sintaxis document.write+img mira aki esta pues ya le he movido cosas y mas cosas, gracias por tu ayuda...
<HTML>
<HEAD>
<TITLE>Title</TITLE>
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
//-->
</script>
<script language='javascript'>
var temp=self.location.href.split("?");
var picUrl = (temp.length>1)?temp[1]:"";
var NS = (navigator.appName=="Netscape")?true:false;
var URL="http://www.dominio.com/";
function fitPic() {
iWidth = (NS)?window.innerWidth:document.body.clientWidth;
iHeight = (NS)?window.innerHeight:document.body.clientHeight ;
iWidth = document.images[0].width - iWidth;
iHeight = document.images[0].height - iHeight;
window.resizeBy(iWidth, iHeight+20);
self.focus();
};
</script>
<SCRIPT LANGUAGE="JavaScript">
IE4plus = (document.all) ? true : false;
NS4 = (document.layers) ? true : false;
function clickIE()
{
if (IE4plus)
document.selection.empty();
return false;
}
function clickNS(e)
{
if ((e.which==1) && NS4)
{
return (e.target!=document);
}
else if (e.which==1 || e.which==2 || e.which==3 )
{
return false;
}
}
if (!IE4plus)
{
document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
document.onmousedown=clickNS;
document.onmouseup= clickNS;
document.oncontextmenu=clickIE;
}
else
{
document.onmouseup= clickIE;
document.oncontextmenu=clickIE;
}
</SCRIPT>
</HEAD>
<BODY bgcolor="#000000" onload='fitPic();' topmargin="0" marginheight="0" leftmargin="0" marginwidth="0" text="#FFFFFF">
<div align="center"><a href="javascript:window.close()">
<script language='javascript'>
imagen= URL + picUrl;
document.write(imagen);
document.write( "<img src='"+imagen +"' border=0>" );
</script>
</a><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Click the picture
to close this window</font></div>
</BODY>
</HTML> |