...

View Full Version : javascript and frames



ihatejava
01-23-2006, 09:25 PM
I have a javascript made. I have buttons (drop down affect) menus. The javascript has 3 forms and 3 menus.

I want to have a menus in one frame and have the affect of the menus occur within another frame. How do I do this?

I have a javascript that have the ability to change text size, background color and text color. It does that.

But I want to put the buttons (onclick) into one frame and have the ability to change the color of another frame. I need help.... and I'm not a computer programmer or anything.

Lerura
01-24-2006, 06:21 PM
if you want to open a page iin the other frame:
parent.framename.location.href=something.htm;
where framename is the name of the frame in which you want to open the document.

if you want to run a function in the document that is in the other frame:
parent.framename.document.functionname();

vwphillips
01-24-2006, 07:23 PM
see

http://www.vicsjavascripts.org.uk/FrameSubMenu/FrameSubMenu.htm



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum