GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 26-Jul-2005, 13:12
ubergeek ubergeek is offline
Regular Member
 
Join Date: Jan 2005
Posts: 775
ubergeek is a jewel in the roughubergeek is a jewel in the roughubergeek is a jewel in the rough

maximize iframe


I have an iframe in the middle of my page, and I would like users to be able to maximize it to better see the content within. This is being done with the following Javascript functions:
Code:
//note: the iframe I am maximizing has ID "preview". The elements with IDs "flash_movie", "ext_links", and "headlines" are things that will be covered by the maximized iframe. "topmenu" and "menuitems" are things that are moved to just above the maximized iframe, so that they can stay in view. function maximizeStoryContainer() { document.getElementById("flash_movie").style.visibility = "hidden"; document.getElementById("ext_links").style.visibility = "hidden"; document.getElementById("headlines").style.visibility = "hidden"; document.getElementById("topmenu").style.top = "1%"; document.getElementById("menuitems").style.top = "5%"; var preview = document.getElementById("preview"); preview.style.visibility = "hidden"; preview.style.top = "9%"; preview.style.height = "89%"; preview.style.left = "1%"; preview.style.width = "96%"; preview.style.visibility = "visible"; } function restoreStoryContainer() { var preview = document.getElementById("preview"); preview.style.visibility = "hidden"; preview.style.top = "33%"; preview.style.height = "67%"; preview.style.left = "20%"; preview.style.width = "53%"; preview.style.visibility = "visible"; document.getElementById("topmenu").style.top = "25%"; document.getElementById("menuitems").style.top = "29%"; document.getElementById("flash_movie").style.visibility = "visible"; document.getElementById("ext_links").style.visibility = "visible"; document.getElementById("headlines").style.visibility = "visible"; }

page is here: [link]http://www.geocities.com/your_sports_source/index.html[/link]

the problem only occurs when another page is loaded in the middle iframe. test this by mousing over the MLB in the menu, and clicking on "standings".
  #2  
Old 27-Jul-2005, 16:05
ubergeek ubergeek is offline
Regular Member
 
Join Date: Jan 2005
Posts: 775
ubergeek is a jewel in the roughubergeek is a jewel in the roughubergeek is a jewel in the rough
huh. it appears to work now. that is very odd, but whatever, as long as it works...
 
 

Recent GIDBlogNARMY by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
passing variables out of an iframe by url JUNK KED MySQL / PHP Forum 5 31-Jul-2007 09:33
Loading a php page in an iframe from javascript Clive73 Web Design Forum 0 18-May-2005 06:10

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 17:04.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.