Subversion Repositories SmartDukaan

Rev

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

Rev 8792 Rev 8917
Line -... Line 1...
-
 
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>
1
<div id="banner-side" style="margin-bottom:10px;">
44
<div id="banner-side" style="margin-bottom:10px;">
2
	<img src="/images/banner-side.jpg" usemap="#popup">
45
<img src="/images/banner-side.jpg" usemap="#popup">
3
		<map name="popup">
46
		<map name="popup">
4
          <area shape="rect" coords="0,90,255,146" id="otg_know_more" href="javascript:void(0)">
47
          <area shape="rect" coords="0,90,255,146" id="otg_know_more" href="javascript:void(0)">
5
          <area shape="rect" coords="0,144,255,215" id="pickupstoreInfo" href="javascript:void(0)">
48
          <area shape="rect" coords="0,144,255,215" id="pickupstoreInfo" href="javascript:void(0)">
6
          <area shape="rect" coords="0,213,255,284" class="emiInfo"href="javascript:void(0)">
49
          <area shape="rect" coords="0,213,255,284" class="emiInfo"href="javascript:void(0)">
7
		  <area shape="rect" coords="0,280,255,346" class="insuranceInfo" href="javascript:void(0)">
50
		  <area shape="rect" coords="0,280,255,346" class="insuranceInfo" href="javascript:void(0)">
8
        </map>
51
        </map>
9
</div>
52
</div>
10
<div id="promotion" style="margin-bottom : 10px; cursor : pointer;">
-
 
11
<a href="/mobile-phones/spice-coolpad-2-mi-496-1006864">
-
 
12
	<img src="/images/Side-Add-blue.jpg">
-
 
13
</a>
-
 
14
</div>
-
 
15
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
 
-
 
73