Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jul 2002
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Resize popup after the window have opened!! Read for more ifon

    Well, I've got a news site and there is an image gallery.

    When you click a image it will open it in natural size in a popup that's easy.

    My open popup code:

    <script>

    function viewimage(url,name){
    winpops=window.open(url,"","width=400,height=400,")
    }

    </script>


    The link that opens the popup

    <a target="_self" href="javascript:viewimage('viewimage.asp?bid=<%=RecSet("bid")%>&name=<%=RecSet2("titel")%>','<%=Rec Set2("titel")%>');">
    <img border="1" src="<%=RecSet("path")%>" width="76" height="76" align="top"></a>


    Now I've got this so for but here comes the problem. I wan't the popup to resize after the size of the image. This after the popup has loaded. That because the images can be diffrent sizes and the the popup will be resized after the first image only and I don't want that, the popup must resize efter EVERY image...

    A loading image... should be good too


    I forgot my adress

    http://bobban.www2.dotnetplayground....=Half-Life%202
    Last edited by Wobbler; 06-15-2003 at 03:46 PM.

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Location
    Silicon Valley, CA
    Posts
    980
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #3
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Ok

    Last edited by Mr J; 06-15-2003 at 08:01 PM.

  • #4
    New Coder
    Join Date
    Jul 2002
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I'vealready solved it!!!

    <img style="border-width: 0" src="<%=RecSet("path")%>" onLoad="resizeTo(document.bild.width+10,document.bild.height+29);" name="bild">


  •  

    Posting Permissions

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