iFrame trouble ... please help asap!

Help with html/xhtml, css, javascript and other related topics.

Moderator: Moderators

iFrame trouble ... please help asap!

Postby webnoobie on Wed Oct 26, 2005 9:27 pm

Greetings,

Some trouble with some iframes here. I have a really big question I need help with as soon as possible.

Look at this image here:

Image

And you will see some differetn things. One, I have a section that says "Page". Well, I want it when anyone ever clicks on a link to another page with in our site, it will open up in that 'iframe' section. So that the flash file will always stay at the bottom and never refresh and ect. How would I do this? Please help ASAP! :D

Thanks! :D
webnoobie
Registered User
Registered User
 
Posts: 366
Joined: Wed Jun 08, 2005 10:38 pm
Location: My Computer

Postby Noxwizard on Thu Oct 27, 2005 6:20 pm

Here's an example, it's how my site was done.
Here's the iframe coding.
Code: Select all
<iframe src="content.html" frameborder="0" width="525" height="244" name="content"></iframe>


Here's the link code.
Code: Select all
<a href="app.html" target="content">Join</a>


If you look in the iframe code, you see: name="content". In the hyperlinks, tell it to open in that, like how a new page the target is _blank, well this is just the name of the iframe.
Noxwizard
Registered User
Registered User
 
Posts: 6
Joined: Thu Sep 29, 2005 9:27 pm

Postby webnoobie on Fri Oct 28, 2005 3:51 am

Hey,

I want it so that all LINKs on the ONE page will open when I click the link in that with out having to go to a new page for each one, just the 'PAGE' section will change? Do I do it the same way?
webnoobie
Registered User
Registered User
 
Posts: 366
Joined: Wed Jun 08, 2005 10:38 pm
Location: My Computer

Postby Roy Mustang on Fri Oct 28, 2005 5:15 am

Just reference each anchor tag to the same page.
Roy Mustang
Registered User
Registered User
 
Posts: 4
Joined: Thu Oct 27, 2005 8:45 am

Postby Noxwizard on Fri Oct 28, 2005 1:22 pm

You can use this to set all the links to go to that frame by default:
Code: Select all
<base target="content">
Noxwizard
Registered User
Registered User
 
Posts: 6
Joined: Thu Sep 29, 2005 9:27 pm

Postby webnoobie on Fri Oct 28, 2005 11:48 pm

How do I use that tag though? :?
webnoobie
Registered User
Registered User
 
Posts: 366
Joined: Wed Jun 08, 2005 10:38 pm
Location: My Computer

Postby Noxwizard on Sat Oct 29, 2005 12:52 am

Sorry about that, I didn't even think to pay attention to where it was. It goes in the <HEAD> section. No closers or anything. Ex:

Code: Select all
<HEAD>
<TITLE>The Exiled</TITLE>
<base target="content">
<link rel="shortcut icon" href="/favicon.ico" />
</HEAD>
Noxwizard
Registered User
Registered User
 
Posts: 6
Joined: Thu Sep 29, 2005 9:27 pm


Return to (X)HTML Coding

Who is online

Users browsing this forum: No registered users and 2 guests