468,544 Members | 1,753 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,544 developers. It's quick & easy.

Cant get menu script to to put linked page in the same frame.

Cant get menu script to to put linked page in the same frame. I am
new to Java
and I am wondering what am I doing wrong? below are my java applet
file, frame.html file, and my text file and one of my link file that
should load next to the menu on the same page. And Thank You in
advance.

Here is my menu applet:

<html>
<head>
<title>tree</title>
</head>
<body>
<applet code=it3free.class width=200 height=300>
<param name=copyright value="Image Intelligence Ltd. 1998
(www.imint.com)">
<param name=menufile value="menu.txt">
<param name=textfont value="Helvetica">
<param name=textsize value=11>
<param name=colourscheme value=7>
</applet></body>

My frame.html:

html>
<head>
<script language="JavaScript">
function checkFrames()
{
myframe = "myframe.htm";
top_page = top.location.toString().toLowerCase();
if (top_page.indexOf(myframe)==-1)
top.location = myframe;
}

</script>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Kenneth Montgomery</title>
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation"
src="animate.js">
</script>
</head>

my menu.txt file:

html>
<head>
<script language="JavaScript">
function checkFrames()
{
myframe = "myframe.htm";
top_page = top.location.toString().toLowerCase();
if (top_page.indexOf(myframe)==-1)
top.location = myframe;
}

</script>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Kenneth Montgomery</title>
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation"
src="animate.js">
</script>
</head>

One of my link files:

<html>
<head>
<script language="JavaScript">
function checkFrames()
{
myframe = "myframe.htm";
top_page = top.location.toString().toLowerCase();
if (top_page.indexOf(myframe)==-1)
top.location = myframe;
}

</script>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Kenneth Montgomery</title>
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation"
src="animate.js">
</script>
</head>

<body onload="dynAnimation()" language="Javascript1.2">

<p class="MsoHeader" style="tab-stops: 99.0pt center 3.0in left 4.75in
right 6.0in; position: relative !important; visibility: hidden"
language="Javascript1.2" align="center">&nbsp;</p>
<p class="MsoHeader" style="tab-stops:99.0pt center 3.0in left 4.75in
right 6.0in" align="center"><span
style="font-size:14.0pt;mso-bidi-font-size:10.0pt;font-family:Garamond;
background:silver;mso-bidi-font-weight:bold">Kenneth Montgomery<o:p>
</o:p>
</span></p>
<p class="MsoHeader" style="tab-stops: 99.0pt center 3.0in left 4.75in
right 6.0in; position: relative !important; visibility: hidden"
align="center" dynamicanimation="fpAnimflyRightFP1"
id="fpAnimflyRightFP1" language="Javascript1.2"><span
style="font-size:14.0pt;mso-bidi-font-size:10.0pt;font-family:Garamond;
background:silver;mso-bidi-font-weight:bold">1414 Shiloh Road, Apt.
2923<o:p>
</o:p>
</span></p>
<p class="MsoHeader" style="tab-stops: 99.0pt center 3.0in left 4.75in
right 6.0in; position: relative !important; visibility: hidden"
align="center" dynamicanimation="fpAnimflyRightFP2"
id="fpAnimflyRightFP2" language="Javascript1.2"><span
style="font-size:14.0pt;mso-bidi-font-size:10.0pt;font-family:Garamond;
background:silver;mso-bidi-font-weight:bold">Plano, Texas
75074-8023<o:p>
</o:p>
</span></p>
<p class="MsoHeader" style="tab-stops: 99.0pt center 3.0in left 4.75in
right 6.0in; position: relative !important; visibility: hidden"
align="center" dynamicanimation="fpAnimflyRightFP3"
id="fpAnimflyRightFP3" language="Javascript1.2"><span
style="font-size:14.0pt;mso-bidi-font-size:10.0pt;font-family:Garamond;
background:silver;mso-bidi-font-weight:bold">Home Phone:
972-881-4768<o:p>
</o:p>
</span></p>
<p class="MsoHeader" style="tab-stops: 99.0pt center 3.0in left 4.75in
right 6.0in; position: relative !important; visibility: hidden"
align="center" dynamicanimation="fpAnimflyRightFP4"
id="fpAnimflyRightFP4" language="Javascript1.2"><span
style="font-size:14.0pt;mso-bidi-font-size:10.0pt;font-family:Garamond;
background:silver;mso-bidi-font-weight:bold"><a
href="mailto:ba**********@yahoo.com">E-mail:<span style="mso-spacerun:
yes">&nbsp; </span>ba**********@yahoo.com</a><o:p>
</o:p>
</span></p>
<p class="MsoHeader" style="tab-stops: 99.0pt center 3.0in left 4.75in
right 6.0in; position: relative !important; visibility: hidden"
align="center" dynamicanimation="fpAnimflyRightFP5"
id="fpAnimflyRightFP5" language="Javascript1.2">&nbsp;</p>
<p class="MsoHeader" style="tab-stops: 99.0pt center 3.0in left 4.75in
right 6.0in; position: relative !important; visibility: hidden"
align="center" dynamicanimation="fpAnimflyRightFP6"
id="fpAnimflyRightFP6" language="Javascript1.2">&nbsp;</p>
<p class="MsoHeader" style="tab-stops: 99.0pt center 3.0in left 4.75in
right 6.0in; position: relative !important; visibility: hidden"
align="center" dynamicanimation="fpAnimflyRightFP7"
id="fpAnimflyRightFP7" language="Javascript1.2"><img border="0"
src="rooster.jpg" width="128" height="128"></p>

</body>

</html>
Jul 20 '05 #1
1 2932
In article <72*************************@posting.google.com> ,
ba**********@yahoo.com enlightened us with...
Cant get menu script to to put linked page in the same frame. I am
new to Java
and I am wondering what am I doing wrong? below are my java applet
file, frame.html file, and my text file and one of my link file that
should load next to the menu on the same page. And Thank You in
advance.

Here is my menu applet:
I assume this is the html page that has the menu in it, so...

<html>
<head>
<title>tree</title>
</head>
<body>


<base target="mainFrameName">
Where mainFrameName is the name of the frame you want the links loaded
in, as named in your frameset.
Note that this will make ALL links in that html page target the
mainFrameName frame unless you specify a different target for them.

--
--
~kaeli~
Why did kamikaze pilots wear helmets?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by MP Multimedia | last post: by
2 posts views Thread by SiNi | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.