
07/06/2002, 04:42
|
 | | | Fecha de Ingreso: abril-2002 Ubicación: Málaga
Mensajes: 1.475
Antigüedad: 22 años, 11 meses Puntos: 9 | |
Re: Busco Script Con Efecto Raton/marco Hola de nuevo, saludos
mira, me da varios errores en los dos frames, el izquierdo y el derecho. Te envio los códigos.
En el conjunto de frames lo siguiente:
<frameset framespacing="0" border="0" frameborder="0" cols="144,*">
<frame name="marco_izquierdo" target="principal" marginwidth="15" scrolling="no" src="marco_izquierdo.htm">
<frame name="principal" src="marco_derecho.htm" target="_self">
<noframes>
//...en el frame izquierdo da el error siguiente "Style no es un objeto"
//...y cuando paso el ratón (onmouseover) por las palabras "un dibujo" y "otro dibujo" me dice 'parent.principal no es un objeto'.
<html >
<head>
<script language="javascript" >
function ini() {
var enlaces = document.getElementsByTagName("TD");
for (var i = 0; i < enlaces.length; i ++) enlaces.style.cursor = (document.all) ? "hand" : "pointer";
}
</script>
</head >
<body onload=ini()>
<center >
<table><tr>
<td onmouseover="parent.principal.cambio()" >un dibujo</td><tr>
<td onmouseover="parent.principal.cambio()" >otro dibujo</td>
</tr></table>
</center >
</body >
//....en el frame derecho me da el error diciendo que 'Precarga no está definido'
<html>
<head>
<title>Precarga de imágenes</title>
<script language="javascript" src="precarga.js" ></script>
<script language="javascript" >
var imgs;
function inicio() {
imgs = new preCarga("M6.gif", "M7.gif");
}
var imagen = 1;
function cambio() {
imagen = (imagen == 1) ? 2 : 1;
document.getElementById("dibujo").src = imgs[(imagen - 1)].src;
}
</script>
</head>
<body>
<body onload="inicio()" >
<center>
<p>
<var imgs = ["M6.gif", "M7.gif"] >
</p>
</center>
</body>
</html >
Bueno, espero tu ayuda, echale un vistazo al código cuando puedas y ya me respondes.
Saludos.
Bye. |