Kainte
07-27-2003, 03:50 AM
I have a simple question that may have an even simpler answer than the one I'm looking for, but basically I have an imagemap, and a Javascript onclick option, however no cursor changes happen to signify it's a link. So I figured I needed an onmouseover function that changed the cursor, but I've had no luck.
Here's my code:
<script language=javascript>
function openmayhem()
{
window.open("<%= Request.ServerVariables ( "SERVER_HOST" ) %>/content/projects/mayhem.asp")
}
function overmayhem()
{
event.srcElement.style.cursor = "move"
}
</script>
And:
<img border="0" src="<%= Request.ServerVariables ( "SERVER_HOST" ) %>/interface/site-header2.gif" usemap="#projects">
<map id="projects" name="projects">
<area shape="rect" coords="10,110,75,125"
onclick="openmayhem()" onmouseover="overmayhem()" alt="Mayhem">
</map>
Here's my code:
<script language=javascript>
function openmayhem()
{
window.open("<%= Request.ServerVariables ( "SERVER_HOST" ) %>/content/projects/mayhem.asp")
}
function overmayhem()
{
event.srcElement.style.cursor = "move"
}
</script>
And:
<img border="0" src="<%= Request.ServerVariables ( "SERVER_HOST" ) %>/interface/site-header2.gif" usemap="#projects">
<map id="projects" name="projects">
<area shape="rect" coords="10,110,75,125"
onclick="openmayhem()" onmouseover="overmayhem()" alt="Mayhem">
</map>