Help - Search - Members - Calendar
Full Version: Display my webpage in frames
MSFN Forums > Coding, Scripting and Servers > Web Development (HTML, Java, PHP, ASP, XML, etc.)

   


Google Internet Forums Unattended CD/DVD Guide
spacesurfer
Hello, all. I've searched google for this issue but I'm having trouble with terminology. I don't know what to call it to search for it.


I have my webpages in frames. The left frame is just a menu and the right frame is the main content. Now, I want to prevent people opening the right frame by itself. Is there a script that will check if the frame is loaded by itself?

-X-
Search for javascript frames parent.
ripken204
http://webpages.charter.net
??

looking at this site i see no need for frames.
you could make things a bit better by getting rid of them.
spacesurfer
The reason I had frames was for the right side navigation menu. It was the same for all sites so I didn't want to put the same code on every page; and I wanted it fixed. I had trouble getting a fixed menu in IE, while it worked in Firefox.

What you saw is the latest version without the true frames. I got rid of the frames and placed an IFrame instead. That was a better solution, although now it's not fixed. It will be better for search engine indexing. (But I'm looking to host it on a domain rather than Charter.)

Also, I'm still learning HTML so it will take some time before for improvements. I just read about DIV blocks and I can probably use that instead of tables for my layout.

Thanks for visiting the site.
ripken204
yes i was just about to suggest div tags.
you could then have a navigation file and include that into each page.
PC_LOAD_LETTER
1 line of php could fix this right up (assuming charter allows it -if they dont they suck)
CODE
<?php @include("leftframe.htm"); ?>
ripken204
^^ exactly smile.gif
spacesurfer
they don't. they suck. enough said.

(I'm adding more pages - on Mathematics. It's a slow process because of the equations and drawings.)
PC_LOAD_LETTER
you could use a javascript includes its a dirty backwards way to include html but since its depaendant on the browser and not the webhost, it should work regardless
http://webdesign.about.com/od/javascript/h...sincludehtm.htm





Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.