Javascript frameset problem

L

lindsey.crocker

I have a problem calling a framset from javascript - I will explain as
best I can.

I have a site with 2 frames. Left frame contains a javascript menu.
Right frame contains the page and a scrolling javascript news item.

I want to have a function on my scroller that when clicked on it calls
the frameset for the news area and it replaces the entire current
frameset.

Code on the scroller that calls the page is as follows...

/*---------------------------------------------
Scrolling Message Settings
-----------------------------------------------*/
desc0 = "<b>intuita's</b> current newsletter is now available. <font
color='#000099'><strong> more...</strong></font>"
hldesc0 = "<u><b>intuita's</b> current newsletter is now available.
<font color='#000099'><strong> more...</strong></font></u>"
desturl0 = "JavaScript:eek:penWin('pop_up_1.htm')"
delay0 = 5
autofit0 = "start"
addheight0 = 30;
autofit0 = "end"
//fontweight0 = "bold"
//fontfamily0 = "Arial"

desc1 = "<b>Click Here</b> to take a look at our new press area.<font
color='#000099'><strong> more...</strong></font>"
hldesc1 = "<u><b>Click Here</b> to take a look at our new press
area.<font color='#000099'><strong> more...</strong></font></u>"
desturl1 = "newsdis.htm"
delay1 = 5
autofit1 = "start"
addheight1 = 30;
autofit1 = "end"

The problem I have is when i call the framset for the news area
(news_frame1.htm)the entire frameset is placed into the right frame so
i end up with 2 menus. If i call the actual news page newsdis.htm the
menu in the left frame isn't replaced and so I have a menu that doesn't
match the page.

How do i call a frameset from the right frame that replaces the entire
page??

My frame names are "leftframe" and "mainframe".
Any help on this would be greatly appreciated.

Thanks

Lindsey
 
O

Oscar Monteiro

I have a problem calling a framset from javascript - I will explain as
best I can.

I have a site with 2 frames. Left frame contains a javascript menu.
Right frame contains the page and a scrolling javascript news item.

I want to have a function on my scroller that when clicked on it calls
the frameset for the news area and it replaces the entire current
frameset.

Code on the scroller that calls the page is as follows...

/*---------------------------------------------
Scrolling Message Settings
-----------------------------------------------*/
desc0 = "<b>intuita's</b> current newsletter is now available. <font
color='#000099'><strong> more...</strong></font>"
hldesc0 = "<u><b>intuita's</b> current newsletter is now available.
<font color='#000099'><strong> more...</strong></font></u>"
desturl0 = "JavaScript:eek:penWin('pop_up_1.htm')"
delay0 = 5
autofit0 = "start"
addheight0 = 30;
autofit0 = "end"
//fontweight0 = "bold"
//fontfamily0 = "Arial"

desc1 = "<b>Click Here</b> to take a look at our new press area.<font
color='#000099'><strong> more...</strong></font>"
hldesc1 = "<u><b>Click Here</b> to take a look at our new press
area.<font color='#000099'><strong> more...</strong></font></u>"
desturl1 = "newsdis.htm"
delay1 = 5
autofit1 = "start"
addheight1 = 30;
autofit1 = "end"

The problem I have is when i call the framset for the news area
(news_frame1.htm)the entire frameset is placed into the right frame so
i end up with 2 menus. If i call the actual news page newsdis.htm the
menu in the left frame isn't replaced and so I have a menu that doesn't
match the page.

How do i call a frameset from the right frame that replaces the entire
page??

My frame names are "leftframe" and "mainframe".
Any help on this would be greatly appreciated.

Thanks

Lindsey
In Html try defining the target of the frame instead of is name "leftframe"
or "mainframe" to target ="_top" that
should replace the hole frame.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top