A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Exact fit jpeg in popup?

  1. #1
    The Excentrifugal Force SSC Cosmic's Avatar
    Join Date
    Oct 2001
    Location
    Rochester, NY
    Posts
    988

    Exact fit jpeg in popup?

    Java q:
    I need to open a jpeg in a popup so that viewers can copy the images to their own hd, so I'm using this script:

    on (release) {
    getURL ("javascript:NewWindow=window.open('http://www.cscproducts.com/images/sv1000.jpg','newWin','width=750,height=400,screenX =0,screenY=0,left=0,top=0,toolbar=No,location=No,s crollbars=No,status=No,resizable=No,fullscreen=No' ); NewWindow.focus(); void(0);");
    }

    The image is 750x400, same as the window the script creates. Problem is, the image ends up with a background border at top and left, where I need there to be none. The corresponding amount of the image is pushed off the page at right and bottom. I did a whole bunch of searching here and elsewhere, no luck.

    Any help greatly appreciated!
    John
    if (you expect help){
    then.help(others);
    }else{
    gotoAndCheck.aSite4.somePoorBastardinSiteChex;
    }

  2. #2
    Senior Member
    Join Date
    Jun 2002
    Location
    Southern Cal. USA
    Posts
    136
    place your poppin images in a simple html page with this code in the body tag:

    <BODY TOPMARGIN="0" LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">

    then in your button code change the path to the html pages instead of the raw jpg's.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center