home *** CD-ROM | disk | FTP | other *** search
Wrap
function popup( path, w, h, scroll, windowName ) { if ( screen.availWidth < w ){ w = screen.availWidth - 10; scroll = "yes"; } if ( screen.availHeight < h ){ h = screen.availHeight - 29; scroll = "yes"; } x = ( screen.availWidth - w - 10 ) / 2; y = ( screen.availHeight - h - 29 ) / 2; var SarfariNum = navigator.appVersion.toLowerCase().indexOf( "safari" ); if( SarfariNum >= 0 ){ var att = "width=" + w + ",height=" + h + ", top=" + y + ", left=" + x + ",scrollbars=" + scroll + ",resizable=no, status bar=1"; }else if( navigator.appName == "Microsoft Internet Explorer" ){ var att = "width=" + w + ",height=" + h + ", top=" + y + ", left=" + x + ",scrollbars=" + scroll + ",resizable=no"; }else{ var att = "width=" + w + ",height=" + h + ", top=" + y + ", left=" + x + ",scrollbars=" + scroll + ",resizable=no"; } var F2 = window.open( path, windowName, att ); F2.focus(); } function startPageByPath( path ) { if( screen.availWidth < 1024 || screen.availHeight < 712 ){ alert( "ACHTUNG!\nDie benˆtigte Darstellungsgrˆfle von 1024x712 steht leider nicht zu Verf¸gung! (" + screen.availWidth + "x" + screen.availHeight + ")\nEine einwandfreie Darstellung kann somit nicht gew‰hrleistet werden." ); } popup( path, 1024, 712, 'no', 'videotraining' ); } function startPage() { if( screen.availWidth < 1024 || screen.availHeight < 712 ){ alert( "ACHTUNG!\nDie benˆtigte Darstellungsgrˆfle von 1024x712 steht leider nicht zu Verf¸gung! (" + screen.availWidth + "x" + screen.availHeight + ")\nEine einwandfreie Darstellung kann somit nicht gew‰hrleistet werden." ); } popup( 'index.htm', 1024, 712, 'no', 'videotraining' ); } function startPageAndRedirect() { startPage(); location.href = 'http://www.galileo-press.de'; } /************************************ * Size *************************************/ function setSize( w, h ) { window.resizeTo( w, h ); } function moveWindowTo( x, y ) { window.moveTo( x, y ); } function centerWindow() { //window.moveTo( ( screen.width - window.outerWidth ) * 0.5, ( screen.height - window.outerHeight ) * 0.5 ); window.moveTo( ( screen.availWidth - window.outerWidth ) * 0.5, ( screen.availHeight - window.outerHeight ) * 0.5 ); } function getOuterSize() { var obj = new Object (); obj['outerWidth'] = window.outerWidth; obj['outerHeight'] = window.outerHeight; return obj; } function getScreenWidth() { return screen.availWidth; } function getScreenHeight() { return screen.availHeight; } /************************************ * Step *************************************/ function setStep( sec, label ){ alert( "setStep().sec: " + sec + ", label: " + label ); } function addStep( sec, label ){ alert( "addStep().sec: " + sec + ", label: " + label ); } function setStepLabel( sec, label ){ alert( "setStepLabel().sec: " + sec + ", label: " + label ); } function setStepValue( sec, secNew ){ alert( "setStepFrameValue().sec: " + sec + ", secNew: " + secNew ); } function deleteStep( sec ){ alert( "deleteStep().sec: " + sec ); } /************************************ * Subtitle *************************************/ function setSubtitle( sec, label ){ alert( "setSubtitle().sec: " + sec + ", label: " + label ); } function addSubtitle( sec, label ){ alert( "addSubtitle().sec: " + sec + ", label: " + label ); } function setSubtitleLabel( sec, label ){ alert( "setSubtitleLabel().sec: " + sec + ", label: " + label ); } function setSubtitleValue( sec, secNew ){ alert( "setSubtitleFrameValue().sec: " + sec + ", secNew: " + frameValue ); } function deleteSubtitle( sec ){ alert( "deleteSubtitle().sec: " + sec ); } function getTime( sec ){ //var n : Number = interface.callAS( 'getFrame' ); alert( "getTime():" + sec ); }