View all images in an open directory

Get in touch

If you would like help with "View all images in an open directory" or with any other topic then feel free to get in touch for a chat.

by | 06/07/2011 | Blog | 0 comments

Copy and paste the below into the address bar and all the images in an open directory will automatically be loaded.

javascript:var%20sHTML='<html><head><title>Fotoviewer</title></head>n<body>nt<div%20align=”center”>n’;for(x=0;x<document.links.length;x++){link=document.links[x].href.toLowerCase();if((link.indexOf(‘.jpg’)!=-1)||(link.indexOf(‘.gif’)!=-1)||(link.indexOf(‘.png’)!=-1)||(link.indexOf(‘.bmp’)!=-1)){sHTML+=’tt<img%20src=”‘+document.links[x].href+'”/><br/><br/>n’}}sHTML+=”t</div>n</body></html>”;document.body.innerHTML=sHTML;

 

Can we help?

If you would like help with this, or any other topic then don’t hesitate to get in touch with us.