Sæt display til none, når dine elementer ikke skal vises mere !-)
F.eks.
<!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=iso-8859-1">
<style type="text/css">
html,body{height:100%;margin:0px;border:0px;padding:0px;font-family:tahoma,verdana,arial,sans-serif;font-size:small;}
</style>
<script language="javascript" type="text/javascript">
var elmsToHide = [
["link1",2005,10,29,13,22,0],
["link2",2005,10,29,13,22,10],
["link3",2005,10,29,13,22,20],
["link4",2005,10,29,13,22,30],
["link5",2005,10,29,13,22,40],
["link6",2005,10,29,13,22,50]
]
function hideText(){
var nu = new Date(),linktid;
for(i=0;elmsToHide.length>i;i++){
linktid = new Date(elmsToHide[i][1],elmsToHide[i][2],elmsToHide[i][3],elmsToHide[i][4],elmsToHide[i][5],elmsToHide[i][6])
if(nu.getTime() > linktid.getTime())
document.getElementById(elmsToHide[i][0]).style.display = "none";
}
setTimeout("hideText()",1000);
}
window.onload = function(){
hideText();
setTimeout("hideText()",1000);
}
</script>
<title>Fjern elementer efter tid</title>
</head>
<body>
<div id="link1"> <a href="kjg.html">kjg.html</a><br></div>
<a href="kjdsfs.html" id="link2">kjdsfs.html</a><br>
<a href="kjasrag.html" id="link3">kjasrag.html</a><br>
<a href="kjeg.html" id="link4">kjeg.html</a><br>
<a href="kjag.html" id="link5">kjag.html</a><br>
<a href="kjog.html" id="link6">kjog.html</a><br>
</body>
</html>
-- bemærk, at et javascript Date-objekt angiver måneder fra 0 til 11, så november i det ovenstående eksempel er 10 !-)