This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2013-09-13 04:36:41 +00:00
|
|
|
<div style='position:relative'>
|
|
|
|
<ul id='banner_nav' class='clear banner_nav-<%= @ad_banner.title.dehumanize %>'></ul>
|
|
|
|
<div id='slideshow-<%= @ad_banner.title.dehumanize %>' class='slideshow'>
|
|
|
|
<% (images = @ad_banner.ad_images).shuffle.each do |ad_image| %>
|
|
|
|
<% if ad_image.display? %>
|
|
|
|
<img src='<%= ad_image.file %>' alt='<%= ad_image.title || ' ' %>' title='<%= ad_image.title || ' ' %>' time_to_next='<%= @ad_banner.transition_msec %>' link_open='<%= ad_image.link_open %>' link_url='<%= ad_image_link(ad_image) %>' style=' <%= 'cursor:pointer;' if !ad_image_link(ad_image).blank? %>'/>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-12-19 09:15:31 +00:00
|
|
|
<script type='text/javascript'>
|
2013-10-15 11:33:31 +00:00
|
|
|
var banner = {"banner_name":"#slideshow-<%= @ad_banner.title.dehumanize %>",
|
|
|
|
"banner_fx":"<%= @ad_banner.ad_fx.nil? ? 'fade': @ad_banner.ad_fx %>",
|
|
|
|
"banner_pager":".banner_nav-<%= @ad_banner.title.dehumanize %>",
|
|
|
|
"image_count":"<%= @ad_banner.ad_images.length %>",
|
|
|
|
"image_loaded":0,
|
|
|
|
"time_to_next":<%= @ad_banner.transition_msec %>,
|
|
|
|
};
|
|
|
|
banners.push(banner);
|
|
|
|
</script>
|