Solved

ZOOM IN,ZOOM OUT a Picture in ASP

Posted on 2002-03-13
11
401 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
 
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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/…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now