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 Link to comment https://forums.phpfreaks.com/topic/101976-solved-if-statement/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.