You are here: Re: Link Address Visibility « HTML « IT news, forums, messages
Re: Link Address Visibility

Posted by Roy Schestowitz on 07/30/05 18:46

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

--
Roy S. Schestowitz
http://Schestowitz.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация