W3C home > Mailing lists > Public > www-style@w3.org > October 2000

Re: simulating <br>

From: Daniel Glazman <glazou_2000@yahoo.fr>
Date: Thu, 26 Oct 2000 16:36:20 +0200
Message-ID: <39F84164.30706@yahoo.fr>
To: Vincent Lefevre <vincent+www@vinc17.org>
CC: www-style@w3.org
Vincent Lefevre wrote:


> I wish the browsers I use could collapse <BR>'s. There are pages that
> use too many of them and need to be scrolled too much often.


Abracadabra, your wish is now reality. I am glad to provide
the readers of this mailing-list with a very small piece
of script for MSIE 5.

1. save the attachment in a file called CollapseBRs.url
2. drag'n'drop the file into the Link toolbar of Windows Explorer
or Internet Explorer
3. download any HTML file with multiple BRs
4. click on the CollapseBRs link in the Link toolbar

/* Enjoy ! */

</Daniel>

[InternetShortcut]
URL=javascript:if (false)void('Collapse BRs... script (C)2000 Daniel Glazman');var i=0,ds='',s = document.getElementsByTagName('BR');if (s.length >= 2) {for (i=s.length - 2;i>=0;i--) {var f = s.item(i), g = s.item(i+1), p; p = g.parentNode;if (f.nextSibling == g) {p.removeChild(g);};}};void(20001026);



___________________________________________________________
Do You Yahoo!?
Achetez, vendez!  votre prix! Sur http://encheres.yahoo.fr
Received on Thursday, 26 October 2000 10:37:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:06 GMT