PageSourceSearch

https://www.tjci-ts.org.tw/dispPageBox/TSStyle/js/effect.js

js tjci-ts.org.tw collected 2026-10-08 11:14:52 UTC 4,797 bytes, 168 lines download raw bytes

1jQuery(function($) {�
2			$("#carousel-single-image").touchCarousel({				�
3				directionNavAutoHide: false,	�
4				directionNav: true,				�
5				autoplay:true,  // 自動輪播�
6				itemsPerMove: 1,�
7				pagingNav: true,�
8				scrollbar: false,				�
9				scrollToLast: true,�
10				autoplayDelay:5000,�
11				transitionSpeed: 1000, �
12				loopItems: true		�
13				�
14			});�
15		});�
16�
17�
18	�
19�
20�
21function slideSwitch() {�
22    var $active = $('#ConGallery .TitleImage IMG.active');�
23�
24    if ( $active.length == 0 ) $active = $('#ConGallery .TitleImage IMG:last');�
25�
26    // use this to pull the images in the order they appear in the markup�
27    var $next =  $active.next().length ? $active.next()�
28        : $('#ConGallery .TitleImage IMG:first');�
29�
30    // uncomment the 3 lines below to pull the images in random order�
31    �
32    // var $sibs  = $active.siblings();�
33    // var rndNum = Math.floor(Math.random() * $sibs.length );�
34    // var $next  = $( $sibs[ rndNum ] );�
35�
36    $active.addClass('last-active');�
37�
38    $next.css({opacity: 0.0})�
39        .addClass('active')�
40        .animate({opacity: 1.0}, 3000, function() {�
41            $active.removeClass('active last-active');�
42        });�
43}�
44�
45$(function() {�
46    setInterval( "slideSwitch()", 6000 );�
47});�
48�
49�
50�
51	�
52/*changed Images*/�
53�
54�
55function menuchang(f){�
56f.className='SubMenudover';�
57};�
58�
59function menure(f){�
60f.className='SubMenu';�
61};�
62�
63function MM_showHideLayers() { //v6.0�
64  var i,p,v,obj,args=MM_showHideLayers.arguments;�
65  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];�
66    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }�
67    obj.display=v; }�
68}�
69�
70�
71�
72�
73function MM_swapImgRestore() { //v3.0�
74  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;�
75}�
76�
77function MM_preloadImages() { //v3.0�
78  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();�
79    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)�
80    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}�
81}�
82�
83function MM_findObj(n, d) { //v4.01�
84  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {�
85    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}�
86  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];�
87  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);�
88  if(!x && d.getElementById) x=d.getElementById(n); return x;�
89}�
90�
91function MM_swapImage() { //v3.0�
92  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)�
93   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}�
94}�
95�
96// open new window�
97�
98function MM_openBrWindow(theURL,winName,features) { //v2.0�
99  window.open(theURL,winName,features);�
100}�
101�
102function PopUp(theURL) { //v2.0�
103  var features = "scrollbars=yes,resizable=yes,width=805,height=570,top=10 left=10" ;�
104  var winName = "Popup";�
105 window.open(theURL,winName,features);�
106}�
107�
108// Button Link�
109function MM_goToURL() { //v3.0�
110  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;�
111  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");�
112}�
113�
114function MM_popupMsg(msg) { //v1.0�
115  confirm(msg);�
116  //alert(msg);�
117}�
118�
119function MM_jumpMenu(targ,selObj,restore){ //v3.0�
120  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");�
121  if (restore) selObj.selectedIndex=0;�
122}�
123//內容menu特效�
124�
125ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));�
126NN4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4)�
127z = "xyz";�
128function toggle( targetId )�
129{�
130	if (NN4 || ie4)�
131	{�
132		if (z != "xyz")�
133			{�
134			if (z != document.all( targetId ))�
135				{�
136				z.style.display = "none";�
137				y.color= "003300";�
138				}�
139			}�
140		target = document.all( targetId );�
141			if (target.style.display == "none")�
142			{�
143				target.style.display = "";�
144				z = document.all( targetId );�
145				y = event.srcElement.style;�
146			}�
147			else�
148			{�
149				target.style.display = "none";�
150				z = "xyz";�
151			}�
152	}�
153}�
154ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));�
155NN4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4)�
156z = "xyz";�
157�
158//收合Layer�
159function toggle(elementID){�
160var target1 = document.getElementById(elementID)�
161if (target1.style.display == 'none') {�
162target1.style.display = 'block'�
163} else {�
164target1.style.display = 'none'�
165}�
166} �
167�
168�

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.