Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hot Spot & behavior

Status
Not open for further replies.

skitten78

Technical User
Joined
Nov 16, 2001
Messages
2
Location
US
Hi I have an image map in dreamweaver and I am trying to use a hot spot for a behavior- opening a new browser window but can't get it to work. I don't have anything in the link or target areas of the hot spot properties....


Any idea what I'm doing wrong? Thanks very much :)
 
This "should" work.

<script language=&quot;JavaScript&quot;>
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<img src=&quot;upc.jpg&quot; width=&quot;300&quot; height=&quot;204&quot; usemap=&quot;#Map&quot; border=&quot;0&quot;><map name=&quot;Map&quot;><area shape=&quot;rect&quot; coords=&quot;47,95,140,154&quot; href=&quot;#&quot; onClick=&quot;MM_openBrWindow('
All I did was insert picture, select the picture, insert a hotspot from the image preferences hotspot tool, and choose the open window behavior from the behaviors menu.

Hope it works for you to =)

Good luck!
 
Thanks so much!
I actually had fixed the problem. It didn't work the first time, no idea why... so then I made another random page and just inserted some link to see if I was doing it right, which I was.

So I ended up doing it over again and somehow it worked that time.

Thanks for your time! I will keep that code handy!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top