Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ZOOM IN,ZOOM OUT a Picture in ASP

Posted on 2002-03-13
11
Medium Priority
?
407 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: 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!

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
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 is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

722 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