Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-14-2003, 09:44 AM   PM User | #1
Yardgnome
New Coder

 
Join Date: May 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Yardgnome is an unknown quantity at this point
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
Yardgnome is offline   Reply With Quote
Old 06-14-2003, 01:57 PM   PM User | #2
Garadon
Regular Coder

 
Join Date: Jul 2002
Posts: 698
Thanks: 0
Thanked 0 Times in 0 Posts
Garadon is an unknown quantity at this point
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.
Garadon is offline   Reply With Quote
Old 06-14-2003, 05:16 PM   PM User | #3
zoobie
Senior Coder

 
Join Date: Jun 2002
Location: ColoRockyz
Posts: 1,642
Thanks: 1
Thanked 0 Times in 0 Posts
zoobie has a little shameless behaviour in the past
I'd stay away from pop-ups...Everybody is turning them off.
__________________
Zoobie or not Zoobie...That is the problem.
<body onUnload="flush( ! )">
zoobie is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:52 PM.


Advertisement
Log in to turn off these ads.