杜卡迪中国专卖店:链接问题:关于颜色改变的

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/29 04:58:59
我想实现这样的功能:我在一个页面点了一篇文章的标题,以后在其他页面有这篇文章的链接都变成其他颜色,大家看看能不能实现啊

只要文章的绝对地址(URL)一样,点了一个后,其它页面有这篇文章的链接都应变色.
例如文章的链接都是
<A HREF="http://www.64915812.net/article02.html">article02</A>
点了一个后,其它页面都应变色.

变成的颜色可以用A:visited css style 定义.
<style type="text/css">
A:visited { color: yellow; text-decoration: none }
</style>

存成.css调用或者每页都加上这个代码

<STYLE type="text/css">
<!--
a:link {
color: #003366;
text-decoration: none
}
a:visited {
color: #003399;
text-decoration: none
}
a:hover {
color: #FF9900;
text-decoration: none
}
a:active {
color: #003300;
text-decoration: none}
-->
</STYLE>