Home › Forums › JavaScript › Remote Linking Images from WP Custom Fields › Re: Remote Linking Images from WP Custom Fields
December 9, 2009 at 2:01 pm
#67918
Member
Here’s what was figured out (with a bit of help):
Code:
$(“#contactImage li img”).css(‘opacity’, ‘0.0’);
$(“#contactImage li img:eq(2)”).css(‘opacity’, ‘1.0’);
$(“#contactThumb li a”).click(function() {
var jQueryThumbRel = parseInt($(this).attr(“rel”)) – 1;
$(“#contactImage li img:eq(2)”).css(‘opacity’, ‘1.0’);
$(“#contactThumb li a”).click(function() {
var jQueryThumbRel = parseInt($(this).attr(“rel”)) – 1;
$(“#contactImage li img”).css(‘opacity’, ‘0.0’);
$(“#contactImage li img:eq(” + jQueryThumbRel + “)”).css(‘opacity’, ‘1.0’);
return false;
});
Wha’d’ya think?
-Jacob