Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> How Do I Make A Frame In The Index.html?
kvarnerexpress
post Aug 21 2005, 12:23 AM
Post #1


Super Member
*********

Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



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?
thanks

kvarnerexpress
Go to the top of the page
 
+Quote Post
sader
post Aug 21 2005, 12:37 AM
Post #2


Member [Level 2]
*****

Group: Members
Posts: 86
Joined: 18-July 05
From: Lithuania
Member No.: 9,570



Maybe this can help you smile.gif

This peace of html code creats iFrame in page

CODE
<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


This post has been edited by snlildude87: Aug 21 2005, 12:40 AM
Go to the top of the page
 
+Quote Post
biscuitrat
post Aug 21 2005, 12:57 AM
Post #3


Kween of Everything :)
***********

Group: Members
Posts: 1,052
Joined: 16-October 04
From: Houston, Tejas :D
Member No.: 1,774



Perhaps you could do a php include of the forum page? I forgot how to do frames completely after 7th grade, sorry sad.gif
Go to the top of the page
 
+Quote Post
truefusion
post Aug 21 2005, 01:11 AM
Post #4


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,918
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528



CODE

<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.
Go to the top of the page
 
+Quote Post
electriic ink
post Aug 21 2005, 07:59 AM
Post #5


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,223
Joined: 11-February 05
From: Heaven
Member No.: 3,709



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:

CODE
<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.
Go to the top of the page
 
+Quote Post
someguy
post Nov 2 2005, 12:28 PM
Post #6


Newbie [Level 2]
**

Group: Members
Posts: 31
Joined: 2-November 05
Member No.: 13,705



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

CODE
<meta http-equiv="refresh" content="0; url=http://webdesign.about.com/">
Go to the top of the page
 
+Quote Post
arboc7
post Nov 3 2005, 04:28 AM
Post #7


Advanced Member
*******

Group: Members
Posts: 123
Joined: 5-September 05
Member No.: 11,522



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!!
Go to the top of the page
 
+Quote Post
arispap2003
post Nov 13 2005, 05:49 PM
Post #8


Newbie [Level 1]
*

Group: Members
Posts: 12
Joined: 13-November 05
Member No.: 14,215



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 luck

arispap2003
Go to the top of the page
 
+Quote Post
jlhaslip
post Nov 14 2005, 09:15 PM
Post #9


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 4,083
Joined: 24-July 05
From: Linix, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol



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.

CODE

<iframe id="" src="http://www.jlhaslip.trap17.com/forum/" width="40%" height="40%"></iframe>


Hope this helps.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic