Small modification to show filenames
![]() |
Hi there - thanks for writing this - saves me a ton of time. To make it a bit ore useful, for me at least, I've written a quick modification to show the actual filenames for each link - helps me find the image I am after a little bit quicker. I create a new variable after the link=link.substring(... line that takes the link and grabs the filename: var imgTitle=link.substr(1+link.lastIndexOf("/")); then when the new link element is created I use this variable rather than the generic 'direct link' + number: a.appendChild(document.createTextNode(imgTitle)); Easy as :) |
