Script virker kun med ServicePack 1
hej..Jeg har et scrip, som tælelr ned fra 10 sec, og så skriver den "Click here to download", men den virker sjovt nok kun med servicepack 1.. Hvad sker det, hvad er ikke brugbare standart?
<style>
.downloadhtml A:link {text-decoration: none; font-weight: normal;}
.downloadhtml A:visited {text-decoration: none; font-weight: normal;}
.downloadhtml A:active {text-decoration: none; font-weight: normal;}
.downloadhtml A:hover {text-decoration: none; font-weight: normal;}
a
{
color: black;
font-weight: bold;
text-decoration: none;
}
a:hover
{
text-decoration: underline;
}
</style>
<div id="downloadbutton">
<table cellpadding="0" cellspacing="0">
<tbody><tr>
<td align="center" height="35" valign="middle" width="350">
<table style="border: 1px solid rgb(255, 137, 35); -x-border-x-spacing: 0pt; -x-border-y-spacing: 0pt; border-collapse: collapse;">
<tbody><tr>
<td style="border-style: solid; border-color: rgb(255, 137, 35); border-width: 1px 1px 0pt 0pt; background-color: rgb(245, 245, 245);" align="center" height="23" width="250">
<div id="downloadhtml" class="downloadhtml" style="font-weight: normal; font-size: 13px; color: black;"><a href="http://www.downloading.dk" class="downloadlink" onclick="loadingdownload();">Click here to download</a></div>
</td>
</tr>
</tbody></table>
<script language="Javascript">
x5667=11;
function countdown()
{
if ((0 <= 100) || (0 > 0))
{
x5667--;
if(x5667 == 0)
{
document.getElementById("downloadhtml").innerHTML = '<a href="http://www.downloading.dk/et-eller-andet.mpg" class="downloadlink" onclick="loadingdownload();">Click here to download</font></a>';
//window.location = "http://www.downloading.dk";
}
if(x5667 > 0)
{
document.getElementById("downloadhtml").innerHTML = 'Please wait '+x5667+' seconds..';
setTimeout('countdown()',1000);
}
}
}
countdown();
function loadingdownload()
{
document.getElementById("downloadhtml").innerHTML = 'Loading download..';
popup('p.php','p',550,250);
window.focus();
}
function popup(url,name,wwidth,wheight)
{
window.open(url,name,'width='+wwidth+',height='+wheight+',scrollbars=no,status=no,resize=no, toolbar=no');
}
</script>
</td>
</tr>
</tbody></table>
</div>
