我该如何让这段代码有一个cookie,使得它在访问另一个页面后不会再出现并返回到它?见真人版在onlythebestoftheweb.x10.mx点击使用Cookie消除点击
也看到我的代码 here
<script type="text/javascript">
function toggle_text(shown, hidden) {
var e = document.getElementById(shown);
var f = document.getElementById(hidden);
if(e.style.display == 'inline') {
e.style.display = 'none';
f.style.display = 'inline';
}
else {
e.style.display = 'inline';
f.style.display = 'none';
}
}
</script>
<div id="shown_first" style="display:inline">
<a style="cursor:pointer" onclick="toggle_text('shown_first', 'hidden_first')">
<a href="/popular.html" style="text-decoration:none;"><i> New! </i> Vote for Websites Here</a.
</a>
</div>
<div id="hidden_first" style="display:none">
<a style="cursor:pointer" onclick="toggle_text('shown_first', 'hidden_first')">
</a>
</div>
_“我如何让这段代码有一个cookie”_--通过对该主题进行一些_research_首先...? – CBroe
cbroe我没有时间为 – Wai
没有人_cares_如果你在任何时间的压力。如果你的任务是完成任务,那纯粹是单纯的_你的问题。 – CBroe