PageSourceSearch

http://www.cynami.com/templates/default/js/top.js

js cynami.com collected 2026-10-02 22:42:47 UTC 985 bytes, 46 lines download raw bytes

1function tBox(){
2	//h = $(window).height();
3	t = $(document).scrollTop();
4	if(t > 150){
5		$(".tbox").fadeIn(300);
6	}else{
7		$(".tbox").fadeOut(300);
8	}
9}
10
11$(document).ready(function(e){
12	$("body").append('<div class="tbox"><a href="javascript:void(0)" id="gotop"></a></div>');
13	
14	tBox();
15
16	$("#gotop").click(function(){
17		$(document).scrollTop(0);	
18	})
19});
20
21$(window).scroll(function(e){
22	tBox();		
23})
24
25$(function(){
26
27	/*下拉菜单*/
28	$(".nav li").hover(function(){
29		$(this).parents(".nav > li").find("a:first").addClass("on2");
30		$(this).find("ul:first").show(); //鼠标滑过查找li下面的第一个ul显示
31	},function(){
32		var navobj = $(this).find("ul:first");
33		navobj.hide();
34
35		//鼠标离开隐藏li下面的ul
36		if(navobj.attr("class") == "nav_sub")
37		{
38			$(this).find("a:first").removeClass("on2");
39		}
40	})
41
42	//给li下面ul是s的样式的前一个同辈元素添加css
43	$(".nav li ul li ul").prev().addClass("t");
44
45})
46

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.