adam291086 Posted April 20, 2008 Share Posted April 20, 2008 I have this If statement if(incrementH < ImgHeight) { document.getElementById('outerImageContainer').style.height = incrementH +"px"; incrementH = incrementH + 10; setTimeout("boxheight()",20); } Img is set to == the height of the image height. I know it has a value as when i alert(imgHeight) i get 1600. At the moment when i run the if statement nothing happens. If i replace ImgHeight with 1600 then everything works. How can i make this work with the variable ImgHeigh 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.