Jump to content

[SOLVED] if statement


adam291086

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.