|
-
Mar 19th, 2003, 04:20 AM
#1
Thread Starter
Frenzied Member
HTML/CSS question
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
-
Mar 19th, 2003, 04:39 AM
#2
Retired VBF Adm1nistrator
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>
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Mar 19th, 2003, 12:43 PM
#3
Thread Starter
Frenzied Member
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?
-
Mar 20th, 2003, 07:03 AM
#4
Frenzied Member
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?
-
Mar 20th, 2003, 08:13 AM
#5
Retired VBF Adm1nistrator
Originally posted by MerrionComputin
Hmm - I'd rather not edit the 400 or so files
Write an application to edit the files for you.
I always write applications to do anything tedious
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|