Are you neither Firefox nor Internet Explorer?? You must be..

function hide(arg2){
	if(browserType=="gecko"){
		document.poppedLayer=eval("document.getElementById(arg2)");
	}
	else{
		if(browserType=="ie"){
			document.poppedLayer=eval("document.all[arg2]");
		}
		else{
			document.poppedLayer=eval("document.layers[arg2]");
		}
	}
	document.poppedLayer.style.display="none";
}

😥
These quaint remnants from a time where a giant, binary, document.layer-supporting lizard named Netscape 4 roamed the World Wide Web were found on Virgin America's site.

Virgin America, would you please (belatedly) enter the 21st century?

Advertisements

10 thoughts on “Are you neither Firefox nor Internet Explorer?? You must be..

  1. Mike writes:Wow, you've got code using a global, using eval, using browser sniffing, augmenting host objects AND using styles directly rather than classes.That's like the holy grail of bad Javascript.Actually, looking at the HTML of that page I'm shuddering too. It's awful.

  2. Bad taste in my mouth. Did you know that COBOL programmers can make 5x as much as .NET developers? Because lots of places have never bothered to update.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s