javascript - Image hide and show not working -


I'm using it for zoom and pan image. I have successfully applied my project for an image, now I want (& lt ;; & gt; coral), so that I can use it for multiple images. When I add related parts to my custom.js then it does not work properly.

I have two screen sizes that will clear the picture

This is the first case  Enter image details here

and after clicking on the Coronal button right

Enter image details here

I can only see the background but not the necessary image I am not able to understand what I am missing,

this Html part i

  & lt; div class = "image-display" id = "displayplan4" style = "width: 70%; height: 120%; left: 39%; top: 10%; position: full; display: none; " & Gt; & Lt; Img src = "picture / features.jpg" style = "width: 150%; height: 130%; left: -60%; top: -20%; position: full; overflow: auto; z-index: 1; "& Gt; & Lt; div style = "width: 150%; height: 130%; left: -60%; top: -20%; position: full; background: RGBA (255,255,255,0.7); z-index: 2;" & Gt; & Lt; / Div & gt; & Lt; Img class = "planzoom" src = "Gallery / Residential / Running / Alarm / Plan / Alogog 1. JPGG" id = "Almoglan 0" style = "width: 100%; height: 100%; right: 3%; top: 50%; Position: complete; z-index: 3; "& gt; & Lt ;! - Button for forward and backward movements - & gt; & Lt; A href = "#" & gt; & Lt; Img src = "innerimages / forward.gif" id = "almogforward" style = "status: full; height: 3%; width: 2%; z-index: 3; top: 25%; right: 20%;" Gt; & Lt; / A & gt; & Lt; A href = "#" & gt; & Lt; Img src = "innerimages / back.gif" id = "almogback" style = "position: full; height: 3%; width: 2%; z-index: 3; top: 25%; left: 0%," & Gt; & Lt; / A & gt; & Lt; / Div & gt;   

and

  & lt; Div id = "almogplandivII" & gt; & Lt; Img class = "planzoom" src = "gallery / residential / current / almog / scheme / almog 2.jpg" id = "alogolan 1" style = "width: 100%; height: 100%; right: 3%; top: 50%; Position: Full; z-index: 3; Display: None; "& gt; & Lt; / Div & gt;   

And click the mouse on the image to show and hide the image related JS part

  var almog_plan_div = 0; // Forward forward forward button $ ("#Amogorphord"). Click (function () (if (almog_plan_div & lt; 1) {$ ("# almogplan" + almog_plan_div) .hide (); almog_plan_div ++; $ ("# almogplan" + almog_plan_div) .show ();} and {$ ("#Algoglan" + ALMOG_Plan_Device). Solution (algorithm); almog_plan_div = 0; $ ("# almogplan" + almog_plan_div) .show ();}}); // Function for backward image with backward button $ ("# almogac"). Click (function () (if (almog_plan_div> 0) {$ ("# almogplan" + almog_plan_div) .hide (); almog_plan_div--; $ ("#almogplan" + almog_plan_div) .show ();} and {$ ("#Alamoglan" + ALMOG_Plan_Diva). Solution (algorithm); almog_plan_div = 1; $ ("# almogplan" + almog_plan_div) .show ();}});   

I have not tried adding the display: any style properties but this is because of me, does not it help? Remove the inline style display: None from the IMG tag and then when you initialize your page,

Then hide that image using the hidden () function.

Inline-styling can be overridden

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -