Click to See Complete Forum and Search --> : Newbie prob with frames and hyperlinks


Shauni
01-13-2003, 12:34 PM
Hi,
I devided my screen into 5 frames with this code:


<frameset rows="19%,73%,8%" framespacing="0">
<frame framenaam="mbframe" src="middenboven.htm" frameborder="0" noresize scrolling="no">
<frameset cols="15%,70%,15%" framespacing="0">
<frame framenaam="lframe" src="links.htm" frameborder="0" noresize scrolling="no">
<frame framenaam="mmframe" src="middenmidden.htm" frameborder="0" noresize>
<frame framenaam="rframe" src="rechts.htm" frameborder="0" noresize scrolling="no">
</frameset>
<frame framenaam="moframe" src="middenonder.htm" frameborder="0" noresize scrolling="no">
</frameset>


In the topframe I added a rolloverbutton. When I press this button I want to load two pages: one in lframe and one in mmframe. To do this I added the following code:

<applet code="fphover.class" codebase="./" width="112" height="24">
<param name="color" value="#000080">
<param name="hovercolor" value="#0000FF">
<param name="textcolor" value="#FFFFFF">
<param name="effect" value="glow">
<param name="image" valuetype="ref" value="images/focus.gif">
<param name="hoverimage" valuetype="ref" value="images/focus_hoover.gif">
<param name="url" valuetype="ref" value="linksfocus.htm">
<param name="target" value="lframe">
</applet>


But then the page is loaded over my original page, so the only thing I see is the "linksfocus.htm"-page.

Is it possible to load the "linksfocus.htm"-page into the "lframe" and to load yet another page (let's call it "focusmain.htm") in the "mmframe" by pushing the button??

Hope you guys can help :-)

Greetzzz
Shauni

sinhart
01-13-2003, 01:11 PM
Originally posted by Shauni
Is it possible to load the "linksfocus.htm"-page into the "lframe" and to load yet another page (let's call it "focusmain.htm") in the "mmframe" by pushing the button??

While this is not an applet it seems to work quite nicely. I have used it several times.

You will probably hear about how it will only work with browsers that have javascript enabled and that is true. Personally if javascript isn't enabled I really don't care if they visit my page or not. (I'll probably catch it for that comment). Same goes for users that don't have frames enabled.

Anyway check out http://javascript.internet.com/navigation/change-2-frames-source.html

pyro
01-13-2003, 01:14 PM
I also explain how to do it here

http://forums.webdeveloper.com/showthread.php?s=&threadid=1941&highlight=frames

Shauni
01-13-2003, 02:36 PM
Hey guys thanxxx !! :D
I'm gonna try this out tomorrow and I'll let you know how it went :cool:

Greetzzz
Shauni

Shauni
01-14-2003, 02:50 AM
Well, it didn't work with the rollover-button made by frontpage.
So I made a rollover with javascript and it works just perfect!!

Thanxxx :cool:
Shauni