Solved

ZOOM IN,ZOOM OUT a Picture in ASP

Posted on 2002-03-13
11
402 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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 Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 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