[thelist] more S5 slideshow: js clicker question

Joel D Canfield joel at streamliine.com
Wed Jan 24 15:46:08 CST 2007


just can't get my head around this (so I should probably use some of my
free time re-reading my JavaScript tomes)

this function in S5's slides.js seems to kill the click advance for
certain stuff. how could I make this include any image which is a link?

	function clicker(e) {
		number = undef;
		var target;
		if (window.event) {
		target = window.event.srcElement;
		e = window.event;
		} else target = e.target;
		if (target.getAttribute('href') != null 
			|| hasValue(target.rel, 'external') 
			|| isParentOrSelf(target, 'controls') 
			|| isParentOrSelf(target,'embed') 
			|| isParentOrSelf(target,'object')) return true;
		if (!e.which || e.which == 1) {
			if (!incrementals[snum] || incpos >=
incrementals[snum].length) {
				go(1);
			} else {
				subgo(1);
			}
		}
	}

the full file in text format is here:

    http://streamliine.com/ii/slideshow/ui/default/slides.txt

thanks muchly

joel



More information about the thelist mailing list