跳转到内容

User:Albuseer/vector.js

维基百科,自由的百科全书

这是本页的一个历史版本,由Albuseer留言 | 贡献2010年4月22日 (四) 12:31编辑。这可能和当前版本存在着巨大的差异。

注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
/* jQuery section Begin */ jQuery(document).ready(function($){

if (/Wikipedia:首(页|頁)(\/(自訂首頁設計|自订首页设计)\/.*)?/.test(wgPageName) && wgAction == 'view'){
  $('#firstHeading').hide();
  $('#contentSub').hide();
 
  $('#content').css('background','white url(/skins-1.5/vector/images/border.png) repeat-y scroll left top');
  $('li.selected').css('background','white url(/skins-1.5/vector/images/tab-current-fade.png)');
 
  $('#ca-nstab-project a span').text(wgULS('首页', '首頁'));
 
  document.title="维基百科,自由的百科全书";
}

$('h1,h2,h3,h4,h5,h6').each(
  function(){
    $(this)
    .append(' ')
    .append(
      $(this).children('span.editsection')
      .css('display','inline')
      .css('float','none')
      .css('font-size','small')
      .css('margin-left','5px')
      .css('line-height','90%').hide()
    )
    .hover(
      function(){$(this).children('span.editsection').show()},
      function(){$(this).children('span.editsection').hide()}
    )
  }
)

/* jQuery section End */ });