PageSourceSearch

http://designishistory.com/ndxz-studio/site/js/grow.vaska.js

js designishistory.com collected 2026-10-02 06:16:32 UTC 2,247 bytes, 92 lines download raw bytes

1tog = new Array();
2
3$j(document).ready(function()
4{
5	bigwidth = $j('#img-container').width();
6	
7	bigwidth = (bigwidth == null) ?
8		1 : parseInt(bigwidth) - 18;
9	
10	$j('#img-container').css('width', bigwidth);
11});
12
13function toggleImg(id, width, height, thwidth)
14{
15	$j('div').remove('#once');
16	var thiswidth = 0;
17	
18	if ((!tog[id]) || (tog[id] == false))
19	{
20		o = document.getElementById('img'+id);
21		var yo = o.id;
22
23		if (o)
24		{
25			tog[id] = true;
26			
27			// IE wants these
28			o.getElementsByTagName('div')[0].style.width = width + 'px';
29			o.getElementsByTagName('div')[0].style.height = height + 10 + 'px';
30
31			o.getElementsByTagName('a')[0].style.width = width + 'px';
32			o.getElementsByTagName('a')[0].style.height = height + 10 + 'px';
33			
34			o.getElementsByTagName('img')[0].style.width = width + 'px';
35			o.getElementsByTagName('img')[0].style.height = height + 'px';
36			
37			preloadImage(path + o.getElementsByTagName('img')[0].alt);
38			
39			o.getElementsByTagName('em')[0].style.display = 'block';
40		}
41		
42	}
43	else
44	{
45		o = document.getElementById('img'+id);
46		var yo = o.id;
47		
48		if (o)
49		{
50			tog[id] = false;
51			
52			// IE wants these
53			o.getElementsByTagName('div')[0].style.width = thwidth + 20 + 'px';
54			o.getElementsByTagName('div')[0].style.height = thwidth + 20 + 'px';
55			
56			o.getElementsByTagName('em')[0].style.display = 'none';
57	
58			o.getElementsByTagName('a')[0].style.width = '';
59			o.getElementsByTagName('a')[0].style.height = '';
60			
61			d = path + 'th-' + o.getElementsByTagName('img')[0].alt;
62			
63			// back to the thumbnail - use natural size
64			o.getElementsByTagName('img')[0].style.width = '';
65			o.getElementsByTagName('img')[0].style.height = '';
66			
67			o.getElementsByTagName('img')[0].src = d;
68			
69			o.getElementsByTagName('em')[0].style.display = 'none';
70		}
71	}
72	
73	$j('div.grow').each(function()
74	{
75		var thewidth = $j(this).width();
76		thiswidth = parseInt(thiswidth) + parseInt(thewidth);
77		
78		if (thiswidth > bigwidth)
79		{
80			var help = $j(this).prev('div.grow').attr('id');
81			$j(this).prev('div.grow').after("<div id='once'><!-- --></div>");
82			thiswidth = thewidth;
83		}
84	});
85}
86
87function preloadImage(image)
88{
89	preload = new Image();
90	preload.src = image;
91	o.getElementsByTagName('img')[0].src = preload.src;
92}

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.