HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
iframe question
Goto page 1, 2  Next
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
autumn



Joined: 19 Jul 2007
Posts: 13

PostPosted: Thu Jul 19, 2007 4:31 pm     iframe question Reply with quote

Hi, I'm in the process of building a website and I have a little problem with iframes. I know that this question has been covered numerous times in here but I still don't get how it works. My website has several pages beside the main page which is index.html What I want is that whenever my visitors click on a link to a page of my website, it would open in the iframes only and not having to refresh the whole page. I hope it makes sense and please help!!!
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8268
Location: Castle Rock CO USA

PostPosted: Fri Jul 20, 2007 2:02 am     Reply with quote



Make sure to name your frames and then target those names.

_________________
Corey
Toll Free Fax Numbers | Merchant Accounts | MerchantAccount PodCast
autumn



Joined: 19 Jul 2007
Posts: 13

PostPosted: Fri Jul 20, 2007 6:15 am     Reply with quote

How do I target them? Sorry if this is such a dumb question, I'm really new to this and I'm not very good with html; therefore I'm using a program called "Webpage Maker V2" to design my website.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8268
Location: Castle Rock CO USA

PostPosted: Fri Jul 20, 2007 6:46 am     Reply with quote

Target:
Code:
<a href="http://www.example.com" target="framename">Example</a>

_________________
Corey
Toll Free Fax Numbers | Merchant Accounts | MerchantAccount PodCast
autumn



Joined: 19 Jul 2007
Posts: 13

PostPosted: Fri Jul 20, 2007 8:13 am     Reply with quote

I've got that code from one of the thread in here but I still don't get how you do it. I want to target my frames somewhat similar to this website:

http://www.geocities.com/forever_anne_heung/
just a random webpage I picked

How do I go to target frames in frames? in other word, how do I target links inside the frames? Sorry for the trouble but I would really appreciate your help!
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8268
Location: Castle Rock CO USA

PostPosted: Fri Jul 20, 2007 10:08 am     Reply with quote

I looked at the source code but that did not have an <iframe> tag.
Code:
<iframe src="http://www.example.com" height="450" width="200" name="framename"></iframe>
is an example of the iframe and then you would target the name framename in your <a> tag.

_________________
Corey
Toll Free Numbers | Merchant Accounts
autumn



Joined: 19 Jul 2007
Posts: 13

PostPosted: Fri Jul 20, 2007 11:08 am     Reply with quote

Can you help me with the html please! I tried to do it but it just doesn't work. I'm clueless when it comes to html Sad

This is my html code


and this is what I get


how can I link page 3 to another page (i'll just call it "page4") which of course also load into the same iframe?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8268
Location: Castle Rock CO USA

PostPosted: Sat Jul 21, 2007 4:27 am     Reply with quote

In page three, you will have links that target innerframe
Code:
<a href="http://www.example.com" target="innerframe">Example</a>


_________________
Corey
Toll Free Fax Numbers | Mile High Merchant Accounts
autumn



Joined: 19 Jul 2007
Posts: 13

PostPosted: Sat Jul 21, 2007 6:52 am     Reply with quote

Finally, now I get it. I have another question though. Instead of the text "page3", suppose if I have an image at its place, how do I link that?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8268
Location: Castle Rock CO USA

PostPosted: Sat Jul 21, 2007 7:14 am     Reply with quote

Create an HTML page and insert the image into that. that way you can still control the information in that page

_________________
Corey
Toll Free Fax Numbers | Mile High Merchant Accounts
autumn



Joined: 19 Jul 2007
Posts: 13

PostPosted: Sat Jul 21, 2007 7:52 am     Reply with quote

can you still explain that a bit further please,sorry! I really don't know where to start. What I get from your statement is that the image needs to be on a page of its own? And if I have more than one image, then I need to create HTML page for each of those?
autumn



Joined: 19 Jul 2007
Posts: 13

PostPosted: Sat Jul 21, 2007 9:08 am     Reply with quote

Oh, never mind! I think I know how to insert the images. However, I encounter another problem, I hope you can help. Now how can I target that image to another page which also would open in the same iframes? I put in the iframes code and when I clicked on the image, it opened to the page I wanted but that page doesn't seem to stay in the iframes box.
autumn



Joined: 19 Jul 2007
Posts: 13

PostPosted: Sat Jul 21, 2007 9:33 am     Reply with quote

Wow, i'm so happy I finally figured it out. I'm getting the hang of these HTML codes. I can't thank enough for helping me, appreciate it!!! Just want to add that although I kind of get how HTML works, I might have problems now and then during the process of building my website. So I might be back in this forum asking more questions about HTML. Anywayz,just want to comment that this forum is so informative, a great web help to newbie like me, definitely will check back for more tips and info on web designing.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8268
Location: Castle Rock CO USA

PostPosted: Sat Jul 21, 2007 11:58 am     Reply with quote

Glad you got it. Remember it is always good to create a new post when you have a new question and if you can, I would recommend to stay away from (i)frames, especially if you are going to rely on search engines a lot. Included Content would be better.

_________________
Corey
Toll Free Fax Numbers | Merchant Accounts | MerchantAccount PodCast
autumn



Joined: 19 Jul 2007
Posts: 13

PostPosted: Thu Aug 02, 2007 8:08 pm     Reply with quote

Hi, sorry for bothering you again but I need help. I didn't start a new thread because my question is about iframes. How can I get a page (let's just call it page1) to load into my "Main" page? so that when people type in my web addresss, they would automatically see page1 on the main page's frame box. I used the "target" code but it didn't work.

These codes are from my "Main" page

Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial