“UbuntuHelp:SSH VPN”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
第17行: | 第17行: | ||
function searchChange(e) { | function searchChange(e) { | ||
− | + | // Update search buttons status according to search box content. | |
− | + | // Ignore empty or whitespace search term. | |
− | + | var value = e.value.replace(/\s+/, ''); | |
− | + | if (value == '' || searchIsDisabled) { | |
− | + | searchSetDisabled(true); | |
− | + | } else { | |
− | + | searchSetDisabled(false); | |
− | + | } | |
} | } | ||
function searchSetDisabled(flag) { | function searchSetDisabled(flag) { | ||
− | + | // Enable or disable search | |
− | + | document.getElementById('fullsearch').disabled = flag; | |
− | + | document.getElementById('titlesearch').disabled = flag; | |
} | } | ||
function searchFocus(e) { | function searchFocus(e) { | ||
− | + | // Update search input content on focus | |
− | + | if (e.value == 'Search') { | |
− | + | e.value = ''; | |
− | + | e.style.color = 'black'; | |
− | + | searchIsDisabled = false; | |
− | + | } | |
} | } | ||
function searchBlur(e) { | function searchBlur(e) { | ||
− | + | // Update search input content on blur | |
− | + | if (e.value == '') { | |
− | + | e.value = 'Search'; | |
− | + | e.style.color = 'gray'; | |
− | + | searchIsDisabled = true; | |
− | + | } | |
} | } | ||
function actionsMenuInit(title) { | function actionsMenuInit(title) { | ||
− | + | // Initiliaze action menu | |
− | + | for (i = 0; i < document.forms.length; i++) { | |
− | + | var form = document.forms[i]; | |
− | + | if (form.className == 'actionsmenu') { | |
− | + | // Check if this form needs update | |
− | + | var div = form.getElementsByTagName('div')[0]; | |
− | + | var label = div.getElementsByTagName('label')[0]; | |
− | + | if (label) { | |
− | + | // This is the first time: remove label and do buton. | |
− | + | div.removeChild(label); | |
− | + | var dobutton = div.getElementsByTagName('input')[0]; | |
− | + | div.removeChild(dobutton); | |
− | + | // and add menu title | |
− | + | var select = div.getElementsByTagName('select')[0]; | |
− | + | var item = document.createElement('option'); | |
− | + | item.appendChild(document.createTextNode(title)); | |
− | + | item.value = 'show'; | |
− | + | select.insertBefore(item, select.options[0]); | |
− | + | select.selectedIndex = 0; | |
− | + | } | |
− | + | } | |
− | + | } | |
} | } | ||
//--> | //--> | ||
第94行: | 第94行: | ||
<body lang="en" dir="ltr"> | <body lang="en" dir="ltr"> | ||
− | + | <script xmlns="" src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script> | |
− | + | <script xmlns="" type="text/javascript"><![CDATA[ | |
− | + | _uacct = "UA-737845-5"; | |
− | + | urchinTracker(); | |
− | + | ]]></script> | |
<div id="header"> | <div id="header"> | ||
<div id="mastwrap"><div id="masthead"> | <div id="mastwrap"><div id="masthead"> | ||
第109行: | 第109行: | ||
<label for="searchinput">Search:</label> | <label for="searchinput">Search:</label> | ||
<input id="searchinput" type="text" name="value" value="" size="20" | <input id="searchinput" type="text" name="value" value="" size="20" | ||
− | + | onfocus="searchFocus(this)" onblur="searchBlur(this)" | |
− | + | onkeyup="searchChange(this)" onchange="searchChange(this)" alt="Search"> | |
<input id="titlesearch" name="titlesearch" type="submit" | <input id="titlesearch" name="titlesearch" type="submit" | ||
− | + | value="Titles" alt="Search Titles"> | |
<input id="fullsearch" name="fullsearch" type="submit" | <input id="fullsearch" name="fullsearch" type="submit" | ||
− | + | value="Text" alt="Search Full Text"> | |
</div> | </div> | ||
</form> | </form> | ||
第128行: | 第128行: | ||
− | + | <div id="sisternav"> | |
− | + | <ul> | |
− | + | <li id="plain"> | |
− | + | <a href="https://help.ubuntu.com/6.06" | |
− | + | accesskey="t">6.06 LTS</a> | |
− | + | </li> | |
− | + | <li id="plain"> | |
− | + | <a href="https://help.ubuntu.com/6.10" | |
− | + | accesskey="t">6.10</a> | |
− | + | </li> | |
− | + | <li id="plain"> | |
− | + | <a href="https://help.ubuntu.com/7.04" | |
− | + | accesskey="t">7.04</a> | |
− | + | </li> | |
− | + | <li id="current"> | |
− | + | <a href="https://help.ubuntu.com/community" | |
− | + | accesskey="t">Community Docs</a> | |
− | + | </li> | |
− | + | </ul> | |
− | + | </div> | |
</div></div> | </div></div> | ||
第195行: | 第195行: | ||
<li><a href="/community/SSH?action=edit&template=TransparentTemplate">TransparentTemplate</a></li> | <li><a href="/community/SSH?action=edit&template=TransparentTemplate">TransparentTemplate</a></li> | ||
</ul> | </ul> | ||
− | + | </p> | |
</td> | </td> | ||
<td style="vertical-align: top;"> | <td style="vertical-align: top;"> | ||
第214行: | 第214行: | ||
<li><a href="/community/VNCOverSSH">VNCOverSSH</a></li> | <li><a href="/community/VNCOverSSH">VNCOverSSH</a></li> | ||
</ul> | </ul> | ||
− | + | </p> | |
</td> | </td> | ||
</tr> | </tr> | ||
第231行: | 第231行: | ||
<div id="footer"> | <div id="footer"> | ||
− | + | <div id="ubuntulinks"> | |
− | + | © 2007 <a href="http://www.canonical.com">Canonical Ltd</a>. Ubuntu, Kubuntu, Edubuntu and Canonical are registered trademarks of Canonical Ltd.<br /> | |
− | + | <a href="http://www.ubuntu.com/feedback">Feedback</a> — | |
− | + | <a href="http://www.ubuntu.com/legal">Legal</a> — | |
− | + | <a href="https://wiki.ubuntu.com/wiki/credits">Credits</a><!-- — | |
− | + | <a href="http://www.ubuntu.com/sitemap">Site Map</a>--> | |
− | + | </div> | |
2007年5月24日 (四) 14:49的版本
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
SSH
This page does not exist yet. You can create a new empty page, or use one of the page templates. Before creating the page, please check if a similar page already exists.
Create new empty page
Page templates: |
Existing pages with similar names: |
|
|