Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iframe help...plz

Status
Not open for further replies.

GUJUm0deL

Programmer
Jan 16, 2001
3,676
US
hey, I need some help...does anyone know how I can create iframes?? I created this cool interface with photoshop 5.5 and I wanna use it on webpage. The setup is like this:
When the user clicks any of the buttons that are at the bottom of the interface, I want the link associated with that button to be displayed inside the interface. Know what I mean??
I saw this kind of feature on alot of websites, but I can't get it work. Also will the iframe feature work both on Netscape and Internet Explorer??
 
yeah if you wanna use an iFrame i suggest u got to the Macromedia Dreamweaver exchange and download a iFrame extension. Theres atleast two of them.

Hope this was helpful.
 
This is what you can do:-

<html>
<script language=&quot;javascript&quot;>
function loadIFrame(link) {
document.all.iframe.src=link;
}
</script>
<body>
<iframe name=&quot;iframe&quot;>If you don't see me, your browser doesn't support iframe
</iframe>
<br><br>
<form>
<input type=&quot;button&quot; value=&quot;First&quot; onclick='loadIFrame(&quot;bcd.html&quot;)'> | <input type=&quot;button&quot; value=&quot;Second&quot; onclick='loadIFrame(&quot;cde.html&quot;)'>
</form>
</body>
</html>

Netscape 4 doesn't support this code.

Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
Hey LeonTang, thanx for the help, but I got an extension from the Dreamweaver site and I put the iframe inside of a Layer so I can move it anywhere on the page, even on top of an image...pretty neat huh?? LOL...
Ummm, do you know of a way to make the iframe change its background color/font, etc?? Does the iframe have those properties?? I wanna put a background image on the links that appear inside the iframe...kno what I mean??
 
PS -- where can I findout what properties a iframe has?? I mean can I change the background, color, font, insert an image inside of a iframe?? When I link my pages inside the iframe, it defaults to a white background, how can I cnage tha??
 
Hi,

I haven't been in touch with dreamweaver for sometime already actually... and guess what? The version I have at home is version 2! hahaha... seems like it is time for me to upgrade my dreamweaver.

Take a look at this for iframe properties:-

I think this should be it. But just curious about something... if you set your pages background to black and load it into the iframe, I thought the iframe will have a black background too??

Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
Hey, thanx for the site...lol, yeah buddy I think u outta upgrade too, we're at DW4 now...lol
Yeah actually I found out that however you design your page that will appear inside the iframe will appear like that, when I tried it, I had done the changes on the wrong file...talk about being amatuer, lol...
thanx for the help man...
 
haha...no problem at all :) If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
LeonTang, thanx man...and for my website, i'm gonna design it for IE, I found out that NS is only being used ny 7% of the net population, and if anything NS opens the links on a new window, so ppl. can still see the content...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top