Subversion Repositories SmartDukaan

Rev

Rev 18731 | Rev 18741 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18731 Rev 18737
Line 17... Line 17...
17
  	});
17
  	});
18
  $(document).ready(function(){
18
  $(document).ready(function(){
19
  
19
  
20
 
20
 
21
  var tot_count = 0;
21
  var tot_count = 0;
22
  var id = setInterval(frame, 5000);
22
  var bsid = setInterval(frame, 1000);
23
  function frame() {
23
  function frame() {
24
    if (tot_count == 3) {
24
    if (tot_count == 3) {
25
      clearInterval(id);
25
      clearInterval(bsid);
26
    } else {
26
    } else {
27
      tot_count++; 
27
      tot_count++; 
28
      setTimeout(function(){
28
      setTimeout(function(){
-
 
29
	    $('.brandlink').css({'background-color':'#58d936','color':'white'});
-
 
30
	    setTimeout(function(){$('.brandlink').css({'background-color':'','color':'#A8A5A5'})}, 1500);
-
 
31
	    setTimeout(function(){
29
	    $('.see_more_link a').css({'background-color':'#FAF56B'});
32
	    $('.subcatlink').css({'background-color':'#58d936','color':'white'});
30
	    setTimeout(function(){$('.see_more_link a').css({'background-color':''})}, 1500);
33
	    setTimeout(function(){$('.subcatlink').css({'background-color':'','color':'#A8A5A5'})}, 1500);
31
	},1000);
34
	},1000);
-
 
35
	},1000);
-
 
36
	  clearInterval(bsid);
-
 
37
	  bsid = setInterval(frame, 5000);
32
    }
38
    }
33
  }
39
  }
34
	
40
	
35
 
41
 
36
  
42
  
Line 481... Line 487...
481
		          	<?php endif;?>
487
		          	<?php endif;?>
482
 
488
 
483
 
489
 
484
             <?php //if(isset($deal['filterLink']) && !empty($deal['filterLink']) && isset($deal['filterText']) && !empty($deal['filterText'])):?>
490
             <?php //if(isset($deal['filterLink']) && !empty($deal['filterLink']) && isset($deal['filterText']) && !empty($deal['filterText'])):?>
485
             <?php if((isset($deal['filterLinkBrand']) && !empty($deal['filterLinkBrand'])) || (isset($deal['filterLinkSubCategory']) && !empty($deal['filterLinkSubCategory']))):?>
491
             <?php if((isset($deal['filterLinkBrand']) && !empty($deal['filterLinkBrand'])) || (isset($deal['filterLinkSubCategory']) && !empty($deal['filterLinkSubCategory']))):?>
486
             
492
             <?php $printcomma = 0;?>
487
             	
493
             	
488
             
494
             
489
                <div class='see_more_link' style='position:absolute; bottom: 0px;'>More
495
                <div class='see_more_link' style='position:absolute; bottom: 0px;'>More
490
                  <?php if(count($dealarray) >1):?>
496
                  <?php if(count($dealarray) >1):?>
491
                  	<?php if($key == 1):?>
497
                  	<?php if($key == 1):?>
492
                  		<?php if(isset($deal['filterLinkBrand']) && !empty($deal['filterLinkBrand'])):?>
498
                  		<?php if(isset($deal['filterLinkBrand']) && !empty($deal['filterLinkBrand'])):?>
-
 
499
                  		<?php $printcomma = 1;?>
493
                  			<a href = <?php echo $deal['filterLinkBrand'];?> style='color:#A8A5A5;'><u><?php echo $deal['filterTextBrand'];?></u></a>
500
                  			<a href = <?php echo $deal['filterLinkBrand'];?> class = "brandlink" style='color:#A8A5A5;'><u><?php echo $deal['filterTextBrand'];?></u></a>
494
                 		<?php endif;?>
501
                 		<?php endif;?>
495
                 		<?php if(isset($deal['filterLinkSubCategory']) && !empty($deal['filterLinkSubCategory'])):?>
502
                 		<?php if(isset($deal['filterLinkSubCategory']) && !empty($deal['filterLinkSubCategory'])):?>
-
 
503
                  			<?php if($printcomma == 1)
-
 
504
                  				echo ",";
-
 
505
                  			?>
496
                  			<a href = <?php echo $deal['filterLinkSubCategory'];?> style='color:#A8A5A5;'><u><?php echo $deal['filterTextSubCategory'];?></u></a>
506
                  			<a href = <?php echo $deal['filterLinkSubCategory'];?> class = "subcatlink" style='color:#A8A5A5;'><u><?php echo $deal['filterTextSubCategory'];?></u></a>
497
                 		<?php endif;?>
507
                 		<?php endif;?>
498
                  	<?php endif;?>
508
                  	<?php endif;?>
499
                  <?php else:?>
509
                  <?php else:?>
500
                 	 <?php if(isset($deal['filterLinkBrand']) && !empty($deal['filterLinkBrand'])):?>
510
                 	 <?php if(isset($deal['filterLinkBrand']) && !empty($deal['filterLinkBrand'])):?>
-
 
511
                  			<?php $printcomma = 1;?>
501
                  			<a href = <?php echo $deal['filterLinkBrand'];?> style='color:#A8A5A5;'><u><?php echo $deal['filterTextBrand'];?></u></a>
512
                  			<a href = <?php echo $deal['filterLinkBrand'];?> class = "brandlink" style='color:#A8A5A5;'><u><?php echo $deal['filterTextBrand'];?></u></a>
502
                 		<?php endif;?>
513
                 		<?php endif;?>
503
                 	<?php if(isset($deal['filterLinkSubCategory']) && !empty($deal['filterLinkSubCategory'])):?>
514
                 	<?php if(isset($deal['filterLinkSubCategory']) && !empty($deal['filterLinkSubCategory'])):?>
-
 
515
                  			<?php if($printcomma == 1)
-
 
516
                  				echo ",";
-
 
517
                  			?>
504
                  			<a href = <?php echo $deal['filterLinkSubCategory'];?> style='color:#A8A5A5;'><u><?php echo $deal['filterTextSubCategory'];?></u></a>
518
                  			<a href = <?php echo $deal['filterLinkSubCategory'];?> class = "subcatlink" style='color:#A8A5A5;'><u><?php echo $deal['filterTextSubCategory'];?></u></a>
505
                 		<?php endif;?>
519
                 		<?php endif;?>
506
                  <?php endif;?>
520
                  <?php endif;?>
507
                </div> 
521
                </div> 
508
 
522
 
509
        	<?php endif;?>
523
        	<?php endif;?>