Cita:
Iniciado por fjrueda Loco 92, buenas tardes.
Le pongo un ejempoo que realice en base a los ejemplos de la web de
MagicZoom, no es muy complicado, puede intentarlo y yo se que puede lograr su objetivo.
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> img{ border: 0px; }
<link rel="stylesheet" href="http://www.magictoolbox.com/static/magiczoom/magiczoom.css" type="text/css" /> <script src="http://www.magictoolbox.com/static/magiczoom/magiczoom.js" type="text/javascript"></script> function enterPhoto(photo)
{
var takeUrl = photo.src;
var image290 = takeUrl.replace("90", "290");
var image1000 = takeUrl.replace("90", "1000");
document.getElementById('showbox').src = image290;
document.getElementById('showcase').href = image1000;
}
<a href="http://www.magictoolbox.com/static/images/magiczoom/r6-red-1000.jpg" rel="zoom-id:showcase" rev="http://www.magictoolbox.com/static/images/magiczoom/r6-red-290.jpg"> <img id="1" src="http://www.magictoolbox.com/static/images/magiczoom/r6-red-90.jpg" alt="1" width="90" height="51" onmouseover="enterPhoto(this);" /></a> <a href="http://www.magictoolbox.com/static/images/magiczoom/r6-white-1000.jpg" rel="zoom-id:showcase" rev="http://www.magictoolbox.com/static/images/magiczoom/r6-white-290.jpg"> <img id="2" src="http://www.magictoolbox.com/static/images/magiczoom/r6-white-90.jpg" alt="2" width="90" height="51" onmouseover="enterPhoto(this);" /></a> <a href="http://www.magictoolbox.com/static/images/magiczoom/r6-blue-1000.jpg" rel="zoom-id:showcase" rev="http://www.magictoolbox.com/static/images/magiczoom/r6-blue-290.jpg"> <img id="3" src="http://www.magictoolbox.com/static/images/magiczoom/r6-blue-90.jpg" alt="3" width="90" height="51" onmouseover="enterPhoto(this);" /></a> <a href="http://www.magictoolbox.com/static/images/magiczoom/r6-black-1000.jpg" rel="zoom-id:showcase" rev="http://www.magictoolbox.com/static/images/magiczoom/r6-black-290.jpg"> <img id="4" src="http://www.magictoolbox.com/static/images/magiczoom/r6-black-90.jpg" alt="4" width="90" height="51" onmouseover="enterPhoto(this);" /></a> <a id="showcase" href="http://www.magictoolbox.com/static/images/magiczoom/r6-red-1000.jpg" class="MagicZoom" rel="selectors-change: mouseover; zoom-position: inner;" title=""><img id="showbox" src="http://www.magictoolbox.com/static/images/magiczoom/r6-red-290.jpg" width="290" height="165" alt="5" /></a>
amigo lo implemente a mi sistema pero no me anda
lo estoy haciendo asi
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../includes/zoom/magiczoom/magiczoom.css" type="text/css" /> <script src="../includes/zoom/magiczoom/magiczoom.js" type="text/javascript"></script> function enterPhoto(photo)
{
var takeUrl = photo.src;
var image290 = takeUrl.replace("90", "290");
var image1000 = takeUrl.replace("90", "1000");
document.getElementById('imagen_mayor').src = image290;
document.getElementById('imagen_mayor').href = image1000;
}
<img src="<?php echo $foto1 ?>" alt="01" width="63" height="35" border="0" onmouseover="enterPhoto(this)('
<?php echo $foto1 ?>').src='
<?php echo $foto1 ?>'"/>
<img src="<?php echo $foto2 ?>" alt="02" width="63" height="35" border="0" onmouseover="enterPhoto(this)('
<?php echo $foto2 ?>').src='
<?php echo $foto2 ?>'"/>
<img src="<?php echo $foto3 ?>" alt="03" width="63" height="35" border="0" onmouseover="enterPhoto(this)('
<?php echo $foto3 ?>').src='
<?php echo $foto3 ?>'"/>
<img src="<?php echo $foto4 ?>" alt="04" width="63" height="35" border="0" onmouseover="enterPhoto(this)('
<?php echo $foto4 ?>').src='
<?php echo $foto4 ?>'"/>
<img src="<?php echo $foto1 ?>" name="imagen_mayor" width="533" height="327" id="imagen_mayor" />
que es lo que estoy haciendo mal?
gracias