/////////页面常用的一些方法///////// /////////Feng 2006.08.25/////////// /** 弹出flash @param flashUrl 显示的flash网址 @param flashWidth flash的宽(像素) @param flashHeight flash的高(像素) @param showX 显示的x坐标(像素) @param showY 显示的y坐标(像素) @param closeTime 自动关闭时间(秒)<0禁用 */ //为定时关闭声明的全局变量 var SHOWFLAHOBJ = null; function opShowFlash(flashUrl,flashWidth,flashHeight,showX,showY,closeTime){ var innerHtml = ''; innerHtml += ''; innerHtml += ''; innerHtml += ''; innerHtml += ''; var stropwin = "height=" + flashHeight + ",width=" + flashWidth + ",location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toobar=no"; var opwin = window.open("","top",stropwin); opwin = null; if(opwin != null){ var opHtml = ''; opHtml = '中国美术馆www.namoc.org' + innerHtml; opHtml += ''; opwin.moveTo(showX,showY); opwin.document.write(opHtml); opwin.focus(); SHOWFLAHOBJ = opwin; }else{ var divHtml = '
'; divHtml += '
'; divHtml += innerHtml; divHtml += '
'; divHtml +='关闭'; divHtml += '
'; document.write(divHtml); } if(closeTime > 0){ setTimeout("closeShowFlashObj();",closeTime*1000); } } /** 关闭弹出的新页或图层 */ function closeShowFlashObj(){ try{ SHOWFLAHOBJ.close(); }catch(e){ } try{ var divobj = document.getElementById('OPSHOWFLAHDIV'); var flashobj = document.getElementById('moive_flash'); document.body.removeChild(divobj); //flashobj.object.stop(); //divobj.style.display='none'; }catch(e){ } } function showFlash(flashUrl,flashWidth,flashHeight,showX,showY,closeTime){ var innerHtml = ''; innerHtml += ''; innerHtml += ''; innerHtml += ''; innerHtml += ''; var stropwin = "height=" + flashHeight + ",width=" + flashWidth + ",location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toobar=no"; var divHtml = '
'; divHtml += '
'; divHtml += innerHtml; divHtml += '
'; divHtml +='点击进入                               '; divHtml += '
'; document.write(divHtml); if(closeTime > 0){ setTimeout("closeShowFlashObj();",closeTime*1000); } } function showMovie(flashUrl,flashWidth,flashHeight,showX,showY,closeTime,loop){ var innerHtml = ''; innerHtml += ''; innerHtml += ''; innerHtml += ''; innerHtml += ''; var stropwin = "height=" + flashHeight + ",width=" + flashWidth + ",location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toobar=no"; var divHtml = '
'; divHtml += '
'; divHtml += innerHtml; divHtml += '
'; //divHtml +='播放 '; //divHtml +='暂停 '; divHtml +='关闭     '; divHtml += '
'; document.write(divHtml); if(closeTime > 0){ setTimeout("closeShowFlashObj();",closeTime*1000); } } function LoadJsAnywhere(jssrc){ try{ document.write(""); }catch(e){ } }