Subversion Repositories SmartDukaan

Rev

Rev 8792 | Rev 8919 | 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
{
30
    if (window.jQuery) 
31
		{
32
        	try {
33
				jqueryLoaded();
34
				jQuery('#promotion-banners').show();
35
			}
36
			catch(error){
37
			window.setTimeout(checkJquery, 100);
38
			}
39
    } else {
40
        window.setTimeout(checkJquery, 100);
41
    }
42
}
43
</script>
8434 kshitij.so 44
<div id="banner-side" style="margin-bottom:10px;">
8917 kshitij.so 45
<img src="/images/banner-side.jpg" usemap="#popup">
7041 kshitij.so 46
		<map name="popup">
7124 kshitij.so 47
          <area shape="rect" coords="0,90,255,146" id="otg_know_more" href="javascript:void(0)">
48
          <area shape="rect" coords="0,144,255,215" id="pickupstoreInfo" href="javascript:void(0)">
49
          <area shape="rect" coords="0,213,255,284" class="emiInfo"href="javascript:void(0)">
50
		  <area shape="rect" coords="0,280,255,346" class="insuranceInfo" href="javascript:void(0)">
7041 kshitij.so 51
        </map>
8434 kshitij.so 52
</div>
8917 kshitij.so 53
#if( $BANNERS && $BANNERS.size()!=0 )
54
<div id="promotion-banners" style="margin-bottom : 10px; cursor : pointer; display:none;" onload="checkJquery()">
55
    #foreach($banner in $BANNERS)
56
    	#if($banner.isHasMap())
57
    		<a href="$banner.getLink()" banner-name='$banner.getBannerName()'><img src='/images/banners/$banner.getImageName()' title="$banner.getBannerName()" usemap='#sidebannermap$velocityCount'/></a>
58
    		<map name='sidebannermap$velocityCount'> 
59
    		#set($mapdetails = $ALL_BANNER_MAP.get($banner.getBannerName()))
60
    		#foreach($mapdetail in $mapdetails)
61
    			<area shape="rect" coords='$mapdetail.getCoordinates()' href='$mapdetail.getMapLink()' banner-name='$banner.getBannerName()'/>
62
    		#end
63
    		</map>
64
    	#else
65
    		<a href="$banner.getLink()" banner-name='$banner.getBannerName()'><img src='/images/banners/$banner.getImageName()' title="$banner.getBannerName()"/></a>
66
    	#end
67
	#end
68
</div>
69
#end
70
 
71
 
72