Jump to content
xisto Community
kvarnerexpress

How Do I Make A Frame In The Index.html?

Recommended Posts

I have a forum and just bought a domain. The forum is free and is hosted as a subdomain and has a relly long url. I wanted to make a index.html file for my domain and host it. I would like to make a frame in the index.html that would show the forum. I would like the index.html to look like the actual forum but is acutally just a frame. All i have is a text editor. How do i make a frame in the index.html that shows the forum?thankskvarnerexpress

Share this post


Link to post
Share on other sites

Maybe this can help you :)

This peace of html code creats iFrame in page

<div id="iFrame1" style="position:absolute; left:5px; top:5px; z-index:0"><iframe name="iFrame1" width=267 height=348 src="forum.php" scrolling="yes" frameborder="1"></iframe></div>

Notice from snlildude87:
Remember to use the quote tags whenever using code

Edited by snlildude87 (see edit history)

Share this post


Link to post
Share on other sites

Perhaps you could do a php include of the forum page? I forgot how to do frames completely after 7th grade, sorry :)

Share this post


Link to post
Share on other sites
<frameset border="0" frameborder="0"><frame src="" marginwidth="0" marginheight="0" noresize frameborder="0" framespacing="0"></frame></frameset>

Make sure not to put it inbetween the body tag.

Share this post


Link to post
Share on other sites

Some older browsers may not support frames, so after you've put truefusion's code between your head tags, place this between the two frameset tags:

<noframes><body>Your browser does not support frames! Redirecting...<script> window.location = "http:/your.com/~longurl/"; </script></body></noframes>

This must got between the frameset tags and you'll have to make the doctype html 4.01 framesets.

Share this post


Link to post
Share on other sites

You could use Frames (or iframes), <PHP include file//>, Server-side includes or just simpily redirect users straight to the forums:

<meta http-equiv="refresh" content="0; url=http://webdesign.about.com/">

Share this post


Link to post
Share on other sites

I would suggest that you not use frames, but if you must, cmatcmextra's suggestion is best. Instead of frames, I would use either php includes, or just a simple redirection (preferred) to the full url. Also, you could set up you DNS settings for your domain to forward directly to the forums, and even set up a "CNAME" (i think that is what it is called) that makes your subdirectory the same as a given domain.I hope something helps...good luck!!

Share this post


Link to post
Share on other sites

I suggest not to use frames because of their properties. I mean that if you want to move your site to another host maybe some add ons will destroy your page 100%....I have a special experiance on unlucky things...Try to use layer on your page with JavaScript ......Good luckarispap2003

Share this post


Link to post
Share on other sites

This works for me... simply include the http reference to pick up your live forum. This code shows the size as a percentage. It could also be in em's or px. Iframe tags are css2 and css1 reccomendations.

<iframe id="" src="http://forums.xisto.com/no_longer_exists/; width="40%" height="40%"></iframe>

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.