Is there any way of making an existing HTML file load itself up in a given frameset if it is navigated to directly.
For example I would like the Example here to load up using this frameset
Printable View
Is there any way of making an existing HTML file load itself up in a given frameset if it is navigated to directly.
For example I would like the Example here to load up using this frameset
Yeah I do this on my site.
We give out this link to people :
http://www.everymanonline.com/softwa...yagot/features
And index loads it up into the frameset.
You can put into the features page then that if the top location = the current page's location then to reload the current page inside that frameset.
Anyway, this is our index.htm :
Code:<HTML>
<head>
<title>Everyman Technologies</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script language="JavaScript"><!--
document.write('<frameset cols="80,*" frameborder="0" border="0" framespacing="0">' );
document.write(' <frame name="leftFrame" scrolling="NO" noresize src="indexLeft.htm">' );
document.write(' <frameset rows="110,*" frameborder="NO" border="0" framespacing="0">' );
document.write(' <frame name="top" scrolling="NO" noresize src="indexTop.htm" >' );
document.write(' <frame name="main" src="' + (location.search ? location.search.substring(1):"indexBottom") + '.htm">' );
document.write(' </frameset>' );
document.write('<\/frameset>' );
//--></script>
</html>
Hmm - I'd rather not edit the 400 or so files...is it possible to do this with something in the stylesheet.css?
Also - what do you think of the frame version?
You can't do that sort of thing with CSS, just put all that lot (minus the script tags) in a file named "check.js" or something, then in the <head> put <script type="text/javascript" src="check.js"></script> I'm sure you can use search/replace to do it easily?
Write an application to edit the files for you.Quote:
Originally posted by MerrionComputin
Hmm - I'd rather not edit the 400 or so files
I always write applications to do anything tedious :)