PageSourceSearch

http://bjytzhx.com/js/templates/H/top.js

js bjytzhx.com collected 2026-10-03 02:30:50 UTC 1,736 bytes, 75 lines download raw bytes

1$(function() {
2	//导航
3	$('#nav').bind("load",getTopData());
4	$('#nav').trigger("load");
5});
6
7
8/**
9 * 获取top图片和导航信息
10 */
11function getTopData(){
12	$.ajax({
13		url:"getTopData",
14		type:"post",
15		data:{num:5},
16		success:function(data){
17			if (data.result == true){
18				if (data.tops != null && data.downPath != null){
19					var html  = showTopStyle(data.tops,data.downPath);
20					$('#box').append(html);
21				}
22				if (data.listn != null){
23					
24					var htmlbuilding = showNavStyle(data.listn);
25					$('#nav').append(htmlbuilding);
26				}
27			}
28			
29		}
30	})
31}
32
33/**
34 * 编辑top样式
35 * @param tops
36 */
37function showTopStyle(tops,downPath){
38	var ht ='';
39	var i;
40	for (i=0;i < tops.length; i++){
41		/*if (tops[i].attaUrl != null){
42			 ht += '<div style="width:100%; height:108px; background: url('+downPath+tops[i].attaUrl+') center center no-repeat;"></div>';
43		}else {
44			ht += '<div style="width:100%; height:108px; background: url(images/H/logo.jpg) center center no-repeat;"></div>';	
45		}*/
46		
47		/**厂桥小学设置*/
48	     if (tops[i].attaUrl != null){
49			 ht += '<img src="'+downPath+tops[i].attaUrl+'">';
50			// ht += '<img src="'+downPath+tops[i].attaUrl+'" width="1200" height="240" />';
51		}else {
52			ht += '<img src="'+downPath+'images/H/logo.jpg">';
53		}
54	}
55	
56	return ht;
57}
58
59/**
60 * 编辑导航样式
61 * @param listn
62 * @returns
63 */
64function showNavStyle(listn){
65	var html='';
66	var i;
67	for(i=0;i <listn.length;i++){
68		html += '<a href="'+basePath+'goNavPage?id='+listn[i].id+'">'+listn[i].name+'</a>';	
69//		if ( i <listn.length-1 ){
70//			html+='<img src="'+basePath+'images/A/nav_line.png" width="5" height="25" />';
71//		}
72	}
73	
74	return html;
75}

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.