flash 大小随浏览器的缩放而改变

 

<script type="text/javascript" src="jquery.js"></script>   

<script type="text/javascript">   
/****
function showUnreadNews(){
    var height=$(window).height();
    var width=$(window).width();
    $("#myId").attr("width",width);
    $("#myId").attr("height",height);
}
var addEvent = function(elem, type, eventHandle) {
    if (elem == null || elem == undefined) return;
    if ( elem.addEventListener ) {
        elem.addEventListener( type, eventHandle, false );
    } else if ( elem.attachEvent ) {
        elem.attachEvent( "on" + type, eventHandle );
    }
};

addEvent(window, "resize", function(){
    var height=$(window).height();
    var width=$(window).width();
    $("#obj_swf").attr("width",width-17);
    $("#obj_swf").attr("height",height-17);
});
*****/
//setInterval('showUnreadNews()',800);
        </script>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-07-01
  • 2022-12-23
相关资源
相似解决方案