Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/08/2004, 11:02
urnik
 
Fecha de Ingreso: julio-2002
Mensajes: 66
Antigüedad: 21 años, 9 meses
Puntos: 0
diferencias entre EXPLORER y NETSCAPE

Por favor vean esto en EXPLORER y NETSCAPE

http://www.unik.cl/usm/diseno3.1/

como arreglo el "blanco" que se produce en "noticias" (arriba) en Netscape?

este es el codigo.....

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>NOTICIAS</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<link href="css/estilo.css" rel="stylesheet" type="text/css">
<link href="css/scroll=no.css" rel="stylesheet" type="text/css">
</head>
<script language="JavaScript" type="text/javascript">
/**
* variables globales de asignacion de navegador
*/
var ie=(document.all) ? 1:0;
var n4=(document.layers) ? 1:0;
var n6=(document.getElementById) ? 1:0;

var paso=0;
var valor;
var tiempo;
var altura=-60;
var Y;
var activo=false;
var capa="texto";
var tiempo;

/**
* funcion para inicializar valores generales en la interfaz
*/
function iniciaValores()
{
Y=10;
paso=0;

if(ie)
{
document.all[capa].style.top=Y;
document.all[capa].style.height=180;
document.all[capa].style.clip="rect(0px,140px,180px,0px)";
}
else if(n4)
{
document.layers[capa].top=Y;
document.layers[capa].height=180;
}
if(n6)
{
document.getElementById(capa).style.top=Y;
document.getElementById(capa).style.height=180;
document.getElementById(capa).style.clip="rect(0px ,140px,180px,0px)";
}
}

/**
* funcion para scrolear la capa de textos
*/
function recorta(donde)
{
if(ie)
{
clearTimeout(tiempo);
Y=parseInt(document.all[capa].style.top);
H=parseInt(document.all[capa].style.height);
if((Y>altura)&&(donde==0))
{
activo=true;
valor=5;
paso+=valor;
document.all[capa].style.top = Y-valor;
document.all[capa].style.height = H+valor;
eval("document.all['"+capa+"'].style.clip='rect("+paso+",125,"+(H+valor)+",0)'") ;
tiempo=setTimeout("recorta(0)",10);
}
else if((Y<=10) && (donde==1) && (activo==true))
{
valor=-5;
paso+=valor;
document.all[capa].style.top = Y-valor;
document.all[capa].style.height = H+valor;
eval("document.all['"+capa+"'].style.clip='rect("+paso+",125,"+(H+valor)+",0)'") ;
tiempo=setTimeout("recorta(1)",10);
}
}
else if( n4)
{
Y=document.layers[capa].top;
H=document.layers[capa].height;
if((Y>altura)&&(donde==0))
{
activo=true;
valor=5;
paso+=valor;
document.layers[capa].top = Y-valor;
document.layers[capa].height = H+valor;
document.layers[capa].clip.top=paso;
document.layers[capa].clip.bottom=(H+valor);
tiempo=setTimeout("recorta(0)",10);
}
else if((Y<=120)&&(donde==1) && (activo==true))
{
valor=-5;
paso+=valor;
document.layers[capa].top = Y-valor;
document.layers[capa].height = H+valor;
document.layers[capa].clip.top=paso;
document.layers[capa].clip.bottom=(H+valor);
tiempo=setTimeout("recorta(1)",10);
}
}
else if(n6)
{
Y=parseInt(document.getElementById(capa).style.top );
H=parseInt(document.getElementById(capa).style.hei ght);
if((Y>altura)&&(donde==0))
{
activo=true;
valor=5;
paso+=valor;
document.getElementById(capa).style.top = Y-valor;
document.getElementById(capa).style.height = H+valor;
eval("document.getElementById('"+capa+"').style.cl ip='rect("+paso+",125,"+(H+valor)+",0)'");
tiempo=setTimeout("recorta(0)",10);
}
else if((Y<=120)&&(donde==1) && (activo==true))
{
valor=-5;
paso+=valor;
document.getElementById(capa).style.top = Y-valor;
document.getElementById(capa).style.height = H+valor;
eval("document.getElementById('"+capa+"').style.cl ip='rect("+paso+",125,"+(H+valor)+",0)'");
tiempo=setTimeout("recorta(1)",10);
}
}
}

</script>




<body onLoad="iniciaValores()">

<div id="arriba" style="position:absolute; left:0px; top:0px; width:150px; height:200px; z-index:1"><img src="img/fondo_noticias.gif" width="150" height="200" border="0" usemap="#Map">
<map name="Map">
<area shape="rect" coords="136,15,150,31" href="#" onmouseOver="recorta(0);return false;" onmouseOut="clearTimeout(tiempo)">
<area shape="rect" coords="136,174,150,191" href="#" onmouseOver="recorta(1);return false;" onmouseOut="clearTimeout(tiempo)">
</map>
</div>
<div id="texto" style="position:absolute; left:7px; top:15px; width:125px; height:200px; z-index:2">
<p align="justify" class="texto_pie"><span class="texto_pie_negrito">14 de Agosto</span><br>
Pianista Roberto Bravo en el Aula Magna USM.<br>
<br>
<span class="texto_pie_negrito">Arquitectura</span><br>
Ciclo de Charlas en USM.<br>
<br>
<span class="texto_pie_negrito">28 de Agosto</span><br>
Eduardo Gatti en el Aula Magna USM.<br>
<br>
<span class="texto_pie_negrito">Seminario de Titulaci&oacute;n </span><br>
T&eacute;cnicos Universitarios en USM sede Vi&ntilde;a del Mar.<br>
<br>
<span class="texto_pie_negrito">Beca</span><br>
Banco Interamericano de Desarrollo.</p>
</div>
</body>
</html>

Última edición por urnik; 17/08/2004 a las 11:05