Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> A Question About Html Iframes, Need help in <iframe>
plumpShticks
post Jul 30 2005, 04:14 AM
Post #1


Newbie [Level 1]
*

Group: Members
Posts: 14
Joined: 30-July 05
Member No.: 10,015



We have an upcoming project in our class...I've a cool idea of lay out but i hav a problem. I'm using a lot of images. I need to embed my contents in those images (texts and graphics) using table cells... My friend told that there is a so called <iframe > tag to solve it but he doesn't know how.... Can you please send me some hot info about parameter and hows' of iframes? Samples would be great. Tnx...

Notice from Johnny:
Use a more descriptive title next time.


This post has been edited by Johnny: Jul 31 2005, 11:48 AM
Go to the top of the page
 
+Quote Post
electriic ink
post Jul 30 2005, 06:56 AM
Post #2


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

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



An iframe or an internal frame is a way of embedding another page within a web page. For instance if you have a page called iframe.htm with the following code in it:

CODE
<b> Hello </b>


and a page called index.htm with the following code in it:

CODE
<iframe src="iframe.htm" height="20" width="100"> Your browser does not support iframes and so this page cannot be displayed properly.</iframe>


If the browser supports iframes the Hello will come up with a nice big border around it and if it doesn't the error message will arise. I do not know how to remove the border.

Iframes are not recommended if you want your page to be indexed properly. They leave a border around the main content. An old webpage I created used iframes. Click here if you really want to see it.

If you ever have the opportunity to use php's include ""; function use that instead. Looks a lot cleaner and smarter and people won't know you've used it.
Go to the top of the page
 
+Quote Post
electriic ink
post Jul 30 2005, 09:29 AM
Post #3


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

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



Found out how you take away that ugly border round the iframe:

HTML
<iframe src="iframe.htm" height="20" width="100" frameborder="0"> Your browser does not support iframes and so this page cannot be displayed properly.</iframe>
Go to the top of the page
 
+Quote Post
truefusion
post Jul 30 2005, 11:40 AM
Post #4


Ephesians 6:10-17
Group Icon

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



Cmat you forgot one thing, making links load content into them.

You need to give the iframe a name, using the name attribute.

CODE

<iframe name="frame"></iframe>


Then using the target attribute you can send the info into that frame.

CODE

<a href="#" target="frame">Link</a>
Go to the top of the page
 
+Quote Post
Amezis
post Aug 2 2005, 07:38 PM
Post #5


Privileged Member
*********

Group: Members
Posts: 535
Joined: 14-February 05
From: Oslo, Norway
Member No.: 3,759



Also, another thing:

If you want to open a link in the whole page from the frame, remember to set the target to _top

CODE
<a href="http://www.link.com" target="_top">Link</a>


Instead of _top, you can also use _parent (if you have many frames inside each other, you may need to use that one to only open in the parent frame)

Notice from cmatcmextra:
Edited as per request



This post has been edited by cmatcmextra: Aug 5 2005, 02:12 PM
Go to the top of the page
 
+Quote Post
psychiccyberfrea...
post Aug 8 2005, 03:33 PM
Post #6


Super Member
*********

Group: Members
Posts: 425
Joined: 19-October 04
From: long island, ny
Member No.: 1,831



there's a great tutorial on this at nextdesigns.

http://www.nextdesigns.net/modules.php?nam...ls&file=iframes
Go to the top of the page
 
+Quote Post
moldboy
post Aug 15 2005, 10:43 PM
Post #7


Privileged Member
*********

Group: Members
Posts: 518
Joined: 29-April 05
From: Canada Eh?!?
Member No.: 6,408



It sounds like you want to type and place content on top of the images, and to the best of my knowledge that can't be done with iframe, like they said iframe is dessigned to place a page inside a page, wich if you don't have php can be handy but if you can use php it is better to use include as cmatcmextra said.

Umm if you do want to type ontop of the image there are really only two ways of doing this, the first being with a table as you entioned the other with css, and layers. The latter I can't help with but the table I can, post back if you would like me to elborate
Go to the top of the page
 
+Quote Post
wild20
post Mar 31 2006, 05:52 PM
Post #8


Never alone with Christ
*********

Group: Members
Posts: 647
Joined: 22-July 05
Member No.: 9,713



Wow this saved me from a lot of hard work. I was going to have to edit each and every page if I changed a link, now I can with an Iframe. But I needed to know how to make it open in the parent window. Thanks for the topic guys, it saved me from a LOT of work.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. where did you learn html from?(87)
  2. Does Anyone Know Where I Can Get A Free Html Maker(15)
  3. The Best And Free Website/html Editors + Text Editors(48)
  4. Html Tag For A Code Box(4)
  5. Html Countdown For Your Wallpaper For Your Computer?(5)
  6. Adding Rows & Columns In Html Table Using Javascript(1)
  7. Wanting To Touch Up/learn My Html Again(27)
  8. Learn Html Quick And Easy(14)
  9. Psd --> Editable Html(3)
  10. Help! Php Or Just Html?(13)
  11. Html Code Tester. Online Script(15)
  12. Where Is There A Good Site To Learn Web Html?(20)
  13. Has Anybody Tried Ms Expression Web Html Editor(3)
  14. Html Form!(4)
  15. Learn Html, Css, C And C++ Online For Free(12)
  1. Flash Media Into Html/css Website(1)
  2. Html Problem(9)
  3. What Is The Best Free Html Editor?(20)
  4. Add Flashing Inbox To Invisionfree Forum(2)
  5. Naming Web Page Files(9)
  6. Making A Picture Viewer Website(3)
  7. Sitepoint: The Ultimate Html Reference(0)
  8. Html, Xhtml, And Css, Sixth Edition (visual Quickstart Guide) Review(0)
  9. Html Based Emails On Hotmail(0)
  10. Flippingbook Html Edition(0)
  11. Create Dynamic Html/php Pages Using Simple Vb.net Code(1)
  12. Some Questions On Html(6)
  13. Accidently Deleted Template.html(1)