Lost password? | Help

[ advanced search ]

Zoom Image

Forums » User JavaScript » » User JavaScript

Go to last post

Saturday, 29. September 2007, 08:31:47

h8uthemost

avatar

Posts: 36

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

AyushJ

avatar

Posts: 4754

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 // )

Sunday, 11. November 2007, 17:46:09

arashpour

avatar

Posts: 29

this script doesnt worl well. it only wors for some images on some pages.

Monday, 12. November 2007, 03:15:38 (edited)

fearphage

Trained Swordsman of Unwanted Opera Termination

avatar

Posts: 2028

USA

Nice ayush. As usual :smile:
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.

Monday, 12. November 2007, 18:10:55

AyushJ

avatar

Posts: 4754

Thanks Phred :smile: Exerything fixed now (except alt key problem :frown: )

Originally posted by arashpour:

this script doesnt worl well. it only wors for some images on some pages.


Try now :smile:

Thursday, 15. November 2007, 14:35:55

arashpour

avatar

Posts: 29

Originally posted by AyushJ:

Thanks Phred :smile: Exerything fixed now (except alt key problem :frown: )

Originally posted by arashpour:

this script doesnt worl well. it only wors for some images on some pages.


Try now :smile:



Where's the file? :D

Saturday, 17. November 2007, 08:57:51

arashpour

avatar

Posts: 29

Thanks pal!
two things though:
1. Where is that nice tiny tool that used to show up?
2. Alt+double clicking on image doesnt restore to original size for me

Saturday, 17. November 2007, 13:39:10

AyushJ

avatar

Posts: 4754

Originally posted by arashpour:

1. Where is that nice tiny tool that used to show up?


:confused: Which nice tool ?

Originally posted by arashpour:

2. Alt+double clicking on image doesnt restore to original size for me


Just alt+click should work.

Saturday, 17. November 2007, 14:45:15

arashpour

avatar

Posts: 29

Originally posted by AyushJ:

Which nice tool ?


The little one that had 3 bottons: + - zoom
doesnt show up anymore. if i had old script i'd capture an image of it

Originally posted by AyushJ:

Just alt+click should work.


doesnt work for me. Is it me?

Friday, 22. May 2009, 14:03:47

dapxin

avatar

Posts: 100

Nigeria

does it still work guys ?

Wednesday, 21. October 2009, 21:04:21

AlexCeed

avatar

Posts: 6

Originally posted by dapxin:

does it still work guys ?



Yes, it does. Pretty good too but an update will be apreciated.

Forums » User JavaScript » » User JavaScript