On 10/01/11 22:23, Roland Pish wrote:
var slideThumb = $$('.slide.active .thumbSmall');
if(slideThumb) {
slideThumb = slideThumb[0];
slideThumb.setStyle('display', 'block');
}
Even though you got this sorted, a heads up: slideThumb will be an empty
array if it can't find the elements you're after. You'd be better
changing your if statement to read "if (slideThumb.length) {" (because 0
is falsy). That'll help reduce errors down the track. :)
--
Barry van Oudtshoorn
www.barryvan.com.au
Not sent from my Apple πPhone.