Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

img magnification in frames

Status
Not open for further replies.

glg1

Programmer
Nov 19, 2005
65
US
I'm looking for a method to allow img magnification adjustment in frames. Opera allows size change of the complete page (nicely with +/- or scroll wheel), however, I'd love to be able to change the magnification of an image within a single frame in a frameset in IE or Firefox. Any ideas?
 
You could create a 1000 by 1000 image (say) and display it in a an image (with an id) as width 200 and height 200.

Then you could "zoom in" by triggering some javascript on a button (say) to change the width and height of the image... to 400 by 400 maybe. Then continue this until you reach 1000 by 1000 which is the max you can do.

If you had the image in an iframe or div and you set up overflow so scroll bars turned on... then you could allow scrolling too (and you might manage the x and y of the view port so it had context after the resolution change.

Hope that makes some sense - I'll be able to answer any questions tomorrow.

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top