why doesn't this go to gif 2 then 3, 4, and 5 ?
<html>
<body>
<script type="text/javascript">
function curl(a){
var i = 1
if (a.substring(0,7)!=' || a.substring(a.length-3,a.length)!='gif')
{
alert("Error");
}
else
{
document.getElementById('dply').innerHTML='';
for (i = 1; i < 6; i++){
a=a.replace("*n*",i);
document.getElementById('dply').innerHTML = document.getElementById('dply').innerHTML +
'<br>'+'<img src="'+a+'"> <a href="'+a+'">'+a+'</a>';
}
}
}
</script>
<input type="text" id="url" size="40" value="<input type="button" onclick="curl(document.getElementById('url').value)">
<div id="dply">
</div>
</body>
</html>
thank you
<html>
<body>
<script type="text/javascript">
function curl(a){
var i = 1
if (a.substring(0,7)!=' || a.substring(a.length-3,a.length)!='gif')
{
alert("Error");
}
else
{
document.getElementById('dply').innerHTML='';
for (i = 1; i < 6; i++){
a=a.replace("*n*",i);
document.getElementById('dply').innerHTML = document.getElementById('dply').innerHTML +
'<br>'+'<img src="'+a+'"> <a href="'+a+'">'+a+'</a>';
}
}
}
</script>
<input type="text" id="url" size="40" value="<input type="button" onclick="curl(document.getElementById('url').value)">
<div id="dply">
</div>
</body>
</html>
thank you