Jump to content
Fórum Script Brasil
  • 0

Problema com zoom



Olá pessoal,

estou tentando fazer uma vitrine de produtos com zoom, como a da netshoes por exemplo: http://www.netshoes....004-2307-158-44

Mas quando passo o mouse nos outros produtos da miniatura, e troco a imagem principal, o zoom não funciona

alguém pode me ajudar?

segue o código

<script type="text/javascript">

function troca(){

        document.getElementById("image2").src="../../../Public/Pictures/Sample Pictures/Jellyfish.jpg";
function troca2(){


                zoomrange: [5, 5],
                magnifiersize: [500,500],
                magnifierpos: 'right',
                cursorshade: true,
                cursorshadecolor: 'black',
                cursorshadeopacity: 0.3,
                cursorshadeborder: '1px solid black',
                largeimage: document.getElementById("image2").src //<-- No comma after last option!


<body onload="troca2();">

<img id="image2" border="0" style="width:300px;height:225px" /> // Zoom da imagem

<img src="../../../Public/Pictures/Sample Pictures/Jellyfish.jpg" width="167" height="125" style="width:100px;height:80px" onmouseover="troca()" /> // Primeira imagem

<img border="0" src="http://i44.tinypic.com/11icnk5.jpg" style="width:100px;height:80px" onmouseover="troca2()" /> // Segunda imagem


Alguém pode me ajudar?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...