We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Frame help
Topic Started: Jan 13 2005, 05:01 PM (371 Views)
kingy
1 in 10 people understands binary, the other 1 doesn't
[ *  *  *  *  *  * ]
Ok i have two frames, and i want links from one frame to effect the other frame only.

at the minute when i click a link in my navigation frame my navigation frame changes to the address of the place linked to,

if this makes sence and anybody knows how to do this please help
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
under here is (verry simpel) code of an old site i made
Code: HTML
 
<frameset cols="150,*" cols="*" frameborder="NO" border="0" framespacing="0">
<frame src="menu_2.html" name="menu" scrolling="NO" resize>
<frameset rows="140,*" frameborder="NO" border="0" framespacing="0">
<frame src="banner.html" name="banner" scrolling="NO" noresize>
<frame src="home.html" name="main">
</frameset>
</frameset>


as you can see, some frames have a name.
if you want something to load into "main" , just ad target="main" to the link

it should look something like this
Code: HTML
 
<a href="home.html" target="main">Home</a>



i think/hope this helps you :geek:
Offline Profile Quote Post Goto Top
 
kingy
1 in 10 people understands binary, the other 1 doesn't
[ *  *  *  *  *  * ]
cheers, i thought it was more complicated than that!

it works now...yah
Offline Profile Quote Post Goto Top
 
kingy
1 in 10 people understands binary, the other 1 doesn't
[ *  *  *  *  *  * ]
i now have another problem

my page is launched from the index which links to the frameset

problem is when you get a link from google etc, i am worried it might link to a frame not the frameset page. also i don't want somebody loading up the frameset without first going on the index as it will screw up the size. (part of the size control is in the index)

if this makes sence to anybody who has any idea how to help, please do
Offline Profile Quote Post Goto Top
 
Gornakle
Member
[ *  *  *  *  * ]
Code:
 
<script language='javascript'>
<!--
if (top.location == self.location) { self.location = 'index.htm' }
//-->
</script>


This code will check if the page is in a frame. If not, it will redirect to index.htm (or whatever the frameset page is called).
Offline Profile Quote Post Goto Top
 
digital_kid
Member
[ * ]
Can I just ask might not be linked to this not sure?

I want my forum inside a frame in my website. Basically I have banner.htm and menu.htm and main.htm

I want to put my forum in the main.htm but everytime I do when I load index.htm the banner and menu show then the forum opens full screen and hides them?

I wanted a banner at the top and a menu down the side you see to keep the format the same is this possible?

Thanks,

Luke.
Offline Profile Quote Post Goto Top
 
kingy
1 in 10 people understands binary, the other 1 doesn't
[ *  *  *  *  *  * ]
you didn't use that code Gornakle gave did you?
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply