<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <style type="text/css">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <style type="text/css">
这个是多人共同浏览的
我的状态记录在哪里啊?
记录cookie?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
a:link {
color: #111111;
}
a:visited {
color: #FFCCFF;
}
</style>
</head>
<body>
<table>
<tr><td><a href="#">1</a></td></tr>
<tr><td><a href="http://1.html">2</a></td></tr>
<tr><td><a href="http://2.html">3</a></td></tr>
<tr><td><a href="http://3.html">4</a></td></tr>
<tr><td><a href="http://4.html">5</a></td></tr>
<tr><td><a href="#">6</a></td></tr>
<tr><td><a href="#">7</a></td></tr>
<tr><td><a href="#">8</a></td></tr>
<tr><td><a href="#">9</a></td></tr>
</table>
</body>
</html>我真的不知道你这个纪录究竟是什么?超链接?还是tr td的背景??超链接的话我已经帮你实现了
tdtr背景的建议你用cookie
嗯,我也用了超连接 <a href="javascript:click()">
但是没有用
再次打开页面的时候还是全都变成了红色
如果是超链接的字?
<style type="text/css">
a:link {
color: #111111;
}
a:visited {
color: #FFCCFF;
}
</style>
在html里加上这句就行了。
如果是其他的,定义个数据结构,存放在cookie。下次打开的时候读下cookie就行了
看来逮存cookie了
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
a:link {
color: #111111;
}
a:visited {
color: #FFCCFF;
}
</style>
</head>
<body>
<table>
<tr><td><a href="#">1</a></td></tr>
<tr><td><a href="http://www.sina.com.cn">2</a></td></tr>
<tr><td><a href="http://www.sohu.com">3</a></td></tr>
<tr><td><a href="http://www.126.com">4</a></td></tr>
<tr><td><a href="http://4.html">5</a></td></tr>
</table>
</body>
</html>
你是要实现这个效果?
文字变红
}时时把 cout 写入数据库 保存就可以了
我原来a href="javascript:click()"
后来直接写href="/servlet...."
就可以了.
马上下班了.明天来了给分