Jump to content
xisto Community
Sign in to follow this  
iGuest

Linking Iframes Linking Objects to Iframes

Recommended Posts

Hello, I'm really new at web design and I know little about code; so if this is an obvious answer... sorry. I'm trying to have an iframe appear when an object is clicked on. All of my objects (links) are the same on every page and so this way the whole page wouldn't have to reload. I want all of my links to work like this and then dissappear when a different link (object) is clicked on.Here's the code I found that I'm trying to use and substitute my stuff with. Currently I need the http://www.w3.org/ to be replaced with an object not text. Is this possible?<html><head><title>Wahid's Iframe</title><style type="text/css"><!--iframe {position: absolute;top:20%;left:30%;width:324; height:200; border:no;}a:link{font-family:arial;font-size:18px;color:#000000;}a:visited{font-family:arial;font-size:18px;color:#000000;}a:hover{font-family:arial;font-size:18px;color:#ff0000;}a:active{font-family:arial;font-size:18px;color:#0000ff;}//--></style></head><body><iframe name="wahid"></iframe><a href="http://forums.xisto.com/no_longer_exists/;'>http://forums.xisto.com/no_longer_exists/; >http://forums.xisto.com/no_longer_exists/ href="https://www.google.de/?gfe_rd=cr&ei=BwkjVKfAD8uH8QfckIGgCQ&gws_rd=ssl; >http://www.w3.org/ href="http://forums.xisto.com/no_longer_exists/;'>http://forums.xisto.com/no_longer_exists/; >http://www.w3.org/ help is appreciated!Thanks

Share this post


Link to post
Share on other sites

well it looks like it doest what u want to me.just a thing, with the links, put a space between the address and a target, like this <a href="http://www.s3schools.com/rg-erdr.php?_rpo=t; target="wahid" >http://www.w3.org/; for your last one.thats how you get something to show in an iframe. and when someone clicks on another linke it will show in the iframe providing you have it going there.also, what about a main page/home page in the iframe for when you first go on the site?do that like this <iframe src="http://www.sitegoeshere.com/ is this in signature design?

Edited by Sten (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.