View Full Version : Layer gotoURL target question

04-11-2005, 03:47 PM
First of all I don't know any java or much html. I just use frontpage 2003.

SO my question is, is it possible to have a layer that onmouseslick goes to url "x" can i choose the target frame and how would i go about doing that.

Here is the HTML of a test.. The Blue signifies the layer link that i want the target information, and the red is the targeted Frame


<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<!-- #BeginEditable "doctitle" -->
<title>New Page 1</title>
<!-- #EndEditable -->
<script language="JavaScript">
function FP_goToURL(url) {//v1.0
// -->

<body background="../My%20Documents/My%20Webs/Scenic002.jpg" style="background-attachment: fixed" text="#FFFFFF">

<div style="position: absolute; left: 333px; top: 20px; width: 212px; height: 192px; z-index: 1" id="layer1" onclick="FP_goToURL(/*href*/'x')">

<p><iframe name="I1" src="page2.htm">
Your browser does not support inline frames or is currently configured not to display inline frames.



04-11-2005, 04:07 PM
In your JavaScript function (not the same as Java, by the way :p), try to change the line window.location=url; to window.I1.location=url;, and it should work.