tigris.txt
来自「sourcode about ajax samples」· 文本 代码 · 共 62 行
TXT
62 行
// Write the Netscape 4-specific stylesheet.if (document.layers) { document.writeln('<link rel="stylesheet" type="text/css" href="/branding/css/ns4_only.css" media="screen" />')}// Focus on user name input (the "loginform.loginID" field).function loginfocus() { if (document.loginform) { document.loginform.loginID.focus(); }}/* Open popup widows of (mostly) predetermined types. windowURL -- The URL to load in the new browser window. type -- The (predetermined) type of window to launch. acceptable values for type: 1: a help window 2: a 400x400 window 3: Issuezilla assignable users popup window ... and you can hard code others yourself inside the function. atts -- (optional) If the window you wish to create is unique and you do not want to set up a "type" for it, or if you want to pass additional attributes for a certain "type", you can pass its attributes directly to the function via this parameter.*/var tigrisPopupCounter = 0;function launch(windowURL, type, atts) { tigrisPopupCounter += 1; var windowName = 'SourceCast' + type; if (atts) { windowName += tigrisPopupCounter; } var windowAttributes; if (type == 1) { windowAttributes = 'resizable=yes,left=10,top=10,screenX=12,screenY=12,height=485,width=724,status=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes' } else if (type == 2) { windowAttributes = 'resizable=yes,left=10,top=10,screenX=12,screenY=12,height=400,width=400'; } else if (type == 3) { windowAttributes = 'resizable=yes,left=10,top=10,screenX=12,screenY=12,height=440,width=600,scrollbars=yes'; } if (atts) { windowAttributes += ',' + atts; } var windowObj = window.open(windowURL, windowName, windowAttributes); if (windowObj) { return false; } else { return true; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?