D
Dazzz
I've been using the code below to load two frames into a frameset
based on a string passed from the previous page. Works fine ... but
.... now I need to load all three frames from the string.
I tried to change the code to accept the new variable but just don't
understand it enough to know where I'm going wrong ... so ... would
love it if someone could tell me what I need to change or point my in
the right direction???
Cheers ... Dazzz
<script language="JavaScript"><!--
passed = "" + window.location.search;
if (passed != "" && passed != "undefined") passed =
passed.substring(1);
function loadFrames() {
top.Toc.location = top.passed.substring(0,top.passed.indexOf(';'));
top.Content.location =
top.passed.substring(top.passed.indexOf(';')+1);
}
//--></script>
</head>
<frameset rows="80,*" cols="*" frameborder="NO" border="0"
framespacing="0" onLoad="top.loadFrames()" >
<frame src="banner.htm" name="Banner" scrolling="NO" noresize >
<frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="javascript:' '" name="Toc" scrolling="NO" noresize>
<frame src="javascript:' '" name="Content">
</frameset>
</frameset>/
based on a string passed from the previous page. Works fine ... but
.... now I need to load all three frames from the string.
I tried to change the code to accept the new variable but just don't
understand it enough to know where I'm going wrong ... so ... would
love it if someone could tell me what I need to change or point my in
the right direction???
Cheers ... Dazzz
<script language="JavaScript"><!--
passed = "" + window.location.search;
if (passed != "" && passed != "undefined") passed =
passed.substring(1);
function loadFrames() {
top.Toc.location = top.passed.substring(0,top.passed.indexOf(';'));
top.Content.location =
top.passed.substring(top.passed.indexOf(';')+1);
}
//--></script>
</head>
<frameset rows="80,*" cols="*" frameborder="NO" border="0"
framespacing="0" onLoad="top.loadFrames()" >
<frame src="banner.htm" name="Banner" scrolling="NO" noresize >
<frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="javascript:' '" name="Toc" scrolling="NO" noresize>
<frame src="javascript:' '" name="Content">
</frameset>
</frameset>/