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);
}
);
Umm, even when that's turned on the images are not parsed by the Galleriffic script properly. Without the Galleriffic script everything loads perfectly fine on the page, but when loaded and parsed for the gallery everything crashes. I was able to get the hide property to go away, but it was just masking up a larger problem. Is there a way to get it to load the scripts in a different order?
Updated script and fixed some bugs, but it still won't load properly. Please take a look at the script again (as I edited and posted the more complete version).
Bookmarks