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: Els <els.aNOSPAM@tiscali.nl>
  • Date: Sat, 30 Jul 2005 17:53:32 +0200
  • Newsgroups: alt.html
  • Organization: LocusMeus.com
  • References: <dcg4d7$rp3$1@godfrey.mcc.ac.uk> <1aothg2jfsrma$.92zlqg24ry3q$.dlg@40tude.net> <dcg7e5$sgs$1@godfrey.mcc.ac.uk>
  • Reply-to: els.aNOSPAM@tiscali.nl
  • User-agent: 40tude_Dialog/2.0.15.1
  • Xref: news.mcc.ac.uk alt.html:292085
Roy Schestowitz wrote:

> 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.

I think it's pretty trivial for anyone fluent in regular expressions.
i.e. not me ;-)

-- 
Els                     http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
                             - Renato Russo -

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