I am trying to apply cloud zoom on a single image as in the below Fiddle
But it does not seems to be working. Someone have a look at this. Here is another fiddle with working effects
The original plugin usage is here.... http://www.professorcloud.com/mainsite/cloud-zoom.htm
Problems with your first fiddle (the non-working one) include:
src
and class
attribute on your <a>
tag '
single quotes instead of "
double-quotes for constructing the <a>
tag prop
where attr
should be used. The former is only for properties where the value is irrelevant, such as disabled
. src
for the image source instead of x
(which could mean anything, and in fact suggests a number) $(this)
calls. Instead, set a local variable $this
as shown Here's the working corrected version: http://jsfiddle.net/6dR2k/ .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.