PDA

View Full Version : Is this valid?




Scav
02-16-2001, 09:51 PM
Is this functional javascript. It doesn't give me any errors but I cannot really tell if it is working. It is suppose to preload an image for a mouse over on ever page but the url i put into it (cause of the way my file structure on the site is set up it wouldnt find the file and possibly cause problems)

if (location != 'page_i_dont_want_to_load_on')
{
pre_load_goes_here;
}

So is location != a valid if / else statement? 8)




Canis Lupus
02-16-2001, 10:00 PM
Hmmm, not too good with my javascript, but I think that is a valid statement ... at least, that's what I remember...

Damn, you just made me want to review javascript again....

------------------
Those who expect nothing will never be disappointed...