Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Linking Iframes, Linking Objects to Iframes
jpw
post Dec 19 2007, 05:55 PM
Post #1


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 19-December 07
Member No.: 27,026



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 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://www.ahfb.2000.com/webmaster_help_desk/showthread.php?t=2242"target="wahid" >www.ahfb</a><br/>
<a href="http://www.google.com"target="wahid" >www.w3.org</a><br/>
<a href="http://www.s3schools.com/css/default.asp"target="wahid" >www.w3.org</a><br/>
</body>
</html>

Any help is appreciated!
Thanks
Go to the top of the page
 
+Quote Post
Sten
post Dec 20 2007, 02:38 AM
Post #2


Oh come on Mrs. B!
Group Icon

Group: Members
Posts: 648
Joined: 6-June 07
From: Tasmania, Australia
Member No.: 22,422



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/css/default.asp" target="wahid" >www.w3.org</a> 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"></iframe>

why is this in signature design?




This post has been edited by Sten: Dec 20 2007, 02:39 AM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Mixing XHTML 1.1 And iFrame(9)
  2. Programming In Glut (lesson 4)(5)
  3. C++: Basic Classes(4)
  4. Linking Two Tables(12)
  5. Mysql Problem(1)
  6. Smf Theme Creation Help(13)
  7. Help On Swishmax - Linking Buttons...(5)
  8. Programming In Glut (lesson 3)(1)
  9. Passing Objects Over A Network(3)
  10. Collision Check Algorithm(2)
  11. 3d Objects May Soon Come Out Of Printers(10)
  12. Linking To Iframes(4)
  13. Linking An Object Tag(0)
  14. Thinking In Terms Of Objects(6)
  15. Can A PHP Page Knows Who's Linking To Itself?(9)
  1. Linking A Subdomain To Invision Free Board(4)
  2. Web Game(3)
  3. Div Linking Using Css(5)
  4. Help Turn Iframes To Php(5)
  5. Html: Alt Text For Objects(8)
  6. Strange And Funny French Site ;-)(2)
  7. 2 Servers, 1 Domain(6)
  8. Iframes Are Evil(8)
  9. Iframes(37)
  10. Is This The Best Way To Do This?(4)


 



- Lo-Fi Version Time is now: 24th July 2008 - 12:18 PM