Solved

ZOOM IN,ZOOM OUT a Picture in ASP

Posted on 2002-03-13
11
404 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 75 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
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/…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

713 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