All pastes #425511 Raw Edit

Mine

public text v1 · immutable
·published 2007-04-05 15:12 UTC
rendered paste body
	window.addEvent('domready', function() {
		var imageFunction = function (request, xml){ 
			response = xml.documentElement;
			alert(response.getElementsByTagName('imagepath')[0].firstChild.data);
		}
		$$('#popupmenu li a').each(function(el) {
			el.addEvent('click', function() {
				if($('popup').getStyle('opacity') == 1){
					$('popup').setOpacity(0).setStyle('display', 'block').effects({duration:3000}).start({'opacity': 0.9});
				}else{
				if($('popup').getStyle('opacity') > 0){
					$('popup').setOpacity(0.9).setStyle('display', 'block').effects({duration:3000}).start({'opacity': 0});
				}
				else
				{
					$('popup').setOpacity(0).setStyle('display', 'block').effects({duration:3000}).start({'opacity': 0.9});
				} 
				}
			});
		});
		$('pictures').setStyle('width',$$('#fotolist #pictures img').length * 67+"px");
		$$('#fotolist #pictures img').setStyle('opacity','0.5');
		$$('#fotolist #pictures img').each(function(element,index){
		                element.addEvents({
		                        'mouseover' : function(){ element.setStyle('opacity', '1'); },
		                        'mouseout' : function(){ element.setStyle('opacity', '0.5'); },
		                        'click' : function(){ 
									new Ajax('http://localhost/adproductions/gallery.php', {
										method: 'get',
										onComplete: imageFunction
									}).request();
									$('largeimg').setProperty('src',element.getProperty('name'));
								}
		                });
		        });
		var s = new Scroller('fotolist');
		s.start();
	});