| 7272 |
amit.gupta |
1 |
function changeImageStatus(value){
|
|
|
2 |
|
|
|
3 |
var statusValue=value;
|
|
|
4 |
var count=1;
|
|
|
5 |
var countValue=parseInt(document.getElementById('preCount').innerHTML);
|
|
|
6 |
if(statusValue=="Next" && countValue!=3){
|
|
|
7 |
count=parseInt(countValue+1);
|
|
|
8 |
document.getElementById('preCount').innerHTML=count;
|
|
|
9 |
}else if(statusValue=="Next" && countValue==3){
|
|
|
10 |
|
|
|
11 |
countValue=0;
|
|
|
12 |
count=parseInt(countValue+1);
|
|
|
13 |
document.getElementById('preCount').innerHTML=count;
|
|
|
14 |
}
|
|
|
15 |
if(statusValue=="Previous" && countValue!=1){
|
|
|
16 |
|
|
|
17 |
count=parseInt(countValue-1);
|
|
|
18 |
document.getElementById('preCount').innerHTML=count;
|
|
|
19 |
}else if(statusValue=="Previous" && countValue==1){
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
countValue=0;
|
|
|
23 |
count=parseInt(countValue+3);
|
|
|
24 |
document.getElementById('preCount').innerHTML=count;
|
|
|
25 |
}
|
|
|
26 |
|
|
|
27 |
}
|
|
|
28 |
|
|
|
29 |
function changeImageStatusPageInfo(value, refdiv){
|
|
|
30 |
|
|
|
31 |
var statusValue=value;
|
|
|
32 |
var count=1;
|
|
|
33 |
var countValue=parseInt(document.getElementById(refdiv).innerHTML);
|
|
|
34 |
if(statusValue=="Next" && countValue!=3){
|
|
|
35 |
count=parseInt(countValue+1);
|
|
|
36 |
document.getElementById(refdiv).innerHTML=count;
|
|
|
37 |
}else if(statusValue=="Next" && countValue==3){
|
|
|
38 |
|
|
|
39 |
countValue=0;
|
|
|
40 |
count=parseInt(countValue+1);
|
|
|
41 |
document.getElementById(refdiv).innerHTML=count;
|
|
|
42 |
}
|
|
|
43 |
if(statusValue=="Previous" && countValue!=1){
|
|
|
44 |
|
|
|
45 |
count=parseInt(countValue-1);
|
|
|
46 |
document.getElementById(refdiv).innerHTML=count;
|
|
|
47 |
}else if(statusValue=="Previous" && countValue==1){
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
countValue=0;
|
|
|
51 |
count=parseInt(countValue+3);
|
|
|
52 |
document.getElementById(refdiv).innerHTML=count;
|
|
|
53 |
}
|
|
|
54 |
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
function changeImageStatus1(value){
|
|
|
59 |
var statusValue=value;
|
|
|
60 |
var count=1;
|
|
|
61 |
var countValue=parseInt(document.getElementById('preCount1').innerHTML);
|
|
|
62 |
if(statusValue=="Next" && countValue!=3){
|
|
|
63 |
count=parseInt(countValue+1);
|
|
|
64 |
document.getElementById('preCount1').innerHTML=count;
|
|
|
65 |
}else if(statusValue=="Next" && countValue==3){
|
|
|
66 |
|
|
|
67 |
countValue=0;
|
|
|
68 |
count=parseInt(countValue+1);
|
|
|
69 |
document.getElementById('preCount1').innerHTML=count;
|
|
|
70 |
}
|
|
|
71 |
if(statusValue=="Previous" && countValue!=1){
|
|
|
72 |
|
|
|
73 |
count=parseInt(countValue-1);
|
|
|
74 |
document.getElementById('preCount1').innerHTML=count;
|
|
|
75 |
}else if(statusValue=="Previous" && countValue==1){
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
countValue=0;
|
|
|
79 |
count=parseInt(countValue+3);
|
|
|
80 |
document.getElementById('preCount1').innerHTML=count;
|
|
|
81 |
}
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
//run the currently selected effect
|
|
|
87 |
function runEffect(){
|
|
|
88 |
$("#tab2").hide();
|
|
|
89 |
$("#tab3").hide();
|
|
|
90 |
$("#tab1").show();
|
|
|
91 |
|
|
|
92 |
$("#tabss-2").hide();
|
|
|
93 |
$("#tabss-3").hide();
|
|
|
94 |
$("#tabss-1").show();
|
|
|
95 |
//get effect type from
|
|
|
96 |
var selectedEffect = 'slide';
|
|
|
97 |
|
|
|
98 |
//most effect types need no options passed by default
|
|
|
99 |
var options = {};
|
|
|
100 |
//check if it's scale, transfer, or size - they need options explicitly set
|
|
|
101 |
if(selectedEffect == 'scale'){ options = {percent: 0}; }
|
|
|
102 |
else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }
|
|
|
103 |
else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }
|
|
|
104 |
|
|
|
105 |
//run the effect
|
|
|
106 |
$("#vtab-1").effect(selectedEffect,options,500,callbackonload);
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
//callback function to bring a hidden box back
|
|
|
110 |
function callbackonload(){
|
|
|
111 |
setTimeout(function(){
|
|
|
112 |
$("#tabss-2").hide();
|
|
|
113 |
$("#tabss-3").hide();
|
|
|
114 |
$("#vtab-1:hidden").removeAttr('style').hide().fadeIn();
|
|
|
115 |
}, 1000);
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
/**/
|
|
|
120 |
|
|
|
121 |
|
|
|
122 |
var i=true;
|
|
|
123 |
function runEffect1(){
|
|
|
124 |
$("#tab1").hide();
|
|
|
125 |
$("#tab3").hide();
|
|
|
126 |
$("#tab2").show();
|
|
|
127 |
$("#tabss-1").hide();
|
|
|
128 |
$("#tabss-3").hide();
|
|
|
129 |
$("#tabss-2").show();
|
|
|
130 |
|
|
|
131 |
document.getElementById("tab2").style.background="background-image: url('images/tab_selc.gif') no-repeat";
|
|
|
132 |
var selectedEffect = 'slide';
|
|
|
133 |
|
|
|
134 |
//most effect types need no options passed by default
|
|
|
135 |
var options = {};
|
|
|
136 |
//check if it's scale, transfer, or size - they need options explicitly set
|
|
|
137 |
if(selectedEffect == 'scale'){ options = {percent: 0}; }
|
|
|
138 |
else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }
|
|
|
139 |
else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }
|
|
|
140 |
//run the effect
|
|
|
141 |
$("#tabss-2").effect(selectedEffect,options,500,callback1);
|
|
|
142 |
|
|
|
143 |
if(i){
|
|
|
144 |
i=false;
|
|
|
145 |
$('#loopedSlider1').loopedSlider();
|
|
|
146 |
}
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
//callback function to bring a hidden box back
|
|
|
150 |
function callback1(){
|
|
|
151 |
setTimeout(function(){
|
|
|
152 |
$("#tabss-1").hide();
|
|
|
153 |
$("#tabss-3").hide();
|
|
|
154 |
$("#tabss-2:hidden").removeAttr('style').hide().fadeIn();
|
|
|
155 |
}, 50);
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
|
|
|
159 |
function runEffect2(){
|
|
|
160 |
$("#tab2").hide();
|
|
|
161 |
$("#tab3").hide();
|
|
|
162 |
$("#tab1").show();
|
|
|
163 |
|
|
|
164 |
$("#tabss-2").hide();
|
|
|
165 |
$("#tabss-3").hide();
|
|
|
166 |
$("#tabss-1").show();
|
|
|
167 |
var selectedEffect = 'slide';
|
|
|
168 |
|
|
|
169 |
//most effect types need no options passed by default
|
|
|
170 |
var options = {};
|
|
|
171 |
//check if it's scale, transfer, or size - they need options explicitly set
|
|
|
172 |
if(selectedEffect == 'scale'){ options = {percent: 0}; }
|
|
|
173 |
else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }
|
|
|
174 |
else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }
|
|
|
175 |
|
|
|
176 |
//run the effect
|
|
|
177 |
$("#tabss-1").effect(selectedEffect,options,500,callback2);
|
|
|
178 |
}
|
|
|
179 |
|
|
|
180 |
//callback function to bring a hidden box back
|
|
|
181 |
function callback2(){
|
|
|
182 |
setTimeout(function(){
|
|
|
183 |
$("#tabss-2").hide();
|
|
|
184 |
$("#tabss-3").hide();
|
|
|
185 |
$("#tabss-1:hidden").removeAttr('style').hide().fadeIn();
|
|
|
186 |
}, 50);
|
|
|
187 |
}
|
|
|
188 |
|
|
|
189 |
function runEffect3(){
|
|
|
190 |
$("#tab1").hide();
|
|
|
191 |
$("#tab2").hide();
|
|
|
192 |
$("#tab3").show();
|
|
|
193 |
$("#tabss-1").hide();
|
|
|
194 |
$("#tabss-2").hide();
|
|
|
195 |
$("#tabss-3").show();
|
|
|
196 |
|
|
|
197 |
document.getElementById("tab3").style.background="background-image: url('images/tab_selc.gif') no-repeat";
|
|
|
198 |
var selectedEffect = 'slide';
|
|
|
199 |
|
|
|
200 |
//most effect types need no options passed by default
|
|
|
201 |
var options = {};
|
|
|
202 |
//check if it's scale, transfer, or size - they need options explicitly set
|
|
|
203 |
if(selectedEffect == 'scale'){ options = {percent: 0}; }
|
|
|
204 |
else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }
|
|
|
205 |
else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }
|
|
|
206 |
//run the effect
|
|
|
207 |
$("#tabss-3").effect(selectedEffect,options,500,callback3);
|
|
|
208 |
|
|
|
209 |
}
|
|
|
210 |
|
|
|
211 |
//callback function to bring a hidden box back
|
|
|
212 |
function callback3(){
|
|
|
213 |
setTimeout(function(){
|
|
|
214 |
$("#tabss-1").hide();
|
|
|
215 |
$("#tabss-2").hide();
|
|
|
216 |
$("#tabss-3:hidden").removeAttr('style').hide().fadeIn();
|
|
|
217 |
}, 50);
|
|
|
218 |
}
|
|
|
219 |
|
|
|
220 |
|
|
|
221 |
function selectMenu(id){
|
|
|
222 |
$("#b").show();
|
|
|
223 |
$("#a").show();
|
|
|
224 |
$("#d").show();
|
|
|
225 |
$("#b1").hide();
|
|
|
226 |
$("#a1").hide();
|
|
|
227 |
$("#d1").hide();
|
|
|
228 |
id1="#"+id;
|
|
|
229 |
$(id1).hide();
|
|
|
230 |
id2="#"+id+"1";
|
|
|
231 |
$(id2).show();
|
|
|
232 |
}
|