FEATURED ADS
Ik heb deze code for Featured ads hier hoort de advertenties naast elkaar te komen , maar helaas komen ze op elkaar.. ik weet wat er fout is!! wie kan helpen aub..
Al vast bedankt
alex
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!-- FEATURED ADS -->
<div id="featured">
<h1>{$lng.general.featured_ads}</h1>
<div class="box-top-white"><div class="box-bottom"><div class="box-left"><div class="box-right"><div class="box-bottom-left"><div class="box-bottom-right"><div class="box-top-left"><div class="box-top-right">
{capture name=some_content assign=item_width}{math equation="(w-w1)/no" w=$appearance.outer_table w1=90 no=$ads_settings.no_featured_on_row}{/capture}
{if $browser.type=="IE" && $browser.version=="7.0"}
{capture name=some_content assign=right_arrow_pos}{math equation="w-w1" w=$appearance.outer_table w1=67 no=$ads_settings.no_featured_on_row}{/capture}
{else}
{capture name=some_content assign=right_arrow_pos}{math equation="w-w1" w=$appearance.outer_table w1=57 no=$ads_settings.no_featured_on_row}{/capture}
{/if}
<a class="prev browse left"></a>
<a class="next browse right" style="left: {$right_arrow_pos}px;"></a>
<div class="scrollable" id="chained">
<!-- root element for the items -->
<div class="items">
{section name=loop start=0 loop=$no_featured step=1}
{capture name=some_content assign=details_url}{if $seo_settings.enable_mod_rewrite}{seo->makeDetailsLink p1=`$featured[loop].id` p2=`$featured[loop].title`}{else}{$live_site}/details.php?id={$featured[loop].id}{/if}{/capture}
<div class="item" style="width: {$item_width}px">
{if $featured[loop].rented && $ads_settings.enable_rented}<div class="rented_featured" id="frented{$featured[loop].id}" ></div>{elseif $featured[loop].sold && $ads_settings.enable_sold}<div class="sold_featured" id="fsold{$featured[loop].id}" ></div>{/if}
<div class="box-image" id="box-image{$featured[loop].id}">
<a href="{$details_url}"><img class="pic" id="fpic{$featured[loop].id}" onmouseover="this.className='pic_over'" onmouseout="this.className='pic'" src="{$live_site}/{$featured[loop].image}" alt="{if $featured[loop].image_id}{$featured[loop].title}{/if}" /></a>
</div>
<h3>{if $data_set=="cars" && ($featured[loop].make || $featured[loop].model)}<a href="{$details_url}">{$featured[loop].make} {$featured[loop].model}</a>{else}<a href="{$details_url}">{$featured[loop].title|truncate:21:"...":false}</a>{/if}</h3>
{$featured[loop].location_str}
{if $ads_settings.enable_price && $featured[loop].price>=0}<div class="price">{$featured[loop].price_curr}</div>
{/if}
</div>
{/section}
</div> {* end items *}
</div> {* end scrollable *}
{literal}
<script type="text/javascript">
$(document).ready(function() {
$("#chained").scrollable({size: {/literal}{$ads_settings.no_featured_on_row}{literal}, hoverClass: 'hover', clickable: false}).circular(){/literal}{if $ads_settings.featured_autoscroll}{literal}.autoscroll({
steps: 1,
interval: 3000
});
{/literal}
{/if}
{literal}
});
</script>
{/literal}
</div></div></div></div></div></div></div></div>
</div>
<!-- END FEATURED ADS -->
<div id="featured">
<h1>{$lng.general.featured_ads}</h1>
<div class="box-top-white"><div class="box-bottom"><div class="box-left"><div class="box-right"><div class="box-bottom-left"><div class="box-bottom-right"><div class="box-top-left"><div class="box-top-right">
{capture name=some_content assign=item_width}{math equation="(w-w1)/no" w=$appearance.outer_table w1=90 no=$ads_settings.no_featured_on_row}{/capture}
{if $browser.type=="IE" && $browser.version=="7.0"}
{capture name=some_content assign=right_arrow_pos}{math equation="w-w1" w=$appearance.outer_table w1=67 no=$ads_settings.no_featured_on_row}{/capture}
{else}
{capture name=some_content assign=right_arrow_pos}{math equation="w-w1" w=$appearance.outer_table w1=57 no=$ads_settings.no_featured_on_row}{/capture}
{/if}
<a class="prev browse left"></a>
<a class="next browse right" style="left: {$right_arrow_pos}px;"></a>
<div class="scrollable" id="chained">
<!-- root element for the items -->
<div class="items">
{section name=loop start=0 loop=$no_featured step=1}
{capture name=some_content assign=details_url}{if $seo_settings.enable_mod_rewrite}{seo->makeDetailsLink p1=`$featured[loop].id` p2=`$featured[loop].title`}{else}{$live_site}/details.php?id={$featured[loop].id}{/if}{/capture}
<div class="item" style="width: {$item_width}px">
{if $featured[loop].rented && $ads_settings.enable_rented}<div class="rented_featured" id="frented{$featured[loop].id}" ></div>{elseif $featured[loop].sold && $ads_settings.enable_sold}<div class="sold_featured" id="fsold{$featured[loop].id}" ></div>{/if}
<div class="box-image" id="box-image{$featured[loop].id}">
<a href="{$details_url}"><img class="pic" id="fpic{$featured[loop].id}" onmouseover="this.className='pic_over'" onmouseout="this.className='pic'" src="{$live_site}/{$featured[loop].image}" alt="{if $featured[loop].image_id}{$featured[loop].title}{/if}" /></a>
</div>
<h3>{if $data_set=="cars" && ($featured[loop].make || $featured[loop].model)}<a href="{$details_url}">{$featured[loop].make} {$featured[loop].model}</a>{else}<a href="{$details_url}">{$featured[loop].title|truncate:21:"...":false}</a>{/if}</h3>
{$featured[loop].location_str}
{if $ads_settings.enable_price && $featured[loop].price>=0}<div class="price">{$featured[loop].price_curr}</div>
{/if}
</div>
{/section}
</div> {* end items *}
</div> {* end scrollable *}
{literal}
<script type="text/javascript">
$(document).ready(function() {
$("#chained").scrollable({size: {/literal}{$ads_settings.no_featured_on_row}{literal}, hoverClass: 'hover', clickable: false}).circular(){/literal}{if $ads_settings.featured_autoscroll}{literal}.autoscroll({
steps: 1,
interval: 3000
});
{/literal}
{/if}
{literal}
});
</script>
{/literal}
</div></div></div></div></div></div></div></div>
</div>
<!-- END FEATURED ADS -->
Toevoeging op 15/12/2013 19:42:15:
Geregeld,
vedankt toch..
topic kan afsluiten..
Dank..
- Aar -:
Gelieve in het vervolg bij code de [code][/code]-tags gebruiken.
Gewijzigd op 15/12/2013 19:47:02 door - Ariën -
Topics sluiten we niet af. Verder is het natuurlijk ook erg handig om te vermelden wat de oplossing nou precies was?
als ik had ingesteld op 10 foto te laten zien dan ging op elkaar bij keuze van 5 ads dan blijft op juiste plek.
Gewijzigd op 15/12/2013 19:50:06 door alex alexander