This is the code I've written:
var oldPos = 0;
var curPos = 0;
var oldHeight = 0;
$("#expandFooter").mouseup(function(){
curPos = event.clientY;
var pxMove=parseInt(oldPos-curPos)
//determine new height
var newHeight=parseInt($('#footer').height() +pxMove)
alert(newHeight);
$('#footer').height(newHeight);
}).mousedown(function(){
oldPos = event.clientY;
});
This isn't doing what I want though. For one, the bottom div is not growing dynamically with it. I'm not sure how to track the user's mouse movements on the fly as it continually changes. That's what I need your help for!
Pretty much what I tried here was to make it increase the size after the mouse movement is over, not along with it. This isn't what I want, but I thought it'd be a start. This doesn't work either though because once you leave the pseudo border div, the mouseup no longer registers when you release the mouse.
Thanks for the help!

New Topic/Question
Reply



MultiQuote





|