Go Back   Dynamic Drive Forums > General Coding > HTML
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 11-10-2006, 07:01 AM
dusty dusty is offline
New Comer (less than 5 posts)
 
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.
Reply With Quote
  #2  
Old 11-10-2006, 08:33 AM
codeexploiter's Avatar
codeexploiter codeexploiter is offline
Elite Coders
 
Join Date: Sep 2005
Location: India
Posts: 1,620
Thanks: 6
Thanked 104 Times in 104 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
__________________
-Codex
http://jpvalappil.wordpress.com/
Reply With Quote
  #3  
Old 11-10-2006, 08:45 AM
jscheuer1's Avatar
jscheuer1 jscheuer1 is offline
No Kidding?
 
Join Date: Mar 2005
Location: SE PA USA
Posts: 19,000
Thanks: 19
Thanked 1,135 Times in 1,121 Posts
Blog Entries: 3
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>
__________________
WWWWWWWWWWWW
- John
________________________

Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Reply With Quote
  #4  
Old 11-10-2006, 05:43 PM
dusty dusty is offline
New Comer (less than 5 posts)
 
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.
Reply With Quote
  #5  
Old 11-10-2006, 07:09 PM
jscheuer1's Avatar
jscheuer1 jscheuer1 is offline
No Kidding?
 
Join Date: Mar 2005
Location: SE PA USA
Posts: 19,000
Thanks: 19
Thanked 1,135 Times in 1,121 Posts
Blog Entries: 3
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>
__________________
WWWWWWWWWWWW
- John
________________________

Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Reply With Quote
  #6  
Old 11-11-2006, 09:24 PM
dusty dusty is offline
New Comer (less than 5 posts)
 
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?
Reply With Quote
  #7  
Old 11-11-2006, 09:48 PM
jscheuer1's Avatar
jscheuer1 jscheuer1 is offline
No Kidding?
 
Join Date: Mar 2005
Location: SE PA USA
Posts: 19,000
Thanks: 19
Thanked 1,135 Times in 1,121 Posts
Blog Entries: 3
Default

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

Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Reply With Quote
  #8  
Old 11-11-2006, 09:55 PM
dusty dusty is offline
New Comer (less than 5 posts)
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

how? sorry, I'm not good with this stuff.
Reply With Quote
  #9  
Old 11-11-2006, 10:19 PM
jscheuer1's Avatar
jscheuer1 jscheuer1 is offline
No Kidding?
 
Join Date: Mar 2005
Location: SE PA USA
Posts: 19,000
Thanks: 19
Thanked 1,135 Times in 1,121 Posts
Blog Entries: 3
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.
__________________
WWWWWWWWWWWW
- John
________________________

Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:38 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.