Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Remote Linking Images from WP Custom Fields Re: Remote Linking Images from WP Custom Fields

#67918
doobie
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”).css(‘opacity’, ‘0.0’);

$(“#contactImage li img:eq(” + jQueryThumbRel + “)”).css(‘opacity’, ‘1.0’);

return false;
});

Wha’d’ya think?

-Jacob