View Full Version : IFrames in Geocities
dusty
11-10-2006, 07:01 AM
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.
codeexploiter
11-10-2006, 08:33 AM
Okay, first of all, is it even possible to have IFrames in Geocities?
geocities does support Iframes.
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
<iframe src="http://www.google.com" height="150" width="100%" frameborder="0"></iframe>
you can check this site (http://www.htmlhelp.com/reference/html40/special/iframe.html) for getting more details about Iframes
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.
<?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
jscheuer1
11-10-2006, 08:45 AM
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:
<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>
dusty
11-10-2006, 05:43 PM
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 (http://www.geocities.com/dustycat66)
How do I get the Home, Dolls, Bases...etc. to be buttons so the pages they are linked to show up in the IFrame?
jscheuer1
11-10-2006, 07:09 PM
Custom image 'button' that is actually a link, or an input 'button' element?
If you are using the former:
<a href="yet_another_of_my_other_Geocities_pages.htm" target="m_frame"><img src="button.gif" border="0"></a>
the latter:
<form action="yet_another_of_my_other_Geocities_pages.htm" target="m_frame"><input type="submit" value="My Other Page"></form>
dusty
11-11-2006, 09:24 PM
okay, the first one...but I need the image to be in a different place than right below the IFrame. Is that possible?
jscheuer1
11-11-2006, 09:48 PM
You can put it anywhere on the page that you like.
dusty
11-11-2006, 09:55 PM
how? sorry, I'm not good with this stuff.
jscheuer1
11-11-2006, 10:19 PM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.