Forum Moderators: open

Message Too Old, No Replies

Pop Up Window Generated From on Mouse Over?

         

Heat_Treat

11:21 pm on Feb 21, 2005 (gmt 0)

10+ Year Member



Hello, i have found the way to get a pop up window to come up (in many different properties) when someone clicks on a single image (button) on my page. Below is the code i use to do so:

<A HREF="javascript:void(0)" onClick="window.open('http://heattreat.ca/demo1.swf', 'MyPopUp', 'width=432,height=270,toolbar=0,scrollbars=0,screenX=200,screenY=200,left=200,top=200')"><img src="BenefitsGIF.gif" border=0> </A>

Now i would like to use the same image as above, but to have it as a rollover button instead of one static image. Is it possible for a pop up window to be generated once someone clicks on the mouseover button? I had a look around through google and wasnt able to find it, perhaps i missed the info....if someone could shoot me a link or say "no" that would be great. Cheers :)

le_gber

12:17 pm on Feb 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi Heat_Treat,

what you want is look for the onmouseover and onmouseout commands.

onmouseover show the new button img
onmouseout show the default bttn img
onclick open window

Hope this helps

Leo

piskie

12:22 pm on Feb 22, 2005 (gmt 0)

10+ Year Member



Before you implement this, you should check how it functions with IE + SP2. I suspect it would be classed as an involuntary action and thereby subject to warnings, approval/permissions etc.

Not very user friendly if it does.