Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>// for big image</p> <pre><code> &lt;a href="&lt;%# Eval("Link") %&gt;"&gt;&lt;img src="&lt;%# Eval("Path") %&gt;" alt="&lt;%# "#htmlcaption" + (Container.ItemIndex + 1).ToString() %&gt;" /&gt;&lt;/a&gt; </code></pre> <p>//for thumbnails</p> <pre><code>&lt;li rel='&lt;%#(Container.ItemIndex + 1).ToString() %&gt;'&gt; &lt;img src="&lt;%# Eval("Path") %&gt;" width="50" height="50" /&gt;&lt;/li&gt; </code></pre> <p>aspx :</p> <pre><code>&lt;div id='wrapper'&gt; &lt;div id='header'&gt;&lt;/div&gt; &lt;div id='body'&gt; &lt;div id="bigPic"&gt; &lt;asp:Repeater ID="RepeaterBigBanner" runat="server"&gt; &lt;HeaderTemplate&gt; &lt;/HeaderTemplate&gt; &lt;ItemTemplate&gt; &lt;a href="&lt;%# Eval("Link") %&gt;"&gt;&lt;img src="&lt;%# Eval("Path") %&gt;" alt="&lt;%# "#htmlcaption" + (Container.ItemIndex + 1).ToString() %&gt;" /&gt;&lt;/a&gt; &lt;/ItemTemplate&gt; &lt;SeparatorTemplate&gt; &lt;/SeparatorTemplate&gt; &lt;/asp:Repeater&gt; &lt;%--&lt;img src="imgs/1.jpg" alt="" width="650" height="250"/&gt;--%&gt; &lt;/div&gt; &lt;div id="kucukList" runat="server" style="height:60px;text-align: center;"&gt; &lt;ul id="thumbs" &gt; &lt;%--&lt;li class='active' rel='1'&gt;&lt;img src="imgs/1_thumb.jpg" alt="" /&gt;&lt;/li&gt; &lt;li rel='2'&gt;&lt;img src="imgs/3_thumb.jpg" alt="" /&gt;&lt;/li&gt;--%&gt; &lt;asp:Repeater ID="RepeaterIconBanner" runat="server"&gt; &lt;HeaderTemplate&gt; &lt;/HeaderTemplate&gt; &lt;ItemTemplate&gt; &lt;li rel='&lt;%#(Container.ItemIndex + 1).ToString() %&gt;'&gt; &lt;img src="&lt;%# Eval("Path") %&gt;" width="50" height="50" /&gt;&lt;/li&gt; &lt;/ItemTemplate&gt; &lt;SeparatorTemplate&gt; &lt;/SeparatorTemplate&gt; &lt;/asp:Repeater&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class='clearfix'&gt;&lt;/div&gt; &lt;div id='push'&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>script side with jquery-1.4.1.min.js or greater</p> <pre><code>&lt;script type="text/javascript"&gt; var currentImage; var currentIndex = -1; var interval; function showImage(index) { if (index &lt; $('#bigPic img').length) { var indexImage = $('#bigPic img')[index] if (currentImage) { if (currentImage != indexImage) { $(currentImage).css('z-index', 2); clearTimeout(myTimer); $(currentImage).fadeOut(0, function () { myTimer = setTimeout("showNext()", 5000); $(this).css({ 'display': 'none', 'z-index': 1 }) }); } } $(indexImage).css({ 'display': 'block', 'opacity': 1 }); currentImage = indexImage; currentIndex = index; $('#thumbs li').removeClass('active'); $($('#thumbs li')[index]).addClass('active'); } } function showNext() { var len = $('#bigPic img').length; var next = currentIndex &lt; (len - 1) ? currentIndex + 1 : 0; showImage(next); } var myTimer; $(document).ready(function () { myTimer = setTimeout("showNext()", 5000); showNext(); //loads first image //$('#thumbs li').bind('click', function (e) { // var count = $(this).attr('rel'); // showImage(parseInt(count) - 1); // }); $('#thumbs li').bind('mouseenter', function (e) { var count = $(this).attr('rel'); showImage(parseInt(count) - 1); document.getElementsById('thumbs')[0].style['transition-delay'] = '0.2s'; }); }); &lt;/script&gt; </code></pre> <p>Css side</p> <pre><code>#push { height: 14px; /* .push must be the same height as .footer */ padding-top:0px; } #wrapper{ width:675px; height: auto !important; height: 96%; text-align:left; /*margin: 0 auto -30px;*/ /*padding:0 10px 0px 10px;*/ } .clearfix{ clear:both; float:none; } #bigPic{ width:665px; height:300px; border:1px solid #CCC; background-color:#FFF; margin-bottom:0px; } #bigPic img{ position:absolute; display:none; } #MainPic{ width:665px; height:300px; float:right; border:1px solid #CCC; background-color:#FFF; margin-bottom:0px; } #MainPic img{ position:absolute; display:none; } ul#thumbs li.active{ background: transparent url(/img/newbannerimage2/icon-uparrowsmallwhite.png)top center no-repeat ; text-align:center; /*border:1px solid #000;*/ /*padding:2px;*/ padding-top: 8px; } ul#thumbs, ul#thumbs li{ /*margin:0; padding:0;*/ list-style:none; text-align:center; } ul#thumbs li{ float:left; margin-right: 3.99px; margin-bottom:5px; /*border:1px solid #CCC*/; /*padding:2px;*/ padding-top: 8px; cursor:pointer; } ul#thumbs img{ float:left; width:50px; height:50px; line-height:80px; overflow:hidden; position:relative; z-index:1; border:1px solid #cecece; } </code></pre> <p>I created with repater but you can create whatever you want </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload