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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with multiple links on an image

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello. I hope someone can help me. I'm only a novice so bare with me. Here's the problem:
I have mutliple links on an image. these links call up my newWindow function. The problem is that I can only click on one of the links once. What I mean is that I click on link 75 on my image, it opens up, close it and I click on link 76(on the same image) and nothing loads up. Is there a way around this? (See code below for further clarification)
Also, how do I change my paths( file:///F:/temp/tukwebtemp/75.htm) so that it is only 75.htm. I have tried (..75.htm) and it doesn't work even though all files are in the same directory.
Thanks in advance for any help.
<html>
<head>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1252&quot;>
<meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 4.0&quot;>
<meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;>
<title>New Page 1</title>

<SCRIPT LANGUAGE=&quot;Javascript&quot;>
<!--Hide from old browsers
function newWindow(URL){
newWindow = window.open(URL,'newWin',
'toolbar=no,menubar=no,location=no,scrollbars=yes,width=500,height=500,left=10,top=35')
}
//-->
</SCRIPT>


</head>

<body>
<p align=&quot;center&quot;><img border=&quot;0&quot; src=&quot;keysection1.jpg&quot; align=&quot;left&quot; width=&quot;79&quot; height=&quot;125&quot;><map name=&quot;FPMap0&quot;>


<area href=&quot;javascript:newWindow('file:///F:/temp/tukwebtemp/75.htm')&quot; shape=&quot;rect&quot; coords=&quot;23, 109, 50, 124&quot;>
<area href=&quot;javascript:newWindow('file:///F:/temp/tukwebtemp/76.htm')&quot; shape=&quot;rect&quot; coords=&quot;29, 82, 55, 93&quot;>
<area href=&quot;javascript:newWindow('file:///F:/temp/tukwebtemp/77.htm')&quot; shape=&quot;rect&quot; coords=&quot;30, 103, 67, 83&quot;></map>


<img border=&quot;0&quot; src=&quot;section1.jpg&quot; usemap=&quot;#FPMap0&quot; width=&quot;325&quot; height=&quot;379&quot;></p>

</body>

</html>


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top