|
Posted by Els on 07/30/05 18:53
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 -
Navigation:
[Reply to this message]
|