Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: onmouseover in image pop up image appear onmouseout popup image close  (Read 3735 times)

0 Members and 1 Guest are viewing this topic.

Erick Gumiran

  • Guest
hi pls help me here my level in dreamweaver and css is just copy paste

i want  an image pop up on mouse over and the pop up exits onmouseout
heres my wrong code pls help me here

<script>

function popimage(imagesrc,winwidth,winheight){
var look='width='+winwidth+',height='+winheight+','
popwin=window.open("","",look)
popwin.document.open()
popwin.document.write('<title>Image Window</title><style>body {x-overflow:hidden}</style><body><img src="'+imagesrc+'"></body>')
popwin.document.close()
}

</script>

<img src="images/car.jpg" alt="" lowsrc="images/dome camera copy.jpg" style="margin-right:11px; float:left; margin-top:4px;" onmouseover= "popimage('images/car with IR.jpg') ; this.style.cursor='pointer' " onMouseOut="popimage.selfclose()" ) >

thank you in advance to all.. god bless!
« Last Edit: March 18, 2009, 02:23:48 AM by Erick Gumiran »