It looks like there’s a few things going on here.
First, the large photo at the top doesn’t have an ID, and never will.
So your click there is not going to return it.
Second, the img tag for the hero photo looks like it has some
untranslated ExpressionEngine tags in it. Control-click on the big
photo, choose Inspect Element from the contextual menu, and look at
the entire code of the img tag. There’s a bit at the end that looks
like this:
<img src="http://www.digitalwatchlibrary.com/images/made/1145_400_500_f9f9f9_imageswatermark.png_140_60_80_r_b_-10_-10_all_15_s_c1.jpg
" alt="" width="400" height="500" rounded_corners="all"
bg_color="f9f9f9" output="/images/made/
1145_400_500_f9f9f9_imageswatermark
.png_140_60_80_r_b_-10_-10_all_15_s_c1.jpg" }"="">
See that close brace at the end – I’ll bet that’s not supposed to be
there, and there is no output attribute on an img tag, so this is
invalid HTML.
Last, there is no data-large attribute on the large photo, rather only
on the small photos below it. When you click one of the small photos,
the data-large attribute from the small photo you clicked gets
substituted into the href attribute of the A tag wrapped around the
large hero photo. If you want to grab the current data-large value
when you click on the big photo, you can try grabbing it out of the A
tag, like this:
var large = this.down('a').href;
But I don’t know if that will happen before the other lightbox script
you’re using “hijacks” the click event and opens the larger version.
You may have to get at this another way. What is your actual goal with
this data-large? What do you want to do with it?
Walter
On Jun 23, 2011, at 2:17 PM, ummedia wrote:
CASIO - LB316 - Ladies - Vintage Digital Watch - Digital-Watch.com
here it is with img.id as the var imgtest the alert returns nothing.
regards
Adam
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options