我該如何讓這段代碼有一個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