Problem with elevator zoom plugin

Problem with elevator zoom plugin

Hi

My Script doesn't work if I use it with the elevator zoom plugin at the same time. 


  1. <html>
  2. <head>
  3. <title>Wir feiern die Wirtschaft der Zukunft</title>
  4. <link rel="stylesheet" type="text/css" href="style.css">
  5. <script src="http://code.jquery.com/jquery-1.9.0.js"></script>
  6. <script type="text/javascript" src="js\elevatezoom-master\jquery.elevateZoom-3.0.8.min.js"></script>

  7. </head>
  8. <body>

  9. <div class="container">
  10. <img id="zoom_07" src="oebu.png" data-zoom-image="oebu.png" />

  11. <script>
  12. $("#zoom_07").elevateZoom({
  13.   zoomType : "lens",
  14.   lensShape : "round",
  15.   scrollZoom : true,
  16.   easing : true,
  17.   lensSize    : 150  
  18. });
  19. </script>

  20. <div class="popup"></div>
  21. <p> <span>Move the mouse over the img.</span>
  22. <span>&nbsp;</span>

  23. </p>
  24. </div>
  25. <script>
  26. var pageCoords,clientCoords,clientX,clientY
  27. function cc(event){
  28. pageCoords = "( " + event.pageX + ", " + event.pageY + " )";
  29. clientCoords = "( " + event.clientX / $(this).height() + ", " + event.clientY / $(this).width() + " )";
  30. clientX = event.clientX / $(this).height();
  31. clientY = event.clientY / $(this).width();
  32. }
  33. $("img").mousemove(function (event) {
  34. cc(event);
  35. $("span:last").text("( event.clientX, event.clientY ) : " + clientCoords);
  36. });

  37. $("div").click(function(e) {
  38. cc(e);
  39. if (clientX > 0.117 && clientX < 0.223 && clientY > 0.220 && clientY < 0.325) {
  40. $(".popup").css("visibility", "visible");
  41. $(".popup").text('Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.');
  42. }
  43. });
  44. </script>


  45. </body>
  46. </html>
If I remove the plugin, then it works.

Also check this link plesase.