Re: English link page (was: Re: [ox-en] Free project)
- From: Chris Croome <chris croome.net>
- Date: Fri, 31 Jan 2003 00:37:44 +0000
Hi
On Fri 31-Jan-2003 at 12:25:36AM [PHONE NUMBER REMOVED], Stefan Merten wrote:
http://www.oekonux.de/projekt/links.html
* Someone checks out which links point to English content.
If the links have this attribute added:
<a href="http://example.com/"
hreflang="en"
Foo</a>
Then it might make the task of automating something easier.
* [Your idea here]
You could also add this CSS to the head (only works in Mozilla but
this is good enough for me :-)
<style type="text/css">
a[hreflang="en"]:after {
padding-left: 0.2em;
padding-right: 0.2em;
color: white;
background: red;
font-weight: bold;
font-size: smaller;
content: "[English Link]";
}
</style>
And after each link to an english language site you get a bit of
text saying [English Link].
I might have a go at doing this myself...
In fact if all internal links _don't_ start with http: then this
following CSS would save having to code in all those images of the
globe for remote links (URI of image file would need changing):
a[href^="http://"]:after {
padding-left: 0.2em;
content: url("/css/remote.png");
}
a[href^="https://"]:after {
padding-left: 0.2em;
content: url("/css/remote.png");
}
a[href^=""]:before {
padding-right: 0.2em;
content: url("/css/mailto.gif")
}
You can see the above in action on my home page (in Mozilla of
course), in fact I was inspired to do it from seeing it on the
Oekonux site:
http://chris.croome.net/
Chris
_______________________
http://www.oekonux.org/