Saturday, 29. September 2007, 08:31:47
Zoom Image
Hey guys,I installed the Zoom Image userscript into Opera. And it says just to hover the mouse over an image, a little toolbar will popup letting zoom the image. But nothing is happening for me.
Anyone know anything about this script? Or any other script that will let me zoom images in Opera?
Thanks.
Sunday, 30. September 2007, 19:31:51
Try this: Zoom images with mouse wheel
Read @description in script for info on how to use the script (also read the comment after altKey=1 // )
Read @description in script for info on how to use the script (also read the comment after altKey=1 // )
Monday, 12. November 2007, 03:15:38 (edited)
Nice ayush. As usual 
Is it me or should the wheel direction be switched
@arashpour: what are some pages it doesn't work on?
EDIT: The weird thing about using ALT is if you have the menu bar visible, when you release ALT it selects file.
if(elm.tagName.toLowerCase()=='img' || (a=ev.srcElement.selectSingleNode('ancestor-or-self::a[@href]'))){A few things here:- You've already assigned ev.srcElement to elm so you can use that instead.
- the source element <img> will never be the <a> tag with the href so you can always search for the ancestor (not ancestor-or-self)
- you are unneccessarily assigning the result of the xpath node to a global variable (a) that you aren't using (as far as i can tell)
Is it me or should the wheel direction be switched
if(ev.wheelDelta<0)
setSize(elm,+1)
else
setSize(elm,-1)Rolling down should zoom out, no? (just like ctrl+zoom for web pages) If you agree, you can just pass ev.wheelDelta to setSize. @arashpour: what are some pages it doesn't work on?
EDIT: The weird thing about using ALT is if you have the menu bar visible, when you release ALT it selects file.
Thursday, 15. November 2007, 19:49:22
Originally posted by arashpour:
Where's the file?
Same link - http://files.myopera.com/AyushJ/scripts/zoom-images-with-wheel.js
