javascript - Change the value of a custom attribute for an image -


I have a document with two thumbnail images (bank and bank checks like front and back) I can see the thumbnail image of the original ( Large) zooming a part of the image in front of the image can zoom and display. Everything works by clicking on the front image, it changes with the back and I should be able to display the back zoom. However, this does not work, I believe that the zooming arrow () attribute should be modified and provided with a value for custom attribute or zooming () to refresh any way to display the second image. Any ideas what is needed?

My images with sources from sessions:

   & gt; Width = "500" height = "250" />   

JQuery

  & lt; script type = "text / javascript" & gt; Function Page Load (Sender, Args) {Zooming}} Function Forward () {on onmg = '& lt;% = Session ("ImageTambal Pathfinder")% & gt;'; } Function rear () {return offImg = '& lt;% = session ("ImageTampanPathier")%>;'; ZoomingRear ()} function zooming () {$ (document) .ready (function () {$ ("# zoom_mw"). ElevateZoom ({scrollZoom: true});}); } Function Zooming Rear () {// & lt; - Problematic function $ (document) .ready (function () {document.querySelector (data-zoom-image = '& lt;% = session ("ImagePathRear")% & gt;). Elevate zoom ({scrollZoom: true} ); // document.getElementById (});} function getElementByAttribute (atri, value, root) {root = root || document.body; if (root.has attribute & amp; & amp; amp; & amp;;;; root.get attribute; (Attr) == value) {return root;} var kids = root. (For children, element; var i = children.length; i--;) {element = getElementByAttribute (attr, value, children [i]) ; if (element) {return element;}} return null;}     

< P> You can use your onclick Calling the zooming arrow (), but similarly after your page is loaded, there is no point in using $ (document). (). Inside zooming (). And leave code like: / P> zooming function () {document.querySelector (data-zoom-image = '& lt;% = session ("ImagePathRear")% & gt;') .Elate zoom ({scrollZoom: true });}

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -