Java Geri Sayım Kodu Bağlantı Gizleme
Java ile hazırlanmış bağlantıları gizleme kodudur.
Kod:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<script language="JavaScript" type="text/javascript">
<!--
var Cnt=0;
function Timer(){
td=document.getElementById('ClickHere');
td.firstChild.data='Count Down '+Cnt;
Cnt++;
if (Cnt<41){ setTimeout('Timer();',1000); }
else {
td.parentNode.insertBefore(document.getElementById('clone').getElementsByTagName('A')[0].cloneNode(true),td);
td.parentNode.removeChild(td);
}
}
//-->
</script>
</head>
<body onload="Timer();">
<a id="ClickHere" > </a>
This div can go at the bottom of the page or just about anywhere
<div id="clone" style="position:absolute;visibility:hidden;" >
<a href="complete.php?id=<?=$key?>" class="ltxt" onClick="javascript: Toggle()">Click here to download the file.</a>
</div>
</body>
</html>