Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:48
Can't get my home page to load correctly after clicking link
Poster: rudy
Dated: Thursday January 15 2004 - 23:06:53 GMT
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