[thelist] [OT] JavaScript Help!

Richard H. Morris richard.morris at web-designers.co.uk
Sun Apr 28 03:52:01 CDT 2002


I have a bookmarklet to disable the display of most banner ads. saved as
a favorite [sic]:

javascript:for(jK6bvW=0;jK6bvW<document.images.length;jK6bvW++){if((docu
ment.images[jK6bvW].width==468)&&(document.images[jK6bvW].height==60))vo
id(document.images[jK6bvW].style.visibility='hidden')}

The trouble is, this also seems to disable the three latest images on my
bike pages (please don't scoff at the design: it's very old and possibly
quite broken and in need of a makeover) at http://www.zrx1200.co.uk

Could one of you JS gurus tell me what the JavaScript bookmark would
need to be to be able to show these images again or even toggle their
visibility state?

MTIA.

<tip type="usability" author="Richard Morris">

Try to keep a few recent versions of at least Internet Explorer and
Netscape on your PC or Mac for testing. If your budget can stretch to
it, try to make sure you *have* a Mac *and* a PC...

</tip>

_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
Richard. H. Morris, Web Designers Limited
~~ http://www.web-designers.co.uk ~~
"I'd rather have a full bottle in front of me
          than a full frontal lobotomy"
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/






More information about the thelist mailing list