...

View Full Version : can someone convert this from JS to HTML??



bratzmania001
06-19-2004, 04:38 AM
can someone convert this from JS to HTML??

javascript:Ai7Mg6P='';for (i7M1bQz=0;i7M1bQz<document.images.length;i7M1bQz++){Ai7Mg6P+='<img src='+document.images[i7M1bQz].src+'><br>'};if(Ai7Mg6P!=''){document.write('<center>'+Ai7Mg6P+'</center>');void(document.close())}else{alert('No images!')}

someone told me that Willy Duit wrote this!! help Willy!!!! :(

Willy Duitt
06-19-2004, 05:03 AM
I did not write that Bookmarklet. ;)
Although I have posted it a few times.

Is this what you are looking for?


<script type="text/javascript">
function listImages(){
var image='';
for(var i=0; i<document.images.length; i++){
image += '<img src='+document.images[i].src+'><br>';
}
if(image != ''){
document.write('<center>'+image+'</center>');
document.close();
} else{ alert('No images!') };
}

</script>
</head>

<body>
<form>
<input type="button" onclick="listImages()" value="List Document Images">
</form>

BTW: This should have been posted in the Javascript Forum.
This forum is for completed scripts only.....

bratzmania001
06-19-2004, 03:16 PM
cool thanks willy! sorry about the mix-up!! some said you wrote it?? hmm :confused: :D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum