code to make enlarge image

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sourapple77
    New Member
    • Feb 2008
    • 4

    code to make enlarge image

    hi,
    I'm using flash button like "zoom in" to enlarge an image from html using javaScript. How can I do this?

    ex. I have flash media inserted within html document and once the button inside the flash is pressed viewers can view the enlarged image from their page.

    thank you in advance.
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    Originally posted by sourapple77
    hi,
    I'm using flash button like "zoom in" to enlarge an image from html using javaScript. How can I do this?

    ex. I have flash media inserted within html document and once the button inside the flash is pressed viewers can view the enlarged image from their page.

    thank you in advance.
    [html]<img src="image.png" alt="thumb" width='w' onclick="if (this.alt=='thu mb') this.width*=10; this.alt='Image ';">
    <!--w should be 1/10 of the actual image size-->[/html]

    Do you want this or something else?

    Comment

    • sourapple77
      New Member
      • Feb 2008
      • 4

      #3
      can you see if this is the right code to use for flash and javaScript in html?

      FLASH ..

      on (press) {
      getURL("JavaScr ipt:OpenMyWindo w()")
      }

      javaScript ..

      <SCRIPT language="Javas cript">

      function OpenMyWindow() {

      window.open("ab d1lg.html","win Name","toolbar= 0,scrollbars=0, location=0,stat usbar=0,menubar =0,resizable=0, width=500,heigh t=660,left = 412,top = 234");

      }

      </SCRIPT>

      Comment

      • hsriat
        Recognized Expert Top Contributor
        • Jan 2008
        • 1653

        #4
        Originally posted by sourapple77
        can you see if this is the right code to use for flash and javaScript in html?

        FLASH ..

        on (press) {
        getURL("JavaScr ipt:OpenMyWindo w()")
        }

        javaScript ..

        <SCRIPT language="Javas cript">

        function OpenMyWindow() {

        window.open("ab d1lg.html","win Name","toolbar= 0,scrollbars=0, location=0,stat usbar=0,menubar =0,resizable=0, width=500,heigh t=660,left = 412,top = 234");

        }

        </SCRIPT>
        JS part is right., I dunno about the flash part...

        Comment

        • sourapple77
          New Member
          • Feb 2008
          • 4

          #5
          I've used the different flash coding to fix the problem, thank you.

          Comment

          Working...