Subversion Repositories SmartDukaan

Rev

Rev 1035 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1035 Rev 1048
Line 118... Line 118...
118
 
118
 
119
/**/
119
/**/
120
 
120
 
121
 
121
 
122
var i=true;
122
var i=true;
123
 function runEffect1(){
123
function runEffect1(){
124
     $("#tab1").hide();
124
    $("#tab1").hide();
125
     $("#tab3").hide();
125
    $("#tab3").hide();
126
    $("#tab2").show();
126
    $("#tab2").show();
127
    $("#tabss-1").hide();
127
    $("#tabss-1").hide();
128
    $("#tabss-3").hide();
128
    $("#tabss-3").hide();
129
    $("#tabss-2").show();
129
    $("#tabss-2").show();
130
 
130
 
Line 139... Line 139...
139
    else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }
139
    else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }
140
    //run the effect
140
    //run the effect
141
    $("#tabss-2").effect(selectedEffect,options,500,callback1);
141
    $("#tabss-2").effect(selectedEffect,options,500,callback1);
142
 
142
 
143
     if(i){
143
     if(i){
144
     i=false;
144
         i=false;
145
     $('#loopedSlider1').loopedSlider();
145
         $('#loopedSlider1').loopedSlider();
146
     }
146
     }
147
   };
147
}
148
 
148
 
149
   //callback function to bring a hidden box back
149
   //callback function to bring a hidden box back
150
   function callback1(){
150
   function callback1(){
151
    setTimeout(function(){
151
    setTimeout(function(){
152
      $("#tabss-1").hide();
152
      $("#tabss-1").hide();
153
      $("#tabss-3").hide();
153
      $("#tabss-3").hide();
154
     $("#tabss-2:hidden").removeAttr('style').hide().fadeIn();
154
     $("#tabss-2:hidden").removeAttr('style').hide().fadeIn();
155
    }, 50);
155
    }, 50);
156
  };
156
  }
157
 
157
 
158
 
158
 
159
  function runEffect2(){
159
  function runEffect2(){
160
      $("#tab2").hide();
160
      $("#tab2").hide();
161
      $("#tab3").hide();
161
      $("#tab3").hide();
Line 173... Line 173...
173
     else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }
173
     else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }
174
     else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }
174
     else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }
175
 
175
 
176
     //run the effect
176
     //run the effect
177
     $("#tabss-1").effect(selectedEffect,options,500,callback2);
177
     $("#tabss-1").effect(selectedEffect,options,500,callback2);
178
    };
178
    }
179
 
179
 
180
    //callback function to bring a hidden box back
180
    //callback function to bring a hidden box back
181
    function callback2(){
181
    function callback2(){
182
     setTimeout(function(){
182
     setTimeout(function(){
183
       $("#tabss-2").hide();
183
       $("#tabss-2").hide();
184
       $("#tabss-3").hide();
184
       $("#tabss-3").hide();
185
      $("#tabss-1:hidden").removeAttr('style').hide().fadeIn();
185
      $("#tabss-1:hidden").removeAttr('style').hide().fadeIn();
186
     }, 50);
186
     }, 50);
187
   };
187
   }
188
 
188
 
189
function runEffect3(){
189
function runEffect3(){
190
     $("#tab1").hide();
190
     $("#tab1").hide();
191
     $("#tab2").hide();
191
     $("#tab2").hide();
192
    $("#tab3").show();
192
    $("#tab3").show();
Line 204... Line 204...
204
    else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }
204
    else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }
205
    else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }
205
    else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; }
206
    //run the effect
206
    //run the effect
207
    $("#tabss-3").effect(selectedEffect,options,500,callback3);
207
    $("#tabss-3").effect(selectedEffect,options,500,callback3);
208
 
208
 
209
   };
209
   }
210
 
210
 
211
   //callback function to bring a hidden box back
211
   //callback function to bring a hidden box back
212
   function callback3(){
212
   function callback3(){
213
    setTimeout(function(){
213
    setTimeout(function(){
214
      $("#tabss-1").hide();
214
      $("#tabss-1").hide();
215
      $("#tabss-2").hide();
215
      $("#tabss-2").hide();
216
     $("#tabss-3:hidden").removeAttr('style').hide().fadeIn();
216
     $("#tabss-3:hidden").removeAttr('style').hide().fadeIn();
217
    }, 50);
217
    }, 50);
218
  };
218
  }
219
 
219
 
220
  
220
  
221
  function selectMenu(id){
221
  function selectMenu(id){
222
       $("#b").show();
222
       $("#b").show();
223
       $("#a").show();
223
       $("#a").show();