Results 1 to 9 of 9

Thread: IFrames in Geocities

  1. #1
    Join Date
    Nov 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default IFrames in Geocities

    Okay, first of all, is it even possible to have IFrames in Geocities?

    If so, how would I go about coding it, when I haven't coded other things on my site, I just use the Pagebuilder tools Geocities provides. Is there a code I can copy and edit to fit my personal pages?

    Also, I think I've gotten a basic understanding of putting two pages into one (which would be the whole point of an IFrame)...but I have a navigation bar outside of the IFrame, so how would I make it so if you click a link outside the IFrame, the page shows up within the IFrame.

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Quote Originally Posted by dusty
    Okay, first of all, is it even possible to have IFrames in Geocities?
    geocities does support Iframes.

    Quote Originally Posted by dusty
    If so, how would I go about coding it, when I haven't coded other things on my site, I just use the Pagebuilder tools Geocities provides. Is there a code I can copy and edit to fit my personal pages?
    With a bit learning of HTML you can easily incorporate the Iframe in your page.

    A very simple example is below
    Code:
    <iframe src="http://www.google.com" height="150" width="100%" frameborder="0"></iframe>
    you can check this site for getting more details about Iframes

    Quote Originally Posted by dusty
    Also, I think I've gotten a basic understanding of putting two pages into one (which would be the whole point of an IFrame)...but I have a navigation bar outside of the IFrame, so how would I make it so if you click a link outside the IFrame, the page shows up within the IFrame.

    Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    </head>
    
    <body>
    <a href="http://www.yahoo.com" target="if1">yahoo</a> | <a href="http://www.google.com" target="if1">google</a> | 
    <br><br>
    <iframe src="http://www.google.com" frameborder="0" height="280" width="100%" name="if1"></iframe>
    </body>
    </html>
    I think from the above example you can find it out

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    First off, last I checked, Geocities (at least within a certain category of sites that they offer) doesn't allow external content on the sites that they host. It may be possible to circumvent this but, that would be illegal and probably get you into trouble with Geocities. The way that they prevent this is by putting scripts on your pages that either check the domain of the iframe's source and disable them if their source is off site, or simply disable all iframes. They do a similar thing with frames.

    If they do allow iframes and frames that reference pages on your site, then you can target an iframe with a link to one of these pages using the iframe's name and the target attribute of the link, example:

    Code:
    <iframe name="m_frame" src="another_of_my_other_Geocities_pages.htm"></iframe>
    <a href="yet_another_of_my_other_Geocities_pages.htm" target="m_frame">My Other Page</a>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Nov 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    okay, I got all of that, but how do I make it so you can click a button that will make the page within the IFrame to change?

    This is what I have so far...Twisted Kitty

    How do I get the Home, Dolls, Bases...etc. to be buttons so the pages they are linked to show up in the IFrame?
    Last edited by dusty; 11-10-2006 at 06:06 PM.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Custom image 'button' that is actually a link, or an input 'button' element?

    If you are using the former:

    HTML Code:
    <a href="yet_another_of_my_other_Geocities_pages.htm" target="m_frame"><img src="button.gif" border="0"></a>
    the latter:

    HTML Code:
    <form action="yet_another_of_my_other_Geocities_pages.htm" target="m_frame"><input type="submit" value="My Other Page"></form>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Nov 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    okay, the first one...but I need the image to be in a different place than right below the IFrame. Is that possible?

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You can put it anywhere on the page that you like.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Nov 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    how? sorry, I'm not good with this stuff.

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It depends upon how you layout your pages in general. I use a text editor. If you look at the raw code in a text editor, you will see that the locations of things on the page roughly follows their position in the markup. Just put it wherever you like.

    If you use a WYSIWYG type editor like DW or FP, then you can just insert it wherever you like on the page in the usual manner for a linked image.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •