capa

28/02/2004 - 02:52 por *Amadís F. Oertlinger | Informe spam
hola amigos! tengo este script para hacer que una capa permanezca en el
mismo lugar siempre

Pero necesito que permanezca siempre en la misma posicion de la pantalla sin
importar la resolucion de la misma (800x600 o 1020x768)

¿como hago para que las coordenadas de ubicacion absoluta no dependan de la
resolucion de pantalla??)

aqui les paso todo el html! ponganlo en un body en blanco y agregenle unos
50 saltos de lineas para ver como funciona!

-

<DIV class=jsbrand id=jsbrand
style="HEIGHT: 516; POSITION: absolute; TOP: 20px; WIDTH: 150px; overflow:
hidden; left: 0px"
1; ZINDEX:>
<p align="center">
<script language="JavaScript1.2" type="text/JavaScript1.2">

var xdistance = 404;
var ydistance = 585;
var imgwidth = 600;
var imgheight = 45;
var xoffset = 45;
var yoffset = 600;
var pageheight = 1024;
var pagewidth = 768;
var left = imgwidth + xdistance + 0;
var up = imgheight + ydistance + 0;

var netscape = (document.layers)? true:false
var explorer = (document.all)? true:false

if (netscape)
{ var view = document.jsbrand; }

if (explorer)
{ var view = document.all.jsbrand; }


function watermark()
{ if (netscape)
{ pageheight = window.innerHeight
pagewidth = window.innerWidth
xoffset = window.pageXOffset
yoffset = window.pageYOffset
view.visibility = "hide"
view.top = (pageheight+yoffset-up)
view.left = (pagewidth+xoffset-left)
view.visibility= "show" }

if (explorer)
{ if (navigator.appVersion.indexOf("Mac") == -1)
{ view.style.display = "none";
pageheight = document.body.clientHeight;
pagewidth = document.body.clientWidth;
xoffset = document.body.scrollLeft;
yoffset = document.body.scrollTop;
view.style.top = (pageheight+yoffset-up);
view.style.left =(pagewidth+xoffset-left);
view.style.display = ""; }
}
}
setInterval("watermark()", 100);
//-->
</script>
<img src="../img/logocolon.gif" alt="Logo de Colon" width="148"
height="67" /></p>
<hr width="100%" size="2" color="#FFCC33" />
<table width="100%" border="1" bordercolor="D0DFC4">
<tr>
<td bordercolor="#660000" bgcolor="#CCCCCC" class="nav"> <div
align="center"><font size="1" face="Verdana, Arial, Helvetica,
sans-serif"><strong>PRINCIPAL</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"
onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Bungalows - Departamentos - Casas - Campings - Pensiones"><div
align="center"><a href="../elviaje/index.htm#a">&iexcl;
EL VIAJE !</a></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"
onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Bungalows - Departamentos - Casas - Campings - Pensiones">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong><a href="../fdff.ddd" class="nav"
onclick="exit=false"
onmouseover="window.status=':: HOSPEDAJE : Bungalows - Departamentos -
Casas - Campings - Pensiones - Alquileres ::';return true"
onmouseout="self.status='';return
true">HOSPEDAJE</a></strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"
onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Información Turística">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>INFORMACI&Oacute;N</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"
onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Inmobiliarias y Agencias de Locaciones Turísticas">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>BIENES
RAICES</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"
onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="No puede irse de Colón sin Conocer sus Playas">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>ARENA
Y PLAYAS</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"
onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Alternativas para Disfrutar Colón">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>&iquest;QUE
HACER? </strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"
onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Listado de Restaurantes y Rotiserías">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>GASTRONOM&Iacute;A</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"
onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Para los Amantes del Arte">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>ARTE
Y CULTURA</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"
onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Entérese de las alternativas para pasarla Bien">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>EXCURSIONES
Y OCIO</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"
onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Conozca el Complejo Terman Colón">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>COMPLEJO
TERMAL</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"
onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Espacio dedicado a la Fotografía Nocturna de Colón">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>MOMENTOS
NOCTURNOS</strong> </font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"
onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Parque Nacional EL PALMAR">
<div align="center" class="colon1"><font size="1"
face="Verdana, Arial, Helvetica, sans-serif"><strong>P.
NAC. &quot;EL PALMAR&quot;</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"
onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Fotografías del Colón de ANTAÑO"><div align="center"><font size="1"
face="Verdana, Arial, Helvetica, sans-serif">&nbsp;EN
BLANCO Y NEGRO</font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"><font size="1"
face="Verdana, Arial, Helvetica, sans-serif">&nbsp;</font></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav">&nbsp;</td>
</tr>
</table>
<p align="center">&nbsp; </p>
</DIV>
 

Leer las respuestas

#1 Luis Angelo
28/02/2004 - 03:59 | Informe spam
puedes entrar a www.gamarod.com.ar y encontrar varias rutinas que te van a
ayudar


"*Amadís F. Oertlinger" escribió en el mensaje
news:On9u71Z$
hola amigos! tengo este script para hacer que una capa permanezca en el
mismo lugar siempre

Pero necesito que permanezca siempre en la misma posicion de la pantalla


sin
importar la resolucion de la misma (800x600 o 1020x768)

¿como hago para que las coordenadas de ubicacion absoluta no dependan de


la
resolucion de pantalla??)

aqui les paso todo el html! ponganlo en un body en blanco y agregenle unos
50 saltos de lineas para ver como funciona!

-

<DIV class=jsbrand id=jsbrand
style="HEIGHT: 516; POSITION: absolute; TOP: 20px; WIDTH: 150px; overflow:
hidden; left: 0px"
1; ZINDEX:>
<p align="center">
<script language="JavaScript1.2" type="text/JavaScript1.2">

var xdistance = 404;
var ydistance = 585;
var imgwidth = 600;
var imgheight = 45;
var xoffset = 45;
var yoffset = 600;
var pageheight = 1024;
var pagewidth = 768;
var left = imgwidth + xdistance + 0;
var up = imgheight + ydistance + 0;

var netscape = (document.layers)? true:false
var explorer = (document.all)? true:false

if (netscape)
{ var view = document.jsbrand; }

if (explorer)
{ var view = document.all.jsbrand; }


function watermark()
{ if (netscape)
{ pageheight = window.innerHeight
pagewidth = window.innerWidth
xoffset = window.pageXOffset
yoffset = window.pageYOffset
view.visibility = "hide"
view.top = (pageheight+yoffset-up)
view.left = (pagewidth+xoffset-left)
view.visibility= "show" }

if (explorer)
{ if (navigator.appVersion.indexOf("Mac") == -1)
{ view.style.display = "none";
pageheight = document.body.clientHeight;
pagewidth = document.body.clientWidth;
xoffset = document.body.scrollLeft;
yoffset = document.body.scrollTop;
view.style.top = (pageheight+yoffset-up);
view.style.left =(pagewidth+xoffset-left);
view.style.display = ""; }
}
}
setInterval("watermark()", 100);
//-->
</script>
<img src="../img/logocolon.gif" alt="Logo de Colon" width="148"
height="67" /></p>
<hr width="100%" size="2" color="#FFCC33" />
<table width="100%" border="1" bordercolor="D0DFC4">
<tr>
<td bordercolor="#660000" bgcolor="#CCCCCC" class="nav"> <div
align="center"><font size="1" face="Verdana, Arial, Helvetica,
sans-serif"><strong>PRINCIPAL</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"



onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Bungalows - Departamentos - Casas - Campings - Pensiones"><div
align="center"><a href="../elviaje/index.htm#a">&iexcl;
EL VIAJE !</a></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"



onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Bungalows - Departamentos - Casas - Campings - Pensiones">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong><a href="../fdff.ddd" class="nav"
onclick="exit=false"
onmouseover="window.status=':: HOSPEDAJE : Bungalows -


Departamentos -
Casas - Campings - Pensiones - Alquileres ::';return true"
onmouseout="self.status='';return
true">HOSPEDAJE</a></strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"



onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Información Turística">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica,


sans-serif"><strong>INFORMACI&Oacute;N</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"



onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Inmobiliarias y Agencias de Locaciones Turísticas">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>BIENES
RAICES</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"



onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="No puede irse de Colón sin Conocer sus Playas">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>ARENA
Y PLAYAS</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"



onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Alternativas para Disfrutar Colón">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>&iquest;QUE
HACER? </strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"



onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Listado de Restaurantes y Rotiserías">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica,


sans-serif"><strong>GASTRONOM&Iacute;A</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"



onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Para los Amantes del Arte">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>ARTE
Y CULTURA</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"



onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Entérese de las alternativas para pasarla Bien">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>EXCURSIONES
Y OCIO</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"



onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Conozca el Complejo Terman Colón">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>COMPLEJO
TERMAL</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"



onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Espacio dedicado a la Fotografía Nocturna de Colón">
<div align="center"><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><strong>MOMENTOS
NOCTURNOS</strong> </font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"



onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Parque Nacional EL PALMAR">
<div align="center" class="colon1"><font size="1"
face="Verdana, Arial, Helvetica, sans-serif"><strong>P.
NAC. &quot;EL PALMAR&quot;</strong></font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"
onmouseover="this.style.backgroundColor='#CCCCCC';"



onmouseout="this.style.backgroundColor='#D0DFC4';this.style.cursor='hand';"
title="Fotografías del Colón de ANTAÑO"><div align="center"><font size="1"
face="Verdana, Arial, Helvetica, sans-serif">&nbsp;EN
BLANCO Y NEGRO</font></div></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav"><font size="1"
face="Verdana, Arial, Helvetica, sans-serif">&nbsp;</font></td>
</tr>
<tr>
<td bordercolor="#660000" class="nav">&nbsp;</td>
</tr>
</table>
<p align="center">&nbsp; </p>
</DIV>


Preguntas similares