In article <16_Uc.10110$yh.8485@fed1read05>,
no***@noone.com enlightened us
with...
I figured it out and have it working fine, except for one thing--apparently
I need to insert the code for the menu for every last HTML file I have
practically.
This is why using templates for your pages is a good idea. You change the
template and all pages that use it are updated automagically. I like
Dreamweaver. You can get DWMX off Ebay for like $100. IMO, it's well worth
the money. I can redesign my template and update my whole site (hundreds of
pages) in minutes.
DWMX also takes care of the link issue - it makes the links for you. Change
the location of a file and it updates all the links appropriately. It also
has a function called "change links sitewide" (or something similarly
phrased) that lets you change all links from one spot to another.
I never want to develop and maintain a large site without DW.
That is, with (c), have the menus in a left-hand side page with everything
opening on the right-hand side in a "frames" page. The problem with this,
though, is that when you go 2-3 levels deep you run out of space in the left
frame, and it gets ugly. Also, the special instructions given for if you
want to design them in a frameset--frankly, I'm not getting them.
IMO, frames suck major ass for internet sites, but my intranet app uses them
and it uses HVMenu. What don't you get? I have a top frame, a left frame
where the menu is, and a main frame. The menu pops into the main frame. The
frames are invisible to my users.
The appropriate lines from my files:
================================================== ======================
exmplmenu_var.js:
var FirstLineFrame='leftFrame'; // Frame where first
level appears
var SecLineFrame='mainFrame'; // Frame where sub
levels appear
var DocTargetFrame='mainFrame'; // Frame where target
documents appear
var TargetLoc='myMenu'; // span id for relative
positioning
================================================== ======================
frameset:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Order Processing System</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<%
// get the value of the session var that tells us the name of the frame to
load. If none, loads home.jsp
Object pageToLoad = session.getAttribute("page");
if (pageToLoad == null)
{
pageToLoad = "home.jsp";
}
%>
<frameset rows="51,*" cols="*" frameborder="no" border="0" framespacing="0"
class="f">
<frame src="top.jsp" name="topFrame" scrolling="no" noresize >
<frameset cols="83,*" frameborder="no" border="0" framespacing="0"
class="f">
<frame src="left.jsp" name="leftFrame" scrolling="no" noresize>
<frame src="<%= pageToLoad %>" name="mainFrame">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
================================================== ======================
left.jsp (left frame):
<base target="mainFrame">
<script language="javascript">
function go(){return}
</script>
<script language="javascript" src="exmplmenu_var.js"></script>
<script language="javascript" src="menu_com.js"></script>
<div name="myMenu" id="myMenu" style='position:absolute; top:-1; left:0;
width:83px; height:18px;'><img src='spacer.gif' width='82' height='18'></div>
<p> </p>
================================================== ======================
In every page that loads in main frame:
<script language="javascript" type="text/javascript">
function doLoad()
{
// check that this is in the frameset properly
if (typeof parent.frames['topFrame'] != "object")
{
// reload
top.location.href="index.jsp";
}
else
{
parent.frames['topFrame'].document.location.reload();
if(parent.frames[0]&&parent.frames['leftFrame'].Go)
{
parent.frames['leftFrame'].Go();
}
}
}
</script>
....
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
bgcolor="#ffffff" onload="doLoad()" onunload="if (parent.frames['leftFrame'])
parent.frames['leftFrame'].UnLoaded()">
================================================== ======================
Hope this helps.
--
--
~kaeli~
The secret of the universe is @*&^^^ NO CARRIER
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace