[thelist] !important and user defined style sheets

Raymond Camden jedimaster at macromedia.com
Fri Jan 4 11:10:25 CST 2002


I'm not sure what the rules are for posting attachments here, so I'll
just post the source. 

Save this as hideads.css.


/*
	Filename         : hideads.css
	Last modified by : Joel Mueller (joel at joeltmueller.com)
	Created          : Wednesday, January 03, 2001 11:02:17 AM
	Last Updated     : Tuesday, January 16, 2001 11:13:24 AM
	Comments         :
	
	This stylesheet works in IE 5.0 and above, and will hide all
images
	and IFRAMEs that meet the standard sizes for web banner ads.
This will
	block most ads from being viewed (but they are still downloaded
to your computer).
	However, it will also block innocent images that happen to be of
one of the following
	sizes.  If that happens, you can turn off this stylesheet to see
the image.
	
	Standard ad sizes covered:
	120x240, 120x60, 120x90, 234x60, 468x60, 125x125, 392x72,
154x104
	
	Update:
	This will also deal with 1x1 "web bugs"
(http://www.theregister.co.uk/content/1/15423.html).
	However, I'm not sure if it takes effect before or after the
image is loaded.  If after,
	it won't help.
	
	Installation:
	Put this file anywhere on your hard drive (I use c:\winnt\web\).
	In IE, click Tools, then Internet Options.  Click the
Accessibility button.
	Under "User Style Sheet" select the location where you saved
this file.
*/

IMG
{
	visibility: expression(((this.clientHeight == 60 &&
(this.clientWidth == 468 || this.clientWidth == 234 || this.clientWidth
== 120)) || (this.clientWidth == 120 && (this.clientHeight == 240 ||
this.clientHeight == 90)) || (this.clientWidth == 125 &&
this.clientHeight == 125) || (this.clientWidth == 392 &&
this.clientHeight == 72) || (this.clientWidth == 154 &&
this.clientHeight == 104)) ? "hidden" : "");
	src: expression((this.clientHeight == 1 && this.clientWidth ==
1) ? "" : this.src);
}

IFRAME
{
	visibility: expression(((this.clientHeight == 60 &&
(this.clientWidth == 468 || this.clientWidth == 234 || this.clientWidth
== 120)) || (this.clientWidth == 120 && (this.clientHeight == 240 ||
this.clientHeight == 90)) || (this.clientWidth == 125 &&
this.clientHeight == 125) || (this.clientWidth == 392 &&
this.clientHeight == 72) || (this.clientWidth == 154 &&
this.clientHeight == 104)) ? "hidden" : "");
}

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : jedimaster at macromedia.com
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: thelist-admin at lists.evolt.org 
> [mailto:thelist-admin at lists.evolt.org] On Behalf Of Bill Lovett
> Sent: Friday, January 04, 2002 12:07 PM
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] !important and user defined style sheets
> 
> 
> On Fri, Jan 04, 2002 at 11:41:37AM -0500, Raymond Camden wrote:
> 
> > For a while now I've used a css that hides images of common 
> ad sizes. It
> > doesn't muck with the site css, and makes pages a bit cleaner.
> 
> How exactly are you doing that? Can you post any of it?
> 
> -bill
> 
> -- 
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt ! 
> 





More information about the thelist mailing list