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 3 of 3
  1. #1
    New Coder
    Join Date
    May 2003
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    popup window with mouseover

    I have a table a images shown at a certain size. I'm trying to create a script that will load the image at a bigger size, by my choosing, in a new window when the mouse is moved over that image. Then close that window once mouse is off that image. I've also thought about just loaded a 'preview' window when that page loads, then have the images load in that window... without the window ever closing. Haven't decided which way would work best, but if someone could help me out with either method, or has ideas on a different method... please let me know. It would be appreciated!

    Yardgnome

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    put this in the head.

    Code:
    <script>
     function openit(aImg,x,y)
     {
       image=window.open(aImg,'','width='+x+',height='+y)
     }
     function closeit(aImg,x,y)
     {
       image.close();
     }
    </script>
    put this in you img tags:

    Code:
    onmouseover="openit('largerPic',100,100);" onmouseout="closeit();"

    replace the largePic with name of the pic u wanna open in the new window.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I'd stay away from pop-ups...Everybody is turning them off.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">


  •  

    Posting Permissions

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