Current location: Hot Scripts Forums » General Web Coding » JavaScript » semi-dynamic div height changes


semi-dynamic div height changes

Reply
  #1 (permalink)  
Old 05-01-05, 12:56 PM
koncept
Guest
 
Posts: n/a
Question semi-dynamic div height changes

i know it is possible, but i am stuck and cannot find the code to do this. i have a div that i want all the text for the site to be in (its a tabled layout with a header and left menu bar) that is scrollable, problem is that when a user with a different screen resolution (window size) than i have views the page it looks different. i want to be able to use javascript, get the window height then apply that to the div height-(header hight+footer)

if some one can point me in the right direction to find the code, or can provide me with some starting code, i would be very greatful
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 05-03-05, 06:06 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Google for "DHTML Reference" and you'll get (amongst other things) Microsofts reference to JScript, Active X, (D)HTML and lots of other stuff.
There you can find all the properties of the window-object, they should be useful for figuring out the height/width of the window and screen.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 05-03-05, 11:20 AM
koncept
Guest
 
Posts: n/a
Thanks for your help, I just figured it out. Thank you for the information
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 flash websites for sale metamorph General Advertisements 5 01-09-05 11:03 PM
Dynamic Control Values khan_mansoor ASP.NET 1 11-15-04 12:28 AM
Scrollbar!!!!!! LiLSweetie HTML/XHTML/XML 8 07-22-04 06:01 PM
getting the actual widht and height of a span davidklonski JavaScript 0 06-29-04 12:47 PM
Help with dynamic select in dynamic table noviceforever JavaScript 1 06-23-04 02:20 PM


All times are GMT -5. The time now is 12:36 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.