scusami davvero..mi sa ke in javascript sono un pò inceppato..cm si dice dalle mie parti..
usando la tua funzione questa è la pag html:
Codice PHP:
<html>
<head>
<script type="text/javascript">
function preload(){
var stato = 0;
var slide = document.getElementById('preloader');
var sposta = function(){
if(stato++<100)slide.style.width=stato+"%";
else clearInterval(chiama);
}
var chiama = setInterval(sposta,50);
}
</script>
<style type="text/css">
<!--
#preload {
font-size: 16px;
width: 150px;
background-color: #9999FF;
}
-->
</style>
</head>
<body>
<table id="preload">
<tr>
<td></td>
</tr>
</table>
</p>
[url="javascript:preload()"]clicca qui[/url]</p>
</body>
</html>
dove sbaglio?