0

I'm having an issue with prototype...
I have the following code that I want to execute:

Event.observe(window, 'load', function(){
				$('mesTour1').hide();
				$('mesTour2').hide();
				$('mesTour3').hide();
				$('mesTour4').hide();
				$('mesTour1').appear().delay(0.5);
				$('cancelTour').observe('click', function(){
					$('mesTour1').fade();
				});
			});

the very first time it's loaded, it doesn't work, but if the page is refreshed, it works perfectly. is there something I'm missing?

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by super9876
0

also, ive tried a number of variations on order, placing the code directly in the page, placing it in a file and linking to the file... nothing works... but other javascript functions work correctly... just not the new ones i've added. this site was managaged by someone else previously and i recently am taking it over.
to get it to duplicate the issue ive been resetting the browser each time, clearing out everything...
test.chicagohomeestates.com
to log in, use tester@fakenstein.com, password 123456

0

there might be a code snippet that should be on the page, and not in the external file. double check it all.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.