Loading frames into a generic frameset

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>/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top