Subversion Repositories SmartDukaan

Rev

Rev 8936 | Rev 8976 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8917 kshitij.so 1
<script type="text/javascript">
2
function jqueryLoaded() {
3
#if( $BANNERS.size() > 1 )
4
   jQuery('#promotion-banners').slidy({
5
        animation:  'slide',
6
        children:   'a',
7
        menu:       false,
8
        pause:      true,
9
        speed:      1000,
10
        time:       4000,
11
        width:      258,
12
        height:     180
13
   });
14
#else
15
   jQuery('#promotion-banners').slidy({
16
        animation:  'none',
17
        children:   'a',
18
        menu:       false,
19
        pause:      true,
20
        speed:      1000,
21
        time:       4000,
22
        width:      258,
23
        height:     180
24
   });         
25
#end
26
}
27
 
28
function checkJquery() 
29
{
8919 kshitij.so 30
	try {
31
		jqueryLoaded();
32
		jQuery('#promotion-banners').show();
33
		}
34
	catch(error){
35
		window.setTimeout(checkJquery, 100);
36
	}
8917 kshitij.so 37
}
38
</script>
8434 kshitij.so 39
<div id="banner-side" style="margin-bottom:10px;">
8936 kshitij.so 40
<img src="/images/Why-Saholic-New.png" usemap="#popup" onload="checkJquery()">
7041 kshitij.so 41
		<map name="popup">
7124 kshitij.so 42
          <area shape="rect" coords="0,90,255,146" id="otg_know_more" href="javascript:void(0)">
43
          <area shape="rect" coords="0,144,255,215" id="pickupstoreInfo" href="javascript:void(0)">
8953 rajveer 44
          <area shape="rect" coords="0,213,255,284" class="emiInfoNone"href="javascript:void(0)">
7124 kshitij.so 45
		  <area shape="rect" coords="0,280,255,346" class="insuranceInfo" href="javascript:void(0)">
7041 kshitij.so 46
        </map>
8434 kshitij.so 47
</div>
8917 kshitij.so 48
#if( $BANNERS && $BANNERS.size()!=0 )
8919 kshitij.so 49
<div id="promotion-banners" style="margin-bottom : 10px; cursor : pointer; display:none;">
8917 kshitij.so 50
    #foreach($banner in $BANNERS)
51
    	#if($banner.isHasMap())
52
    		<a href="$banner.getLink()" banner-name='$banner.getBannerName()'><img src='/images/banners/$banner.getImageName()' title="$banner.getBannerName()" usemap='#sidebannermap$velocityCount'/></a>
53
    		<map name='sidebannermap$velocityCount'> 
54
    		#set($mapdetails = $ALL_BANNER_MAP.get($banner.getBannerName()))
55
    		#foreach($mapdetail in $mapdetails)
56
    			<area shape="rect" coords='$mapdetail.getCoordinates()' href='$mapdetail.getMapLink()' banner-name='$banner.getBannerName()'/>
57
    		#end
58
    		</map>
59
    	#else
60
    		<a href="$banner.getLink()" banner-name='$banner.getBannerName()'><img src='/images/banners/$banner.getImageName()' title="$banner.getBannerName()"/></a>
61
    	#end
62
	#end
63
</div>
64
#end
65
 
66
 
67