Ok, so I'm one step away from getting this script to run, but here's the problem. My DOM loads and the gallery script I'm using seems to be running while the DOM is executing and therefore crashes the DOM (at least thats what seems to be happening). I have this odd feeling the problem is a simple solution that would only take a second, so please have a look.
Fixed a few things I found, but still not working. Updated code too.
var $project = $(this);
var title = $project.find('title').text();
var description = $project.find('description').text();
var imageurl = $project.find('imageurl').text();
var link = $project.find('link').text();
var thumb = $project.find('thumbnail1').text();
var html = '<li> <a class="thumb" href="' + thumb + '" title="' + title + '">';
html += '<img src="' + imageurl + '" alt="' + description + '"> </a>';
html += '<div class="caption">';
html += '<div class="download">';
html += '<a href="' + imageurl + '">View Website</a>';
html += '</div>';
html += '<div class="image-title">' + title + '</div>';
html += '<div class="image-desc">' + description + '</div>';
html += '</div> </li>'
// Initially set opacity on thumbs and add
// additional styling for hover effect on thumbs
var onMouseOutOpacity = 0.67;
$('#thumbs ul.thumbs li').css('opacity', onMouseOutOpacity)
.hover(
function () {
$(this).not('.selected').fadeTo('fast', 1.0);
},
function () {
$(this).not('.selected').fadeTo('fast', onMouseOutOpacity);
}
);
Bookmarks