Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doResize(){
- var myWidth = $(window).width();
- var myHeight = $(window).height();
- //alert('myHeight: ' + myHeight + 'myWidth: ' + myWidth);
- // establish min sizes
- if (myHeight < 500){
- myHeight = 500;
- }
- if (myWidth < 1000){
- myWidth = 1000;
- }
- var newHeight = Number(myHeight - 145) + 'px';
- $('#flashHolder').css({'height':newHeight}).css({'width':myWidth}).css({'top':'-12px'});
- // override placeFooter function
- window.placeFooter = function(){ };
- // manually reposition footer
- var newSuppplementaryY = String( Number(myHeight - 30) + 'px');
- $('#supplementary').css({'position':'absolute'}).css({'top':newSuppplementaryY});
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement