I am almost done with the new applications of iRock, and I almost finish with the application; however, there is another Function which is (function resizeRock). This is a function that make the rock resize depending on the side of the web browser.
Here is the Line which help you to resize the image of the application.
function resizeRock(){
document.getElementById("rockImg").style.height=(document.body.clientHeight - 100) * 0.9;
}
Also remembered to add on this line, the parts that are on red.<body onload="resizeRock(); greetUser();" onresize="resizeRock();">
This commands make the applicationl resize to the side of the browser.
Here is the the link of the new and old applications take a look and when u are on the browser make the browser more smaller and see what happen.
Try to do it in both.
The new Application with the resize.
This is the regular Application.
Cool, Henry, but it seems you have a small logic error in your program. Cntrl+ is making the image smaller, and cntrl- is making it bigger. That's backwards. See if you can fix the problem.
ReplyDelete