Web Dev One-liner



  • Discovered on a site that happens to have about 50mb of jpegs (the vast majority unrelated to the page in question) sitting directly in the "images" directory:

    <body onLoad="MM_preloadImages('images/home.jpg', 'images/*.jpg')">

    For those unfamiliar with the image preloading javascript function bundled with Dreamweaver: no, it does not handle wildcards. 



  • I wouldn't think it would, I mean most of the time you can't get directory listings (at least not these days), so the server would have to somehow, magically send you a list back based on your wild card... the whole thing makes my head explode.


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.