Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ZOOM IN,ZOOM OUT a Picture in ASP

Posted on 2002-03-13
11
Medium Priority
?
409 Views
Last Modified: 2012-08-14
hi all,
  I have an ASP page with one picture and Two buttons for ZOOM IN and ZOOM OUT,
  When i click the ZOOM IN button the picture should be ZOOM IN/OUT as per the user choice. How to do it?. please send the solution.

Regards
 pack
0
Comment
Question by:pack
  • 3
  • 3
  • 3
  • +2
11 Comments
 
LVL 1

Expert Comment

by:loveneesh_bansal
ID: 6860102
waiting for answer
0
 

Author Comment

by:pack
ID: 6860148
thanx loveneesh_bansal
0
 
LVL 19

Expert Comment

by:daveamour
ID: 6860159
Hi

Not sure if this is what your looking for but heres a nice simple client side Javascript solution I just knocked up.

<html>

<head>

<title>Zoom</title>

<Script Language="JavaScript">
  <!--
    function zoomIn()
    {
         document.images.Britt.width += 30;
         document.images.Britt.height += 30;
    }

    function zoomOut()
    {
         document.images.Britt.width -= 30;
         document.images.Britt.height -= 30;
    }
   
  //-->
</Script>

</head>

<body>

<p>
  <input type="button" value="Zoom In" onClick="zoomIn();">
  <input type="button" value="Zoom Out" onClick="zoomOut();">
</p>

<p>
  <img src="http://www.justthetickets.com/brittney.jpg" name="Britt" border="0" width="400" height="500">
</p>

</body>

</html>

Dave
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 19

Accepted Solution

by:
webwoman earned 300 total points
ID: 6860711
You're much better off using a java applet of some kind. Also, you'll need to make sure the pic can be zoomed in on -- lots of them will just get pixelated and be useless (like most of them).

This would have to be done on the CLIENT, not the server, so wouldn't really have anything to do with asp.
0
 
LVL 19

Expert Comment

by:daveamour
ID: 6860725
webwoman, perhaps it would help more if you explained why it would be much better to use a Java applet.  I'm not agreeing or disagreeing with you, I just think if your going to give such strong oppinions it would help to qualify them.

Dave
0
 
LVL 19

Expert Comment

by:webwoman
ID: 6862545
1) You can't alter the size of an image in Netscape 4+. You can swap it, but you can't alter it without reloading the page. Also, enlarging isn't 'zoom' -- zoom implies that you get more detail, not just a larger image.

2) There are java applets that allow you to zoom, as well as pan around the images within a fixed size, NOT making the image larger/smaller.
0
 

Author Comment

by:pack
ID: 6865205
dear daveamour,
  please tell your suggestion for webwoman's Answers.

Regards
 pack
0
 
LVL 19

Expert Comment

by:daveamour
ID: 6865212
her answers are fine dude

I was just being argumentative :)
0
 
LVL 19

Expert Comment

by:webwoman
ID: 6866081
No problem, dave, it helped clarify things for everybody. ;-)
0
 

Author Comment

by:pack
ID: 6867526
:)
0
 
LVL 1

Expert Comment

by:madeline448
ID: 9326763
pack,

No comment has been added lately (more than a year now), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to webwoman
Please leave any comments here within seven days.

-- PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER! --

Thanks,

madeline448
EE Cleanup Volunteer
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question