PDA

View Full Version : onMouseover with onClick option



Elbee
08-08-2011, 05:46 PM
Hello,

I have some database widgets. I want the user to be able to mouseover the widget and see a popup window of a synopsis of the database. If the user would like to access the database, I would like them to have the onClick option.

<head>
[CODE]
<script>
function openPopUp(URL) {
new_window = window.open(URL, 'window',
'toolbar=0,scrollbars=0,location=0, statusbar=0,menubar=0,resizable=0,width=650,height=300,left = 350,top = 280');
}
function closePopUp() {
new_window.close();
}
</script>
[CODE]


<Body>
[CODE]
<a href="#" onMouseOver="openPopUp('http://jpl.coj.net/res/db/popups/abc-clio.html')" onMouseOut="closePopUp(''http://jpl.coj.net/res/db/popups/abc-clio.html')"><img src="http://jpl.coj.net/pics/logos/abc-clio.jpg" alt="ABC-CLIO Databases" width="164" height="42" border="0"/></a>

<URL of database>
http://databases.abc-clio.com/Multi/

Can this be done? Thank you for your help, Elbee