Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2004
    Posts
    65
    Thanks
    0
    Thanked 0 Times in 0 Posts

    can someone convert this from JS to HTML??

    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!!!!

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I did not write that Bookmarklet.
    Although I have posted it a few times.

    Is this what you are looking for?

    Code:
    <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.....

  • #3
    New Coder
    Join Date
    Jun 2004
    Posts
    65
    Thanks
    0
    Thanked 0 Times in 0 Posts
    cool thanks willy! sorry about the mix-up!! some said you wrote it?? hmm


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •