Monthly Archives: July 2011

Swap Stereoscopic Image Parts

I wrote a silly bookmarklet for swapping the two halves of stereoscopic images on a web siteā€”to turn normal stereoscopic images to cross-eyed-viewable images. javascript: var i,im,ims = document.getElementsByTagName(‘img’),j=ims.length; for(i=0;i<j;++i){im=ims[i]; with(im.style){paddingTop=im.height+'px'; backgroundImage='url('+im.src+')'; backgroundPosition=(im.width/2)+'px 0%'; height='0px';}} void(0); (Only tested in Chrome, … Continue reading

Posted in Computers en internet | Leave a comment