how can you link to a frame from a image map...?
I know it is possible with javascript, but I don't know the script...
if any1 can help please post a response with the code to do it
Owlie42
02-03-2003, 12:12 AM
what do you mean?
If you want to, say, use a image map in a frame as part of your navigation, then you would use:
<img src="your image name" usemap="#mymap" width="your width" height="your height" border="0"><map name="mymap">
<area shape="rect" coords="your coordinate,your coordinate,your coordinate,your coordinate" href="URL" target="your frame name">
</map>
Just remember to replace everything with your information!
actually the target code doesn't work
but I did find the code I needed
<HTML>
<head>
<!--#include file="loadbar.txt" -->
<script language="javascript">
function loadframe(url,target)
{
parent.frames[target].location.href = url;
}
</script>
</head>
<BODY bgcolor="#000000">
<img src="menu.bmp" usemap="#menumap" border="0" name="menupic">
<map name="menumap">
<area shape="rect" coords="0,0,90,34" href="javascript: loadframe('home.shtml','main')" onmouseover="menupic.src='home_roll.bmp'" onmouseout="menupic.src='menu.bmp'">
<area shape="rect" coords="90,0,171,34" href="javascript: loadframe('bios.shtml','main')" onmouseover="menupic.src='bios_roll.bmp'" onmouseout="menupic.src='menu.bmp'">
<area shape="rect" coords="171,0,252,34" href="javascript: loadframe('pics.shtml','main')" onmouseover="menupic.src='pics_roll.bmp'" onmouseout="menupic.src='menu.bmp'">
<area shape="rect" coords="252,0,363,34" href="javascript: loadframe('events.shtml','main')" onmouseover="menupic.src='events_roll.bmp'" onmouseout="menupic.src='menu.bmp'">
<area shape="rect" coords="363,0,517,34" href="javascript: loadframe('guestbook.shtml','main')" onmouseover="menupic.src='guestbook_roll.bmp'" onmouseout="menupic.src='menu.bmp'">
</map>
</BODY>
</HTML>