|
|
|
|
![]() ![]() |
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...
This post has been edited by Johnny: Jul 31 2005, 11:48 AM |
|
|
|
Jul 30 2005, 06:56 AM
Post
#2
|
|
|
Incest is a game the whole family can play. ![]() 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. |
|
|
|
Jul 30 2005, 09:29 AM
Post
#3
|
|
|
Incest is a game the whole family can play. ![]() 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>
|
|
|
|
Jul 30 2005, 11:40 AM
Post
#4
|
|
|
Ephesians 6:10-17 ![]() Group: [MODERATOR] Posts: 1,898 Joined: 22-June 05 From: The World of Gentoo Member No.: 8,528 ![]() |
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> |
|
|
|
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) This post has been edited by cmatcmextra: Aug 5 2005, 02:12 PM |
|
|
|
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 |
|
|
|
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 |
|
|
|
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.
|
|
|
|
![]() ![]() |
Similar Topics