Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frame Problem

Status
Not open for further replies.

dagger2002

Programmer
Nov 23, 2004
172
US
I am writing a program to act like a SODA MACHINE. I have heard that you can hide and show frames by making them visiable and invisiable. Is this true and if it is how do i do this.
 

I'm not sure you can hide and show frames - although certainly this is something I've never actually tried, so cannot be 100% sure of this.

You should, however, have no problems hiding and showing iframes by setting either the "style.display" property, or the "style.visibility" property, depending on the desired effect.

If you set style.display, the element will be hidden, and the space etaken up by it will shrink. Using style.visibility, it will be hidden, but the space taken up will be left on the page.

Hope this helps,
Dan


 
hi dagger,

Go to this site and check out the source of the frameset. If you use IE then use the 'view source' option from the menu NOT from the right click context menu.

In there you will find a frameset definition and some scripts. The script that you need is called 'ResizeFrameSets' and can be called anywhere on the site using Parent.ResizeFrameSets. You can resize any combination of frames.

The frameset is rather complicated however, you can simplify it using your own framset.

Good luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top