Can't get my home page to load correctly after clicking link

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
rudy
Mega User
Mega User
Posts: 161
Joined: Thu Jan 15, 2004 11:39 pm
Location: Scottsdale, Arizona
Contact:

Can't get my home page to load correctly after clicking link

Post by rudy »

Never mind this, I found the answer... just added the JavaScript below and it took care of the problem.. This JavaScript will help you "break-out-of-frames" if you need to.

<script language="JavaScript">
<!--
if (parent.frames.length > 0)
{
parent.location.href = location.href;
}
-->
</script>



My home page URL is: http://www.networkdriven.com/index22.html

If you go to the URL shown above, then use the gold scrollbar to slide down the page you will see some blue login buttons.
Select the one that says "Windows XP". Then in the login dialog box that opens, put for the user ID and for the password.

Next, click on the Exam 5 button.
(never mind the links under the Milonic menu as I will delete them when I get everything working).

Click the "Home" link on the Milonic menu. It will take you back to my home page, but notice the 1/4 inch white bar at the top of the page.

Here is the syntax I have in the "menu_data.js" file:under the Milonic menu:

with(milonic=new menuname("Main Menu")){
style=windows98style;
top=10;
left=205;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=http://www.networkdriven.com/index22.html;");
aI("text=Drivers;showmenu=Samples;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;");
aI("text=Links;showmenu=Links;");
aI("text=My Milonic;showmenu=My Milonic;");

Notice the Home url above... this is the full path to this page. The 1/4 inch on the home page when it returns is left over from the framed page it came from. Need to get it to "break outa frames" when it leaves the page where the Milonic menu is on and returns to the home page.

Any help would be appreciated.

Larry
Last edited by rudy on Fri Jan 16, 2004 12:29 am, edited 2 times in total.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Try...

Code: Select all

aI("text=Home;url=http://www.networkdriven.com/index22.html;target=_blank;");
John
Post Reply