Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Link Address Visibility

  • Subject: Re: Link Address Visibility
  • From: Roy Schestowitz <newsgroups@schestowitz.com>
  • Date: Sat, 30 Jul 2005 16:46:32 +0100
  • Newsgroups: alt.html
  • Organization: schestowitz.com / Manchester University
  • References: <dcg4d7$rp3$1@godfrey.mcc.ac.uk> <1aothg2jfsrma$.92zlqg24ry3q$.dlg@40tude.net>
  • Reply-to: newsgroups@schestowitz.com
  • User-agent: KNode/0.7.2
Els wrote:

> Roy Schestowitz wrote:
>> Is there a CSS-driven way of diplaying the link address near links
>> (without the use of JavaScript)? Is there a CSS hack of some sort? I
>> would like to embed full URL's near the links in a printable version of a
>> page (and in a printed version links cannot be followed).
>> Thanks very much in advance even if the answer is no... I am willing to
>> use JS if there is no alternative.
> Not sure if this is what you're after, but I'd just write the html
> like this:
> <a href="linkaddress">linktext<span> linkaddress</span></a>
> and in the CSS for screen:
> a span{display:none;}
> in CSS for print:
> a span{display:inline;}

That is an excellent idea, but it involves re-writing the content (about 400
pages in this case) to include <span> elements. I once wrote a
global/recursive search-and-replace tool for Linux, but it operates on
files, not on a database, which is where all the data is located. If I got
an sqldump, I can't think of a simple rule to mass-replace e.g.

<a href="TOKEN">link name</a>

<a href="TOKEN">link name<span> TOKEN</span></a>

I know it is possible, but it is not trivial to implement.


Roy S. Schestowitz

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index