locked
I need maximize,minimize,Rotate image in asp.net RRS feed

  • Question

  • User-280929925 posted

    HI,

                I want to do the image -> maximize,minimize,Rotate in my web page  using asp.net

     

    Thanks

    Ramesh Raja

     

    Thursday, July 31, 2008 12:58 AM

Answers

  • User-1509636757 posted

    the image -> maximize,minimize
     

     

    check out the following Example using JavaScript, its working for me in both IE and FF ..

     

     

    <html>
    <head>
        <style type="text/css">
            img.watch {width:187px; height:224px; border: 0px none #000000}
        </style>
    
        <script type="text/javascript">
            var restored = true         
            function maximizeRestore()
            {
                if (restored == true)
                {   
                    document.getElementById("w1").style.width="374";
                    document.getElementById("w1").style.height="448";
                    document.getElementById("a1").coords="342,416,374,448";
                    document.getElementById("a1").title="Restore";
                    restored = false;
                }
                else
                {
                    document.getElementById("w1").style.width="187";
                    document.getElementById("w1").style.height="224";
                    document.getElementById("a1").coords="171,208,187,224";
                    document.getElementById("a1").title="Maximize";
                    restored = true;
                }
            }
            </script>
    </head>
    <body>
        <img id="w1" src="watch.jpg" usemap="#clickMaxRest" class="watch" />
        <map id="clickMaxRest" name="clickMaxRest">
            <area id="a1" shape="rect" coords="171,208,187,224" onclick="maximizeRestore()" title="Maximize" />
        </map>
    </body>
    </html>

      

    Referenced Link > Maximizing and Restoring HTML Images with the Image Map Method

    hope it helps./. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, July 31, 2008 1:59 AM