School Project
ok how come when i have this code for a 2 separate frames; one with a navigation bar and one with a main page, how come the text in the main page code doesnt show up but the text in the navigation one does? Heres the navigation frame code:
<head>
<title></title>
<base target="mainwindow">
</head>
<body>
<a href="main.html">Homepage</a>
</body>
</html>
Heres the code for the main page:
<head>
<title>Maryland</title>
</head>
<frameset cols="15%","85%">
<frame src="menu.html" name="sidemenu">
<frame src="main.html" name="mainwindow" noresize scrolling="yes">
<body>
<p>Test</p>
</body>
</html>```
For me the "Test" inside the paragraph doesnt show up.
Can anyone help please? Id appreciate it as this is for a school proj on Maryland. Thanks
end3r
thats not what i want, i want it to be a frame on the left side with navigation links to get around the site, and on the right side be my main page and have it say the homepage info. for now i want it to say test to make sure i know its working. That iframe put hello outside a square box with navigation links. How does HBH have a frame on the side with links that say stuff like Home / News or HBH Services and then on the inside it has text? Why doesnt mine show me the text. I put the frameset inside the body tags but that just shows me hello. So why doesnt it work i need this so i dont fail a class. end3r
well here's what I would do. for the index.html, have it define two frames, something like this (you don't need a <BODY> section, just put it after the <HEAD> section):
<frame src="nav.html" name="nav" scrolling=yes>
<frame src="main.html" name="main" scrolling=yes>
</frameset>```
and then have nav.html be your navigation page and main.html be the default main page.
also, on the nav.html page you can have links that look like this:
```markup<a href="someotherpage.html" target="main">Some Other Page</a>```
and it will open it in the main part of the page.
hope this is what you were looking for, I've used this technique several times for my first websites. :D
end3r wrote: ok how come when i have this code for a 2 separate frames; one with a navigation bar and one with a main page, how come the text in the main page code doesnt show up but the text in the navigation one does? Heres the navigation frame code:
<head>
<title></title>
<base target="mainwindow">
</head>
<body>
<a href="main.html">Homepage</a>
</body>
</html>
Heres the code for the main page:
<head>
<title>Maryland</title>
</head>
<frameset cols="15%","85%">
<frame src="menu.html" name="sidemenu">
<frame src="main.html" name="mainwindow" noresize scrolling="yes">
<body>
<p>Test</p>
</body>
</html>```
For me the "Test" inside the paragraph doesnt show up.
Can anyone help please? Id appreciate it as this is for a school proj on Maryland. Thanks
end3r
Because you don't have a closing frameset tag (</frameset>)
Placebo: I thought that as well, but if you read the other posts in this forum, it still will not work. You cannot call the file from within itself like that. He'll need to make another file and than include both those files in the frames, as well as his column settings are wrong, it should be "val1, val2" not "val1", "val2".
Cheers, ~T