Guardian-Mage Posted June 17, 2007 Share Posted June 17, 2007 I have a php/database driven website. For the front page I have a news feed that will show the first 50 letters, than you must click show all to see the rest. I use an animated div sliding effect for this, but my script requires a height input. How can I find the height of the div? my site: http://ictonentertainment.com/wamboldt/newicton/ Quote Link to comment Share on other sites More sharing options...
Goose Posted June 17, 2007 Share Posted June 17, 2007 If the height is defined within the style attribute you you can access that by document.getElementById('elementId').style.height where elementId is the id of your div. Quote Link to comment Share on other sites More sharing options...
emehrkay Posted June 18, 2007 Share Posted June 18, 2007 style.height will only work if it is set in the style tags document.getElementById('elementId').offsetHeight; is what he is lookign for Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.