elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Ingresar Registrarse
07 Octubre 2008, 20:33  



+  Foro de elhacker.net
|-+  Programación
| |-+  Desarrollo Web (Moderadores: дٳŦ٭, Red Mx)
| | |-+  Problema gordo con código de un visor de imágenes (Script sacado de internet)
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Imprimir
Autor Tema: Problema gordo con código de un visor de imágenes (Script sacado de internet)  (Leído 330 veces)
Artikbot
MERLUZO Returns...
Colaborador

Desconectado Desconectado

Mensajes: 4.055


Wanna Be Overclock3r; At least done!!


Ver Perfil WWW
Problema gordo con código de un visor de imágenes (Script sacado de internet)
« en: 13 Febrero 2008, 10:01 »

Hola amigos.

Hacendo una web para el insti, el profesor nos dio un script para hacer un visor de imágenes, que funciona perfectamente en Explorer, pero en FireFox pincha. Me abre la imagen donde no toca, y 100% descentrada.

Os doy el código:

Código:
<html>
<head>

<style TYPE="text/css">
<!--
A.nav {
COLOR: #000000;font-family:Arial, Helvetica, sans-serif; FONT-SIZE: 12px; text-decoration: none}
A.nav:hover {
COLOR: #336699}
.propio:hover {
COLOR: #336699}
.propio {  font-family: Arial, Helvetica, sans-serif; font-size: 10px; text-decoration: none; color: #000000; font-weight: bold}
body {
background-color: #F4FFDD;
}
-->
</style>


<script type="text/javascript">

/***********************************************
* Pop-it Image script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Specify image paths and optional link (set link to "" for no link):
var dynimages=new Array()
dynimages[0]=["logros/3dMark06FX.jpg", ""]
dynimages[1]=["logros/CPUzOpty.jpg", ""]
dynimages[2]=["logros/MegaOC.jpg", ""]
dynimages[4]=["logros/TestHD.jpg", ""]
dynimages[5]=["logros/3dmark06gt2.jpg", ""]
dynimages[6]=["logros/pi26s.jpg", ""]
dynimages[8]=["logros/completo.jpg", ""]
dynimages[9]=["imagenes/elsanimals/p7110073.jpg", ""]
dynimages[10]=["imagenes/elsanimals/p7110116.jpg", ""]
dynimages[11]=["imagenes/elsanimals/p7110066.jpg", ""]
dynimages[12]=["imagenes/elsanimals/p7110072.jpg", ""]
dynimages[13]=["imagenes/elsanimals/p7110118.jpg", ""]
dynimages[14]=["imagenes/elsanimals/p8140025.jpg", ""]
dynimages[15]=["imagenes/elsanimals/p7110075.jpg", ""]
dynimages[16]=["imagenes/elsanimals/p8140040.jpg", ""]
dynimages[17]=["imagenes/elsanimals/otro.jpg", ""]


//Preload images ("yes" or "no"):
var preloadimg="yes"

//Set optional link target to be added to all images with a link:
var optlinktarget=""

//Set image border width
var imgborderwidth=4

//Optionally, change 1.0 and 0.7 below to affect Wipe gradient size and duration in seconds in IE5.5+:
[b]var filterstring="progid:DXImageTransform.Microsoft.GradientWipe[/b](GradientSize=1.0 Duration=0.7)"

///////No need to edit beyond here/////

if (preloadimg=="yes"){
for (x=0; x<dynimages.length; x++){
var myimage=new Image()
myimage.src=dynimages[x][0]
}
}

function returnimgcode(theimg){
var imghtml=""
if (theimg[1]!="")
imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'">'
imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'">'
if (theimg[1]!="")
imghtml+='</a>'
return imghtml
}

function CambiarColorBorde(color, elemento) {
 document.getElementById(elemento).style.borderColor = color;
}

function CambiarComentario(comentario, elemento) {
 document.getElementById(elemento).value = comentario;
}

function modifyimage(loadarea, imgindex){
if (document.getElementById){
var imgobj=document.getElementById(loadarea)
if (imgobj.filters && window.createPopup){
imgobj.style.filter=filterstring
imgobj.filters[0].Apply()
}
imgobj.innerHTML=returnimgcode(dynimages[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}

</script>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>


<style TYPE="text/css">
<!--
A.nav {
COLOR: #000000;font-family:Arial, Helvetica, sans-serif; FONT-SIZE: 12px; text-decoration: none}
A.nav:hover {
COLOR: #336699}
.propio:hover {
COLOR: #336699}
.propio2:hover {
COLOR: #336699}
.propio {  font-family: Arial, Helvetica, sans-serif; font-size: 10px; text-decoration: none; color: #000000; font-weight: bold}
.propio2 {  font-size: 9px; text-decoration: none; font-weight: bold; color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif}
-->
</style>



<body text="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="90%" border="0" align="center" cellspacing="0" cellpadding="0" height="8">
  <tr>
    <td width="35%">&nbsp;</td>


<td width="41%">&nbsp;</td>
<td width="24%">&nbsp;</td>
  </tr>
</table>

<table width="35%" border="0" align="center" bordercolor="#666666" cellspacing="0" cellpadding="0">
  <tr>
    <TD height="229">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td>
    <table id="uno"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="51" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 0); CambiarColorBorde('#00ffff', 'uno');  this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'uno'); this.style.cursor='normal'"
      ><img border="0" src="logros/3dMark06FX2.jpg" width="50" height="50" ></a>
  </td>
  </tr>
</table>
 
  </td>
        </tr>
        <tr>
          <td><table id="dos"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="51" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 1); CambiarColorBorde('#00ffff', 'dos');   this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'dos'); this.style.cursor='normal'"
      ><img border="0" src="logros/pi26s2.jpg" width="50" height="50" ></a>
  </td>
  </tr>
</table></td>
        </tr>
        <tr>
          <td> <table id="tres"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="51" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 2); CambiarColorBorde('#00ffff', 'tres');   this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'tres'); this.style.cursor='normal'"
      ><img border="0" src="logros/MegaOC2.jpg" width="50" height="50" ></a>
  </td>
  </tr>
</table></td>
        </tr>
        <tr>
          <td><table id="cuatro"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="51" height="50"  >
             
</table></td>
        </tr>
      </table>
    </TD>
    <td   border="6" align="center" valign="middle" bordercolor="#FFFFFF" height="229">
      <table width="75%" border="1" cellspacing="0" cellpadding="0">
        <tr>
    <td><div id="dynloadarea" style="width:3px;height:5px"></div></td>
    </tr>
  </table>
     
    </td>

    <TD height="229">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td>
    <table id="cinco"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="51" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 4); CambiarColorBorde('#00ffff', 'cinco');  this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'cinco'); this.style.cursor='normal'"
      ><img border="0" src="logros/TestHD2.jpg" width="50" height="50" ></a>
  </td>
  </tr>
</table>
 
  </td>
        </tr>
        <tr>
          <td><table id="seis"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="51" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 5); CambiarColorBorde('#00ffff', 'seis');   this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'seis'); this.style.cursor='normal'"
      ><img border="0" src="logros/3dmark06gt3.jpg" width="50" height="50" ></a>
  </td>
  </tr>
</table></td>
        </tr>
        <tr>
          <td> <table id="siete"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="51" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 6); CambiarColorBorde('#00ffff', 'siete');   this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'siete'); this.style.cursor='normal'"
      ><img border="0" src="logros/completo2.jpg" width="50" height="42" ></a>
  </td>
  </tr>
</table></td>
        </tr>
        <tr>
          <td><table id="ocho"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="51" height="50"  >
             
</table></td>
        </tr>
      </table>
    </TD>
  </tr>
</table>
<table width="23%" border="0"  align="center" cellspacing="0" cellpadding="0" height="51">
  <tr>
    <td>
      <table id="nueve"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="31" height="50"  >
        <tr>
   
          <td> <a  onMouseOver="modifyimage('dynloadarea', 8); CambiarColorBorde('#00ffff', 'nueve');  this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'nueve'); this.style.cursor='normal'"
      ><img border="0" src="/dsf" width="50" height="33" ></a>
          </td>
    </tr>
  </table>
    </td>
    <td><table id="diez"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="31" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 9); CambiarColorBorde('#00ffff', 'diez');   this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'diez'); this.style.cursor='normal'"
      ><img border="0" src="imagenes/elsanimals/p7110073.jpg" width="50" height="33" ></a>
  </td>
  </tr>
</table>
    </td>
    <td><table id="once"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="31" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 10); CambiarColorBorde('#00ffff', 'once');  this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'once'); this.style.cursor='normal'"
      ><img border="0" src="imagenes/elsanimals/p7110116.jpg" width="50" height="33" ></a>
  </td>
  </tr>
</table>
    </td>
    <td><table id="doce"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="31" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 11); CambiarColorBorde('#00ffff', 'doce');   this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'doce'); this.style.cursor='normal'"
      ><img border="0" src="imagenes/elsanimals/p7110066.jpg" width="50" height="33" ></a>
  </td>
  </tr>
</table>
    </td>
    <td><table id="trece"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="31" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 12); CambiarColorBorde('#00ffff', 'trece');  this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'trece'); this.style.cursor='normal'"
      ><img border="0" src="imagenes/elsanimals/p7110072.jpg" width="50" height="33" ></a>
  </td>
  </tr>
</table>
    </td>
    <td><table id="catorce"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="31" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 13); CambiarColorBorde('#00ffff', 'catorce');   this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'catorce'); this.style.cursor='normal'"
      ><img border="0" src="imagenes/elsanimals/p7110118.jpg" width="50" height="33" ></a>
  </td>
  </tr>
</table>
    </td>
<td><table id="quince"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="31" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 14); CambiarColorBorde('#00ffff', 'quince');   this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'quince'); this.style.cursor='normal'"
      ><img border="0" src="imagenes/elsanimals/p8140025.jpg" width="50" height="33" ></a>
  </td>
  </tr>
</table>
    </td>
    <td><table id="dieciseis"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="31" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 15); CambiarColorBorde('#00ffff', 'dieciseis');   this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'dieciseis'); this.style.cursor='normal'"
      ><img border="0" src="imagenes/elsanimals/p7110075.jpg" width="50" height="33" ></a>
  </td>
  </tr>
</table>
    </td>
    <td><table id="diecisiete"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="31" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 16); CambiarColorBorde('#00ffff', 'diecisiete');   this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'diecisiete'); this.style.cursor='normal'"
      ><img border="0" src="imagenes/elsanimals/p8140040.jpg" width="50" height="33" ></a>
  </td>
  </tr>
</table>
    </td>
<td><table id="dieciocho"  border="2" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="31" height="50"  >
              <tr>
    <td>
  <a  onMouseOver="modifyimage('dynloadarea', 17); CambiarColorBorde('#00ffff', 'dieciocho');  this.style.cursor='hand'"  onmouseout =" CambiarColorBorde('#ffffff', 'dieciocho'); this.style.cursor='normal'"
      ><img border="0" src="imagenes/elsanimals/otro.jpg" width="50" height="33" ></a>
  </td>
  </tr>
</table>
    </td>
   
   
  </tr>
</table>
<table width="90%" border="0" align="center" cellspacing="0" cellpadding="0" height="8">
  <tr>
    <td width="35%">&nbsp;</td>


<td width="41%">&nbsp;</td>
<td width="24%">&nbsp;</td>
  </tr>
</table>

<div id="dynloadarea2" style="width:2px;height:7px"></div>
</body>
</html>

Creemos que el problema puede estar en la línea marcada en negrita. Qué decís?

Básicamente porque aparece Microsoft y la variable GradientWipe es de Explorer.

A ver si me echáis una manita.

Salu2
En línea

We played together, enjoyed that beautiful moments... Yeah we did... You were like a sister for me...

Now good times have passed, you got rid of me... Well, I don't know why I'm still alive, it'll be so hard to find a new heart. Yes, you still have mine, and if you don't remeber, I have a piece of yours. Don't forget me.

You know something, you are fucking beautiful
<--- From Rando!
Noxors

Desconectado Desconectado

Mensajes: 405



Ver Perfil
Re: Problema gordo con código de un visor de imágenes (Script sacado de internet
« Respuesta #1 en: 13 Febrero 2008, 11:42 »

Joder con el codigo, no me lo he mirado xDDDD

Pero dejame ver si me eh enterado, tu lo que quieres es que te muestre las imagenes en  pequeño abajo, y cuando pases por encima te la muestre en grande encima? Porque si es eso, puedo pasartelo sin problema, porque lo tengo hecho, si no es eso, no se que es lo que pides.

Un saludo
En línea

Dios lo hizo todo bien menos una cosa: Le puso limites a todo, menos a la estupidez...
videxter6

Desconectado Desconectado

Mensajes: 204


Ver Perfil WWW
Re: Problema gordo con código de un visor de imágenes (Script sacado de internet)
« Respuesta #2 en: 13 Febrero 2008, 17:30 »

A mi si me interesa el codigo Norxos.

PD: Saludos
En línea

Visiten mi Pequeño Blog http://rockstar1.wordpress.com
La pagina de mi fansub http://www.kne-fansub.org
Y por supuesto la pagina de mi radio por internet  http://www.rockeando.net
Noxors

Desconectado Desconectado

Mensajes: 405



Ver Perfil
Re: Problema gordo con código de un visor de imágenes (Script sacado de internet
« Respuesta #3 en: 13 Febrero 2008, 21:47 »

Ok, te lo pego aquí:

Código:
<html>
<head>
<title>LOL</title>
<script language="JavaScript">
var imatge=new Array ()
var arxiu=new Array ('im0', 'im1', 'im2', 'im3', 'im4', 'im5')
for ( var i=0; i<arxiu.length; i++ ) {
imatge[i]=new Image()
imatge[i].src="imagenes/" +arxiu[i] + "_g.jpg"
}
function chgImg(n) {
document['ima_gran'].src=imatge[n].src
}
</script>
</head>

<body>
<table width="50%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td colspan="6" align="center"><h1>PRACTICA JAVASCRIPT</h1></td>
</tr>
<td height="211" colspan="6" align="center">
<img name="ima_gran" src="imagenes/im0_g.jpg" width="300" height="300"></td>
</tr>
<tr>
<td><img name="im0" src="imagenes/im0_p.jpg" onMouseOver="chgImg(0)" width="100" height="100"></td>
<td><img name="im1" src="imagenes/im1_p.jpg" onMouseOver="chgImg(1)" width="100" height="100"></td>
<td><img name="im2" src="imagenes/im2_p.jpg" onMouseOver="chgImg(2)" width="100" height="100"></td>
<td><img name="im3" src="imagenes/im3_p.jpg" onMouseOver="chgImg(3)" width="100" height="100"></td>
<td><img name="im4" src="imagenes/im4_p.jpg" onMouseOver="chgImg(4)" width="100" height="100"></td>
<td><img name="im5" src="imagenes/im5_p.jpg" onMouseOver="chgImg(5)" width="100" height="100"></td>
</tr>
<tr><td height="211" colspan="6" align="center"><a href="portada.htm">Pagina principal</a></p></td></tr>
</table>
</body>
</html>

ya lo tienes, modificalo a tu gusto, pero te recomiendo que uses los nombres que estan ahí.

Tambien tengo el mismo a izquierda y derecha de la imagen central. Si eso me los pediis
En línea

Dios lo hizo todo bien menos una cosa: Le puso limites a todo, menos a la estupidez...
Artikbot
MERLUZO Returns...
Colaborador

Desconectado Desconectado

Mensajes: 4.055


Wanna Be Overclock3r; At least done!!


Ver Perfil WWW
Re: Problema gordo con código de un visor de imágenes (Script sacado de internet)
« Respuesta #4 en: 13 Febrero 2008, 22:13 »

Viene a ser lo mismo que lo que tengo yo.

Me vengo a referir a esta línea:
Citar
var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)"

Que no me extraña que Firefox no lo abra bien si pone Microsoft y nosequé mas hostias de IExplorer.

Salu2
En línea

We played together, enjoyed that beautiful moments... Yeah we did... You were like a sister for me...

Now good times have passed, you got rid of me... Well, I don't know why I'm still alive, it'll be so hard to find a new heart. Yes, you still have mine, and if you don't remeber, I have a piece of yours. Don't forget me.

You know something, you are fucking beautiful
<--- From Rando!
Noxors

Desconectado Desconectado

Mensajes: 405



Ver Perfil
Re: Problema gordo con código de un visor de imágenes (Script sacado de internet
« Respuesta #5 en: 13 Febrero 2008, 23:10 »

Buff pues si es lo mismo tio coje el mio que es mas sencillo xD.

No entiendo nada del tuyo xD
En línea

Dios lo hizo todo bien menos una cosa: Le puso limites a todo, menos a la estupidez...
Artikbot
MERLUZO Returns...
Colaborador

Desconectado Desconectado

Mensajes: 4.055


Wanna Be Overclock3r; At least done!!


Ver Perfil WWW
Re: Problema gordo con código de un visor de imágenes (Script sacado de internet
« Respuesta #6 en: 14 Febrero 2008, 11:34 »

Y crees que yo si??

 ;D ;D

Oye, no tendrás uno que tenga fotos en los laterales en vez de debajo solo, no?

Salu2
En línea

We played together, enjoyed that beautiful moments... Yeah we did... You were like a sister for me...

Now good times have passed, you got rid of me... Well, I don't know why I'm still alive, it'll be so hard to find a new heart. Yes, you still have mine, and if you don't remeber, I have a piece of yours. Don't forget me.

You know something, you are fucking beautiful
<--- From Rando!
Noxors

Desconectado Desconectado

Mensajes: 405



Ver Perfil
Re: Problema gordo con código de un visor de imágenes (Script sacado de internet
« Respuesta #7 en: 14 Febrero 2008, 20:44 »

Pues casualmente si, tengo uno que lo tiene a la derecha y uno que lo tiene a la izquierda, pero no los dos a la vez. Lo quieres¿
En línea

Dios lo hizo todo bien menos una cosa: Le puso limites a todo, menos a la estupidez...
Artikbot
MERLUZO Returns...
Colaborador

Desconectado Desconectado

Mensajes: 4.055


Wanna Be Overclock3r; At least done!!


Ver Perfil WWW
Re: Problema gordo con código de un visor de imágenes (Script sacado de internet)
« Respuesta #8 en: 14 Febrero 2008, 22:18 »

Hombre, querer por querer me quedo el de la izquierda.

A ver si mi profe opina lo mismo.

Oye, se ven miniaturas en el lateral y luego al pasar por encima, con el OnMouseOver (imagino que será eso y un poco de inventiva) se abre la foto en el recuadro del centro, no?

Si es así, gracias, te estaré agradecido por ayudarme a sacar un 11 de la Web :xD


Salu2
En línea

We played together, enjoyed that beautiful moments... Yeah we did... You were like a sister for me...

Now good times have passed, you got rid of me... Well, I don't know why I'm still alive, it'll be so hard to find a new heart. Yes, you still have mine, and if you don't remeber, I have a piece of yours. Don't forget me.

You know something, you are fucking beautiful
<--- From Rando!
Noxors

Desconectado Desconectado

Mensajes: 405



Ver Perfil
Re: Problema gordo con código de un visor de imágenes (Script sacado de internet
« Respuesta #9 en: 15 Febrero 2008, 16:10 »

Si si que es a la izquiera y cuando pasas por encimade una imagen se te pone en grande en el medio, aquí lo tienes, procura respetar los nombres de las carpetas y archivos asin seguro que te va:

Código:
<html>
<head>
<title>LOL</title>
<script language="JavaScript">
var imatge=new Array ()
var arxiu=new Array ('im0', 'im1', 'im2', 'im3', 'im4', 'im5')
for ( var i=0; i<arxiu.length; i++ ) {
imatge[i]=new Image()
imatge[i].src="imagenes/" +arxiu[i] + "_g.jpg"
}
function chgImg(n) {
document['ima_gran'].src=imatge[n].src
}
</script>
</head>

<body>
<table width="50%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td colspan="2" align="center"><h1>PRACTICA JAVASCRIPT</h1></td>
</tr>
<tr>
<tr><td><img name="im0" src="imagenes/im0_p.jpg" onMouseOver="chgImg(0)" width="100" height="100"></td><td height="211" rowspan="8" align="center">
<img name="ima_gran" src="imagenes/im0_g.jpg" width="300" height="300"></td></tr>
<tr><td><img name="im1" src="imagenes/im1_p.jpg" onMouseOver="chgImg(1)" width="100" height="100"></td></tr>
<tr><td><img name="im2" src="imagenes/im2_p.jpg" onMouseOver="chgImg(2)" width="100" height="100"></td></tr>
<tr><td><img name="im3" src="imagenes/im3_p.jpg" onMouseOver="chgImg(3)" width="100" height="100"></td></tr>
<tr><td><img name="im4" src="imagenes/im4_p.jpg" onMouseOver="chgImg(4)" width="100" height="100"></td></tr>
<tr><td><img name="im5" src="imagenes/im5_p.jpg" onMouseOver="chgImg(5)" width="100" height="100"></td></tr>
</tr>
<tr><td height="211" colspan="2" align="center"><a href="portada.htm">Pagina principal</a></p></td></tr>
</table>
</body>
</html>
En línea

Dios lo hizo todo bien menos una cosa: Le puso limites a todo, menos a la estupidez...
Artikbot
MERLUZO Returns...
Colaborador

Desconectado Desconectado

Mensajes: 4.055


Wanna Be Overclock3r; At least done!!


Ver Perfil WWW
Re: Problema gordo con código de un visor de imágenes (Script sacado de internet)
« Respuesta #10 en: 15 Febrero 2008, 16:30 »

Y furula correctamente en FF, no?

Gracias colega, eres lo que no hay.

Salu2!
En línea

We played together, enjoyed that beautiful moments... Yeah we did... You were like a sister for me...

Now good times have passed, you got rid of me... Well, I don't know why I'm still alive, it'll be so hard to find a new heart. Yes, you still have mine, and if you don't remeber, I have a piece of yours. Don't forget me.

You know something, you are fucking beautiful
<--- From Rando!
Noxors

Desconectado Desconectado

Mensajes: 405



Ver Perfil
Re: Problema gordo con código de un visor de imágenes (Script sacado de internet
« Respuesta #11 en: 15 Febrero 2008, 20:52 »

Yo lo uso en FF, es mas lo programe para FF, siempre lo hago para FF. Nada tio, espero que cuando yo lo necesite tu tb me eches un cable xDD
En línea

Dios lo hizo todo bien menos una cosa: Le puso limites a todo, menos a la estupidez...
Artikbot
MERLUZO Returns...
Colaborador

Desconectado Desconectado

Mensajes: 4.055


Wanna Be Overclock3r; At least done!!


Ver Perfil WWW
Re: Problema gordo con código de un visor de imágenes (Script sacado de internet)
« Respuesta #12 en: 15 Febrero 2008, 21:16 »

Si te pasas por Hard me temo que seré el primero en responder al post :laugh:
Cada cual es bueno en su terreno, no?

Salu2
En línea

We played together, enjoyed that beautiful moments... Yeah we did... You were like a sister for me...

Now good times have passed, you got rid of me... Well, I don't know why I'm still alive, it'll be so hard to find a new heart. Yes, you still have mine, and if you don't remeber, I have a piece of yours. Don't forget me.

You know something, you are fucking beautiful
<--- From Rando!
Noxors

Desconectado Desconectado

Mensajes: 405



Ver Perfil
Re: Problema gordo con código de un visor de imágenes (Script sacado de internet
« Respuesta #13 en: 15 Febrero 2008, 21:34 »

sip, cierto, weno yo me voy a dormir que toy cansado, si lo se son las 9:30 pero estoy muerto
En línea

Dios lo hizo todo bien menos una cosa: Le puso limites a todo, menos a la estupidez...
Páginas: [1] Ir Arriba Imprimir 
Ir a:  







Consolas     La Web de Goku     MilW0rm     MundoDivx

Hispabyte     Truzone     TodoReviews     ZonaPhotoshop

hard-h2o modding    Foros de ayuda    Yashira.org    Videojuegos    indetectables.net   

Noticias Informatica    Seguridad Informática    ADSL    Foros en español    eNYe Sec

Todas las webs afiliadas están libres de publicidad engañosa.

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC