#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    184
    Rep Power
    14

    more of a java script.. but need some help


    im a php guy, and I need to use some java to get something done... my php gets an image height and size and passes it to this function to open a window:


    <script language="JavaScript">
    <!--//

    function ShowLarge(Url, width, height)
    {
    large_image_win = window.open('large.php?img=' + sUrl, 'large_image_win', 'width='+width, 'height='+height,'scrollbars=no','resizable=no','status=no','location=no','menubar=no');
    large_image_win.focus();
    }
    //-->
    </script>

    width and height are variable containing my width and height which I got from my php script. here is how it outputs the link:

    echo "<td><a
    href=\"javascript: ShowLarge('$file', '$size[0]', '$size[1]');\">";
    file being the url, size[0] being width, size[1] being height. All of the php is right, when i hover over the link i see ShowLarge('url', '400', '400') soo... its that first script that is wrong... I havnt a clue what is wrong with it.

    The problem is that the window isnt the right size.
    --Tantapants
  2. #2
  3. Modding: Oracle MsSQL Firebird
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2001
    Location
    Outside US
    Posts
    8,527
    Rep Power
    539

IMN logo majestic logo spyfu logo threadwatch logo seochat tools logo