Ken2812221(留言墙 | 貢獻) 小无编辑摘要 标签:sourceedit |
Ken2812221(留言墙 | 貢獻) 小无编辑摘要 标签:sourceedit |
||
第23行: | 第23行: | ||
questions.eq(0).show(); |
questions.eq(0).show(); |
||
+ | |||
+ | $('.wikia-logo').attr('href', 'http://zh.tos.wikia.com/wiki/臨時主頁'); |
||
})(); |
})(); |
2015年3月28日 (六) 13:12的版本
<script> (function Terry2(){ if(typeof jQuery == "undefined") { setTimeout(Terry2, 100); return; }
var questions = $('.question');
var temp = questions.children("center"); temp.children().css('cursor', 'pointer'); temp.find(':first-child').children().click(function() { var current = $(this).parents('.question:eq(0)'); current.hide(); questions.eq(parseInt(current.data('yes')) - 1).show(); }); temp.find(':nth-child(2)').children().click(function() { var current = $(this).parents('.question:eq(0)'); current.hide(); questions.eq(parseInt(current.data('no')) - 1).show(); });
questions.eq(0).show();
$('.wikia-logo').attr('href', 'http://zh.tos.wikia.com/wiki/臨時主頁');
})(); </script>