(网页制作问题)请问怎么让点击链接后有两个效果

来源:百度知道 编辑:UC知道 时间:2024/06/06 20:25:36
一;在新窗口打开,
二,链接变色并保持(可以让浏览者知道他浏览过了)
我的原来是这样

<html>
<head>
<title>CSS制作多种链接样式实例</title>
<style type="text/css">
<!--

a.red:link { color: #FF0000; text-decoration: none}
a.red:visited { color: #FF0000; text-decoration: none}
a.red:hover { color: #606060; text-decoration: underline}
a.red:active { color: #606060; text-decoration: underline}

-->
</style>
<!-- 链接样式表 -->
</head>
<body>
<a class="red" href="http://www.google.cn">google</a>
</div><br>
</body>
</html>
豆豆兜_兜还没有变色保持的效果
像下面这网站
http://www.spark.com.cn/
新窗口打开后变色并保持
是用JAVASCRIPT来实现的么
请帮忙再看看谢谢

a.red:hover { color: #606060; text-decoration: underline}
a.red:active { color: #606060; text-decoration: underline}
这两个的COLOR后面的 颜色代码 不要一致就好了~~
在新窗口打开的话你在连接 的后面加 _blank
代码 <a href="www.baidu.com" target="_blank">baidu</a>