﻿<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <atom:link href="http://www.sunblognuke.com/Default.aspx?TabId=57&amp;rssid=6&amp;categoryid=26" rel="self" type="application/rss+xml" />
    <title>SunBlogNuke Team Blog - jQuery</title>
    <link>http://www.sunblognuke.com/Default.aspx?TabId=57&amp;rssid=6&amp;categoryid=26</link>
    <description>Sharing some tips &amp;amp; trick about jQuery.</description>
    <ttl>60</ttl>
    <language>en-US</language>
    <generator>SunBlogNuke RSS Generator Version 5.0.0.0</generator>
    <pubDate>Sun, 05 Feb 2012 18:42:23 GMT</pubDate>
    <lastBuildDate>Sun, 05 Feb 2012 18:42:23 GMT</lastBuildDate>
    <item>
      <title>Amazing Slide Thumbs with DNN Blog Posts</title>
      <category domain="http://www.sunblognuke.com/blog/categoryid/26/jquery.aspx">jQuery</category>
      <category domain="http://www.sunblognuke.com/blog/categoryid/25/sunblognuke.aspx">SunBlogNuke</category>
      <category domain="http://www.sunblognuke.com/blog/categoryid/21/tips-tricks.aspx">Tips &amp; Tricks</category>
      <link>http://www.sunblognuke.com/blog/entryid/386/amazing-slide-thumbs-with-dnn-blog-posts.aspx</link>
      <description><![CDATA[  <p><img style="display: block; float: none; margin-left: auto; margin-right: auto" class="doubleborder" alt="slide_thumbs" src="http://www.sunblognuke.com/Portals/0/SunBlogNuke/6/Windows-Live-Writer/Amazing-Slide-Thumb-with-DNN-Blog-Posts_EF2E/slide_thumbs.jpg" width="487" height="476" /></p>  <p>jQuery sliders have been spotted to be commonly used in lots of website to display the images/contents in different impressive ways. Since apart from showing large amount of core site content in a limited space on a website, any jQuery slider also has a great capability to engage the viewers and trigger their interest towards what is being shown to them. In the DNN platform,  it’s also a very popular functional widget and there are lots of slider modules for sale in the <a href="http://www.snowcovered.com" rel="nofollow" target="_blank">snowcovered.com</a>. In my opinion, those modules have the vital disadvantage that they are built with static contents and independent with any content publishing tool. In the end you have to modify them one by one if you want to make it look more dynamic. Now we would like to share the alternative useful tool with building neat, elegant and versatile site components with dynamic effects. Yes, that is the Content Slider Widget(CSW) for Ultimate DNN Blog Module – <a title="Ultimate DNN Blogging Module" href="http://www.sunblognuke.com/" target="_blank">SunBlogNuke</a>. </p>  <p>With the help of jQuery & CSW, you will be able to create any super content sliders with your dnn blog posts. So if you’ve been wondering how jQuery content sliders are accomplished and want to try implementing some of them on your DotNetNuke website, here this tutorial will help you with that.  Today we just showcase the amazing slide thumb on how to make viewing images or other site content more comforting and intuitive. Take a look at how the slide thumbs actions – <a href="http://www.sunblognuke.com/showcase/case_study.aspx" target="_blank">demo link</a>. Then let’s go ahead. </p>  <p>In the beginning, please refer to the similar tutorial [<a href="http://www.sunblognuke.com/Support/Docs/entryid/357/Build-Awesome-Content-Slider-for-DNN.aspx" target="_blank">Create an Awesome Content Slider with SunBlogNuke</a>] for some basic concepts, such as custom fields. This slide thumbs requires one original image with a smaller thumbnail for navigation at the bottom. Here we just build the thumbnail with custom field key called "thumbnail" and retrieve the first image from the post content for the original image, for which you can utilize the token [THUMBNAIL]. All right, suppose that the blog posts are ready to showcase now. Next just follow up the steps below:</p>  <p>1) Complete the similar preparation process mentioned in the tutorial [<a href="http://www.sunblognuke.com/Support/Docs/entryid/357/Build-Awesome-Content-Slider-for-DNN.aspx" target="_blank">Create an Awesome Content Slider with SunBlogNuke</a>]. The folder called 'slide_thumbs' in this sample and please download it <a href="http://www.sunblognuke.com/LinkClick.aspx?fileticket=5wOc25S9HPQ%3d&tabid=88&mid=549" rel="nofollow" target="_blank">here</a>.</p>  <p>2) Enter the 'Widget Settings' of Content Slider Widget.</p>  <p>3) Fill in the external utility scripts and it should formatted as http://yourdomain.com/portals/XX/slide_thumbs/slide_thumbs.js.</p>  <p>4) Fill in the external utility styles and it should formatted as http://yourdomain.com/portals/XX/slide_thumbs/style.css.</p>  <p>5) In the "Extra Template" text area, enter the following code: </p>  <pre class="code">{block:first}
<span style="color: blue"><</span><span style="color: #a31515">div </span><span style="color: red">id</span><span style="color: blue">="preview_wrap">
<</span><span style="color: #a31515">div </span><span style="color: red">id</span><span style="color: blue">="preview_outer">
<</span><span style="color: #a31515">div </span><span style="color: red">id</span><span style="color: blue">="preview_inner">
<</span><span style="color: #a31515">div</span><span style="color: blue">><</span><span style="color: #a31515">img </span><span style="color: red">src</span><span style="color: blue">="[THUMBNAIL]" </span><span style="color: red">alt</span><span style="color: blue">="[TITLE]" />
<</span><span style="color: #a31515">a </span><span style="color: red">href</span><span style="color: blue">="[LINK]"></span>[TITLE]<span style="color: blue"></</span><span style="color: #a31515">a</span><span style="color: blue">>
</</span><span style="color: #a31515">div</span><span style="color: blue">>
</span>{/block:first}
{block:last}
<span style="color: blue"><</span><span style="color: #a31515">div</span><span style="color: blue">><</span><span style="color: #a31515">img </span><span style="color: red">src</span><span style="color: blue">="[THUMBNAIL]" </span><span style="color: red">alt</span><span style="color: blue">="[TITLE]" /><</span><span style="color: #a31515">a </span><span style="color: red">href</span><span style="color: blue">="[LINK]"></span>[TITLE]<span style="color: blue"></</span><span style="color: #a31515">a</span><span style="color: blue">></</span><span style="color: #a31515">div</span><span style="color: blue">>
</</span><span style="color: #a31515">div</span><span style="color: blue">>
</</span><span style="color: #a31515">div</span><span style="color: blue">>
</</span><span style="color: #a31515">div</span><span style="color: blue">>
</span>{/block:last}
<span style="color: blue"><</span><span style="color: #a31515">div</span><span style="color: blue">><</span><span style="color: #a31515">img </span><span style="color: red">src</span><span style="color: blue">="[THUMBNAIL]" </span><span style="color: red">alt</span><span style="color: blue">="[TITLE]" /><</span><span style="color: #a31515">a </span><span style="color: red">href</span><span style="color: blue">="[LINK]"></span>[TITLE]<span style="color: blue"></</span><span style="color: #a31515">a</span><span style="color: blue">></</span><span style="color: #a31515">div</span><span style="color: blue">></span></pre>

<p>It built the main section to show the original image with some fields, like post title & link. The extra template is totally new option and it is introduced in the CSW from v4.5. And you maybe have noticed the new tokens  {block:first} & {block:last}, with which creating flexible layout will be more easier and handy to use. Just remember how to user them as follows:</p>

<p><strong>{block:first}xxx{/block:first}</strong> : it wraps the first item in the list and you can stand up it with different tokens or tags. For example you can wrap the started container tag <ul> here.</p>

<p><strong>{block:last} xxx{block:first} </strong>: it wraps the last item in the list and you can stand up it with different tokens or tags. For example you can wrap the closed container tag </ul> here.</p>

<p>Note that the left tags exclude the block sections {block:first}xxx{/block:first} and  {block:last} xxx{block:first}  will be the common item template.</p>

<p>6) In the "Item Template" text area, enter the following code: </p>

<pre class="code">{block:first}
<span style="color: blue"><</span><span style="color: #a31515">div </span><span style="color: red">id</span><span style="color: blue">="thumbs">
<</span><span style="color: #a31515">div </span><span style="color: red">id</span><span style="color: blue">="arrow">
</</span><span style="color: #a31515">div</span><span style="color: blue">>
<</span><span style="color: #a31515">span</span><span style="color: blue">><</span><span style="color: #a31515">img </span><span style="color: red">src</span><span style="color: blue">="[customfield:thumbnail]" </span><span style="color: red">alt</span><span style="color: blue">="[TITLE]" /></</span><span style="color: #a31515">span</span><span style="color: blue">></span>{/block:first}
{block:last}<span style="color: blue"><</span><span style="color: #a31515">span</span><span style="color: blue">><</span><span style="color: #a31515">img </span><span style="color: red">src</span><span style="color: blue">="[customfield:thumbnail]" </span><span style="color: red">alt</span><span style="color: blue">="[TITLE]" /></</span><span style="color: #a31515">span</span><span style="color: blue">></</span><span style="color: #a31515">div</span><span style="color: blue">></span>{/block:last}
<span style="color: blue"><</span><span style="color: #a31515">span</span><span style="color: blue">><</span><span style="color: #a31515">img </span><span style="color: red">src</span><span style="color: blue">="[customfield:thumbnail]" </span><span style="color: red">alt</span><span style="color: blue">="[TITLE]" /></</span><span style="color: #a31515">span</span><span style="color: blue">></span></pre>

<p>It built the thumbnail navigation in the bottom.</p>

<p>6) Click 'Upadte' to save all the modifies and the slideshow will work like a charm. Take a look at how the slide thumbs actions – <a href="http://www.sunblognuke.com/showcase/case_study.aspx" target="_blank">demo link</a> again. </p>

<p>ps: this tutorial was inspired by the post <a href="http://jqueryglobe.com/article/slide-thumbs">http://jqueryglobe.com/article/slide-thumbs</a>. </p>]]></description>
      <dc:creator>Baldwin</dc:creator>
      <comments>http://www.sunblognuke.com/blog/entryid/386/amazing-slide-thumbs-with-dnn-blog-posts.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.sunblognuke.com/blog/entryid/386/amazing-slide-thumbs-with-dnn-blog-posts.aspx</guid>
      <pubDate>Wed, 11 May 2011 16:38:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.sunblognuke.com/DesktopModules/SunBlog/Views/Handlers/Trackback.ashx?id=386</trackback:ping>
    </item>
    <item>
      <title>Create the navigable content slideshow for dnn website</title>
      <category domain="http://www.sunblognuke.com/blog/categoryid/26/jquery.aspx">jQuery</category>
      <category domain="http://www.sunblognuke.com/blog/categoryid/25/sunblognuke.aspx">SunBlogNuke</category>
      <category domain="http://www.sunblognuke.com/blog/categoryid/21/tips-tricks.aspx">Tips &amp; Tricks</category>
      <link>http://www.sunblognuke.com/blog/entryid/358/create-the-navigable-content-slideshow-for-dnn-website.aspx</link>
      <description><![CDATA[<p><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto; padding-top: 0px" title="The navigable content slideshow built with Content Slider Widget" border="0" alt="Slideshow" src="http://www.sunblognuke.com/Portals/0/SunBlogNuke/6/Windows-Live-Writer/79b87a9f1922_13534/Slideshow_1.png" width="599" height="344" /></p>  <p>From v4.2.0 , the Ultimate DNN Blog Module – <a title="Ultimate DNN Blogging Module" href="http://www.sunblognuke.com/" target="_blank">SunBlogNuke</a> includes custom fields features and the Content Slider Widget supports to include external scripts and styles easily. Now we have the ability to set up your content widget as a list and apply some cool jQuery slider scripts to it without any additional steps. Today we would like to show you how to integrate it with Coin Slider Plugin. First take a look at how the navigable content slideshow actions – <a title="Demo for integrating Content Slider Widget with Coin Slider" href="http://demo.sunblognuke.com/Channel_Demo/Coin_Slider_Demo.aspx" target="_blank">demo link</a>. Then let’s go ahead the great journey for <a href="http://www.sunblognuke.com/Support/Docs/entryid/357/Build-Awesome-Content-Slider-for-DNN.aspx" target="_blank">building an awesome content slider</a> in your home page. </p>]]></description>
      <dc:creator>Baldwin</dc:creator>
      <comments>http://www.sunblognuke.com/blog/entryid/358/create-the-navigable-content-slideshow-for-dnn-website.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.sunblognuke.com/blog/entryid/358/create-the-navigable-content-slideshow-for-dnn-website.aspx</guid>
      <pubDate>Thu, 27 Jan 2011 00:00:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.sunblognuke.com/DesktopModules/SunBlog/Views/Handlers/Trackback.ashx?id=358</trackback:ping>
    </item>
    <item>
      <title>Retrieving Feed in DotNetNuke with jQuery</title>
      <category domain="http://www.sunblognuke.com/blog/categoryid/27/dotnetnuke.aspx">DotNetNuke</category>
      <category domain="http://www.sunblognuke.com/blog/categoryid/26/jquery.aspx">jQuery</category>
      <category domain="http://www.sunblognuke.com/blog/categoryid/21/tips-tricks.aspx">Tips &amp; Tricks</category>
      <link>http://www.sunblognuke.com/blog/entryid/237/retrieving-feed-in-dotnetnuke-with-jquery.aspx</link>
      <description><![CDATA[  <p>With more clients paying more attention to our Ultimate DNN Blog Module – <a title="Ultimate DNN Blog Module" href="http://sunblognuke.com" target="_blank">SunBlogNuke</a>, this blogging engine for DotNetNuke platform have been used by more and more excellent websites, like <a href="http://developer.db4o.com" rel="nofollow" target="_blank">db4 developer website</a>. In the agile process of SunBlogNuke development, we embraced changes and focused more attentions on clients’ feedback or feature request. If you have more questions or any suggestions for our blog module, please feel free to let us know or begin a new post in <a title="Discussions on the DNN Blogging Module and DotNetNuke Support" href="http://www.sunblognuke.com/Support/Forums.aspx" target="_blank">our forum</a>. We are there for you and will try our best to help you. Here I also would like to thank some clients for your awesome contributions in our community, like <a href="http://www.sunblognuke.com/Support/Forums/ctl/PublicProfile/mid/429/userid/135.aspx" rel="nofollow" target="_blank">Eric</a> and <a href="http://www.sunblognuke.com/Support/Forums/ctl/PublicProfile/mid/429/userid/200.aspx" rel="nofollow" target="_blank">Matt</a>.</p>  <p>Today I would like to cover a tip shared by Eric in our support forum. You will learn how to retrieve feed in DotNetNuke with jQuery. Please visit <a href="http://demo.sunblognuke.com/Channel_Demo/Testing.aspx">the demo link</a> and <a href="http://developer.db4o.com" rel="nofollow" target="_blank">db4 developer website</a> to see how it action firstly. Okey, let us go ahead the integration process below on how to add a blogging feed to your site.</p>  <p>1) Make sure whether there exist the core jQuery framework in the current page. It should be there if your website is above 5.x.</p>  <p>2) Add the Html module to your page and click "Edit Content" and enter html editor panel.</p>  <p>3) Switch to "Rich Text Editor" mode and click "Source" into html source as screenshot below:</p>  <p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Rich-Editor" border="0" alt="Rich-Editor" src="http://www.sunblognuke.com/Portals/0/SunBlogNuke/6/WindowsLiveWriter/TurnContentSliderWidgetintoajQuerySilder_686B/Rich-Editor_3.png" width="475" height="218" /> </p>  <p>4) Copy the following codes and paste it into the text area:</p>  <pre class="code"><span style="color: blue"><</span><span style="color: #a31515">div </span><span style="color: red">id</span><span style="color: blue">="rssdata" </span><span style="color: red">class</span><span style="color: blue">="community_activity">
    <</span><span style="color: #a31515">div </span><span style="color: red">class</span><span style="color: blue">="loading"></span>loading activity feed...<span style="color: blue"></</span><span style="color: #a31515">div</span><span style="color: blue">>
</</span><span style="color: #a31515">div</span><span style="color: blue">>

<</span><span style="color: #a31515">script </span><span style="color: red">type</span><span style="color: blue">="text/javascript" </span><span style="color: red">language</span><span style="color: blue">="javascript">
    </span>$(<span style="color: blue">function</span>() {
        <span style="color: blue">var </span>pipe_url = <span style="color: #a31515">'YOURFEEDURL'</span>; <span style="color: green">// e.g '/Blogs/Community/tabid/166/rssid/0/Default.aspx';
        </span><span style="color: blue">var </span>max_records = 4;
        <span style="color: blue">var </span>item_style = <span style="color: #a31515">'box_dark'</span>;
        <span style="color: blue">var </span>item_style_alt = <span style="color: #a31515">'box_light'</span>;

        $.<span style="color: blue">get</span>(pipe_url, <span style="color: blue">function</span>(xml) {
            $(<span style="color: #a31515">"item"</span>, xml).each(<span style="color: blue">function</span>(index, item) {
                <span style="color: blue">if </span>(index >= max_records) <span style="color: blue">return</span>; <span style="color: green">//short-circut for the max_records
                </span><span style="color: blue">var </span>s = (index % 2 == 0) ? item_style : item_style_alt;
                <span style="color: blue">var </span>item_html = <span style="color: #a31515">'<div class="box_size ' </span>+ s + <span style="color: #a31515">'"><a href="' </span>+ $(<span style="color: #a31515">"link"</span>, item).text() + <span style="color: #a31515">'">' </span>+ $(<span style="color: #a31515">"title"</span>, item).text() + <span style="color: #a31515">'</a></li>'</span>;
                $(<span style="color: #a31515">'#rssdata'</span>).append(item_html);
            });

            $(<span style="color: #a31515">'#rssdata div.loading'</span>).fadeOut();
            $(<span style="color: #a31515">'#rssdata'</span>).slideDown();
        });
    });
<span style="color: blue"></</span><span style="color: #a31515">script</span><span style="color: blue">></span></pre>

<p>that's all the code you need. You just need to replace the token [YOURFEEDURL] with your specific feed source. Also  you can do some more things basing the code snippet, like rendering the description and publish date. Please refer to the related resources in the end of the post.</p>

<p>5) Click "Save" and return front-end page. Then you will discover that the slider works like a charm. :)</p>

<p>Note that you may need to add some styles into skin file (skin.css) for making your slider more cool, for example the box_dark & box_light mentioned in the above code sample.</p>

<p><strong>Related resources:</strong></p>

<p><a href="http://visualrinse.com/2008/09/24/how-to-build-a-simple-rss-reader-with-jquery">http://visualrinse.com/2008/09/24/how-to-build-a-simple-rss-reader-with-jquery</a></p>]]></description>
      <dc:creator>Baldwin</dc:creator>
      <comments>http://www.sunblognuke.com/blog/entryid/237/retrieving-feed-in-dotnetnuke-with-jquery.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.sunblognuke.com/blog/entryid/237/retrieving-feed-in-dotnetnuke-with-jquery.aspx</guid>
      <pubDate>Wed, 16 Jun 2010 19:49:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.sunblognuke.com/DesktopModules/SunBlog/Views/Handlers/Trackback.ashx?id=237</trackback:ping>
    </item>
    <item>
      <title>Turn Content Slider Widget into a jQuery Carousel</title>
      <category domain="http://www.sunblognuke.com/blog/categoryid/26/jquery.aspx">jQuery</category>
      <category domain="http://www.sunblognuke.com/blog/categoryid/25/sunblognuke.aspx">SunBlogNuke</category>
      <category domain="http://www.sunblognuke.com/blog/categoryid/21/tips-tricks.aspx">Tips &amp; Tricks</category>
      <link>http://www.sunblognuke.com/blog/entryid/236/turn-content-slider-widget-into-a-jquery-carousel.aspx</link>
      <description><![CDATA[  <p>As <a href="http://www.ralphwilliams.com/home/entryid/47/turn-dnn-announcements-module-into-a-jquery-slider.aspx" rel="nofollow" target="_blank">the awesome post</a> covered, you can turn turn DNN Announcements Module into a jQuery Slider easily with some customized steps. Now I would like to show you that we also can integrated Content Slider Widget (the core widget of Ultimate DNN Blog Module – <a title="Ultimate DNN Blog Module" href="http://sunblognuke.com" target="_blank">SunBlogNuke</a>) with a jQuery carousel seamlessly and easily and make it run well as you expected. Please visit <a href="http://demo.sunblognuke.com/Channel_Demo/Testing.aspx" rel="nofollow" target="_blank">the demo link</a> to see how it action.</p>  <p>Okey, let us go ahead the customized process below on how to add it to your site. </p>  <p>1) Add the Content Slider Widget module to your page.</p>  <p>2) Enter the "Widget Settings" panel. Note that we just focus on the template configures in the following steps and you can feel free to configure other settings.</p>  <p>3) In the "Header Markup" text area, enter the following code:</p>  <pre class="code"><span style="color: blue"><</span><span style="color: #a31515">div </span><span style="color: red">class</span><span style="color: blue">="js-carousel-post cleared">
    <</span><span style="color: #a31515">div </span><span style="color: red">id</span><span style="color: blue">="js-carousel" </span><span style="color: red">class</span><span style="color: blue">="container">
        <</span><span style="color: #a31515">ul</span><span style="color: blue">></span></pre>

<p>4) In the "Footer Markup" text area, enter the following code to close out the ul and div tags:</p>

<pre class="code">        <span style="color: blue"></</span><span style="color: #a31515">ul</span><span style="color: blue">>
    </</span><span style="color: #a31515">div</span><span style="color: blue">>
</</span><span style="color: #a31515">div</span><span style="color: blue">></span></pre>

<p>5) In the "Item Template" text area, enter the following code for showing item content:</p>

<pre class="code"><span style="color: blue"><</span><span style="color: #a31515">li </span><span style="color: red">id</span><span style="color: blue">="postItem_[POSTID]">
    <</span><span style="color: #a31515">h3</span><span style="color: blue">><</span><span style="color: #a31515">a </span><span style="color: red">href</span><span style="color: blue">="[TARGET]"></span>[TITLE]<span style="color: blue"></</span><span style="color: #a31515">a</span><span style="color: blue">></</span><span style="color: #a31515">h3</span><span style="color: blue">>
    <</span><span style="color: #a31515">p</span><span style="color: blue">></span>[EXCERPTTEXT]<span style="color: blue"></</span><span style="color: #a31515">p</span><span style="color: blue">>
</</span><span style="color: #a31515">li</span><span style="color: blue">></span></pre>

<p>6) Make sure whether there exist the core jQuery framework in the current page. It should be there if your website is above 5.x.</p>

<p>7) Add the Html module to your page and click "Edit Content" and enter html editor panel.</p>

<p>8) Switch to "Rich Text Editor" mode and click "Source" into html source as screenshot below:</p>

<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Rich-Editor" border="0" alt="Rich-Editor" src="http://www.sunblognuke.com/Portals/0/SunBlogNuke/6/WindowsLiveWriter/TurnContentSliderWidgetintoajQuerySilder_686B/Rich-Editor_3.png" width="475" height="218" /> </p>

<p>9) Copy the following codes and paste it into the text area:</p>

<pre class="code"><span style="color: blue"><</span><span style="color: #a31515">style </span><span style="color: red">type</span><span style="color: blue">="text/css">
    </span><span style="color: #a31515">.js-carousel-post
    </span>{
        <span style="color: red">position</span>: <span style="color: blue">relative</span>;
    }
    <span style="color: #a31515">.js-carousel-post #js-carousel
    </span>{
        <span style="color: red">width</span>: <span style="color: blue">600px</span>;
        <span style="color: red">margin</span>: <span style="color: blue">0 auto</span>;
        <span style="color: red">float</span>: <span style="color: blue">left</span>;
        <span style="color: red">position</span>: <span style="color: blue">relative</span>;
    }
    <span style="color: #a31515">.js-carousel-post .container
    </span>{
        <span style="color: red">overflow</span>: <span style="color: blue">hidden</span>; <span style="color: green">/* fix ie overflow issue */
        </span><span style="color: red">position</span>: <span style="color: blue">relative</span>;
        <span style="color: red">width</span>: <span style="color: blue">610px</span>;
        <span style="color: red">height</span>: <span style="color: blue">230px</span>;
    }
    <span style="color: #a31515">.js-carousel-post ul
    </span>{
        <span style="color: red">position</span>: <span style="color: blue">relative</span>;
        <span style="color: red">left</span>: <span style="color: blue">0</span>;
        <span style="color: red">top</span>: <span style="color: blue">0</span>;
        <span style="color: red">margin</span>: <span style="color: blue">0 0 0 -619px</span>;
        <span style="color: red">width</span>: <span style="color: blue">9999px</span>;
        <span style="color: red">height</span>: <span style="color: blue">230px</span>;
        <span style="color: red">overflow</span>: <span style="color: blue">hidden</span>;
    }
    <span style="color: #a31515">.js-carousel-post li
    </span>{
        <span style="color: red">width</span>: <span style="color: blue">585px</span>;
        <span style="color: red">float</span>: <span style="color: blue">left</span>;
        <span style="color: red">margin</span>: <span style="color: blue">0 3px</span>;
        <span style="color: red">padding</span>: <span style="color: blue">0 5px</span>;
        <span style="color: red">height</span>: <span style="color: blue">230px</span>;
        <span style="color: red">list-style</span>: <span style="color: blue">none</span>;
    }
<span style="color: blue"></</span><span style="color: #a31515">style</span><span style="color: blue">>  
<</span><span style="color: #a31515">script </span><span style="color: red">type</span><span style="color: blue">="text/javascript" </span><span style="color: red">language</span><span style="color: blue">="javascript">
    var </span>carousel = (<span style="color: blue">function</span>() {
        <span style="color: green">// Configurable Variables
        </span><span style="color: blue">var </span>init_autoRun = <span style="color: blue">true</span>;
        <span style="color: blue">var </span>autoSpeed = 2000;
        <span style="color: green">// Common Variables
        </span><span style="color: blue">var </span>li_posL = parseInt($(<span style="color: #a31515">'#js-carousel ul'</span>).css(<span style="color: #a31515">'left'</span>));
        <span style="color: blue">var </span>li_w = $(<span style="color: #a31515">'#js-carousel li'</span>).outerWidth();
        <span style="color: blue">var </span>ul_posL = li_w * (-0);

        <span style="color: blue">function </span>rotation() {
            <span style="color: blue">var </span>indent = li_posL - li_w;
            $(<span style="color: #a31515">'#js-carousel ul'</span>).animate({ <span style="color: #a31515">'left'</span>: indent }, <span style="color: #a31515">'slow'</span>, <span style="color: blue">function</span>() {
                $(<span style="color: #a31515">'#js-carousel li:last'</span>).after($(<span style="color: #a31515">'#js-carousel li:first'</span>));
                $(<span style="color: #a31515">'#js-carousel ul'</span>).css({ <span style="color: #a31515">'left'</span>: ul_posL });
            });
            <span style="color: blue">return false</span>;
        }

        $(<span style="color: #a31515">'#js-carousel li:first'</span>).before($(<span style="color: #a31515">'#js-carousel li:last'</span>));
        $(<span style="color: #a31515">'#js-carousel ul'</span>).css({ <span style="color: #a31515">'left'</span>: ul_posL });
        <span style="color: blue">if </span>(init_autoRun) {
            <span style="color: blue">var </span>autoRun = setInterval(rotation, autoSpeed);
            <span style="color: green">//if mouse hover, pause the auto rotation, otherwise rotate it
            </span>jQuery(<span style="color: #a31515">'#js-carousel'</span>).hover(<span style="color: blue">function</span>() {
                clearInterval(autoRun);
            }, <span style="color: blue">function</span>() {
                autoRun = setInterval(rotation, autoSpeed);
            });
        }
    });

    jQuery(document).ready(<span style="color: blue">function</span>() {
        carousel();
    });
<span style="color: blue"></</span><span style="color: #a31515">script</span><span style="color: blue">>
</span></pre>

<p>10) Click "Save" and return front-end page. Then you will discover that the Content Slider Widget had been turned into a jQuery carousel and works like a charm. :)</p>

<p>Note that you choose some alternative ways to complete the steps 7)-10), like adding style into skin style file (skin.css) and attaching script into skin control (YourSkinName.ascx).</p>

<h3>More enhancements you can do</h3>

<p>Actually you can do more customizations than what we mentioned above. This tutorial is just a start for you, for example, you can create a cool navigation (Previous & Next) with the content slider or integrate more extremely popular jQuery plugins like <a href="http://www.serie3.info/s3slider/demonstration.html" rel="nofollow" target="_blank">s3slider</a> or <a href="http://bxslider.com/" rel="nofollow" target="_blank">bxSlider</a>. In a word, it depends on what you image.</p>

<h3>What we can do for you</h3>

<p>Yesh, we will make the content slider widget more flexible and extendible. Next we will provide a built-in way to implement those customizations in the widget itself but not with any external helps. Please stay tune and leave a note if you have any advice.:)</p>]]></description>
      <dc:creator>Baldwin</dc:creator>
      <comments>http://www.sunblognuke.com/blog/entryid/236/turn-content-slider-widget-into-a-jquery-carousel.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.sunblognuke.com/blog/entryid/236/turn-content-slider-widget-into-a-jquery-carousel.aspx</guid>
      <pubDate>Tue, 08 Jun 2010 15:00:00 GMT</pubDate>
      <slash:comments>6</slash:comments>
      <trackback:ping>http://www.sunblognuke.com/DesktopModules/SunBlog/Views/Handlers/Trackback.ashx?id=236</trackback:ping>
    </item>
    <item>
      <title>4 Simple Steps to Apply Facebox Effect within DNN Blog</title>
      <category domain="http://www.sunblognuke.com/blog/categoryid/26/jquery.aspx">jQuery</category>
      <category domain="http://www.sunblognuke.com/blog/categoryid/21/tips-tricks.aspx">Tips &amp; Tricks</category>
      <link>http://www.sunblognuke.com/blog/entryid/176/4-simple-steps-to-apply-facebox-effect-within-dnn-blog.aspx</link>
      <description><![CDATA[  <p><em>ps: If you are focusing on our team activity those days, you should have read the post </em><a href="http://www.sunblognuke.com/Blog/entryid/106/DNN-Architecture-Design-Diagram.aspx"><em>DNN Architecture Design Diagram</em></a><em>, which I mentioned that I will complete a detailed tutorial to share how to utilize the built-in lightbox(or facebox) feature when you want to show more big and clear presentation in your post. Today the guide was finally done as follows.</em></p>  <p>Facebox is a jQuery-based, Facebook-style lightbox which can display images, divs, or entire remote pages. And now, you can use it with your DNN module to make your DNN module more interactive. Luckily our ultimate dnn blog module – <a title="Ultimate DNN Blog Module" href="http://sunblognuke.com" target="_blank">SunBlogNuke</a> had integrated with facebox plugin and implemented it into some excellent features. Today I would like to show you how to apply lightbox effect for some big image within dnn blog post. Note that we just demonstrated the process in Window Live Writer. Actually we also recommend that you should manage your posts with WLW, which will make your post management simply and easily. Now you just follow the simple steps below:</p>  <p>1) Open up your WLW and get started to write your post.</p>  <p>2) Just copy your big graphs or images into the content section of WLW and it will be scaled in to a little one. Also you can apply some options for some customized effects, like size, text wrapping, borders.</p>  <p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="dnn-deployment-option1 in 4 Simple Steps to Apply Facebox Effect within DNN Blog" border="0" alt="dnn-deployment-option1 in 4 Simple Steps to Apply Facebox Effect within DNN Blog" src="http://www.sunblognuke.com/Portals/0/SunBlogNuke/WindowsLiveWriter/3simplestepstoapplyfaceboxeffectwithindn_1359F/dnn-deployment-option1_3.png" width="208" height="441" />                             <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="dnn-deployment-option2 in 4 Simple Steps to Apply Facebox Effect within DNN Blog" border="0" alt="dnn-deployment-option2 in 4 Simple Steps to Apply Facebox Effect within DNN Blog" src="http://www.sunblognuke.com/Portals/0/SunBlogNuke/WindowsLiveWriter/3simplestepstoapplyfaceboxeffectwithindn_1359F/dnn-deployment-option2_3.png" width="211" height="430" /> </p>  <p>3) Set the option [Link to] as Source Picture and click the Options below. Then it should pop up the Source Picture Options window and there you can set it as follows and click "OK":</p>  <p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Source-Picture-Options in 4 Simple Steps to Apply Facebox Effect within DNN Blog" border="0" alt="Source-Picture-Options in 4 Simple Steps to Apply Facebox Effect within DNN Blog" src="http://www.sunblognuke.com/Portals/0/SunBlogNuke/WindowsLiveWriter/3simplestepstoapplyfaceboxeffectwithindn_1359F/Source-Picture-Options_3.png" width="278" height="229" /> </p>  <p>4) Switch the source tab at the left-bottom of content panel, find out the image tag section and insert the rel property for facebox detected. The following code should look like:</p>  <p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="dnn-blog-facebox in 4 Simple Steps to Apply Facebox Effect within DNN Blog" border="0" alt="dnn-blog-facebox in 4 Simple Steps to Apply Facebox Effect within DNN Blog" src="http://www.sunblognuke.com/Portals/0/SunBlogNuke/WindowsLiveWriter/3simplestepstoapplyfaceboxeffectwithindn_1359F/dnn-blog-facebox_3.png" width="544" height="97" /> </p>  <p>Okey, that’s all. Now the built-in facebox plugin will automatically attach the Facebook-style lightbox for your picture. </p>  <p>In the end I presented an illustration depicting a common scenario for DotNetNuke Deployment in the Enterprise. Click the image to zoom it for a higher-res version with built-in facebox.</p>  <p><a href="http://www.sunblognuke.com/Portals/0/SunBlogNuke/WindowsLiveWriter/3simplestepstoapplyfaceboxeffectwithindn_1359F/DNN-Deployment-Scenario_2.png" rel="facebox"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="DNN-Deployment-Scenario in 4 Simple Steps to Apply Facebox Effect within DNN Blog" border="0" alt="DNN-Deployment-Scenario in 4 Simple Steps to Apply Facebox Effect within DNN Blog" src="http://www.sunblognuke.com/Portals/0/SunBlogNuke/WindowsLiveWriter/3simplestepstoapplyfaceboxeffectwithindn_1359F/DNN-Deployment-Scenario_thumb.png" width="373" height="500" /></a></p>]]></description>
      <dc:creator>Baldwin</dc:creator>
      <comments>http://www.sunblognuke.com/blog/entryid/176/4-simple-steps-to-apply-facebox-effect-within-dnn-blog.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.sunblognuke.com/blog/entryid/176/4-simple-steps-to-apply-facebox-effect-within-dnn-blog.aspx</guid>
      <pubDate>Mon, 01 Feb 2010 22:58:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.sunblognuke.com/DesktopModules/SunBlog/Views/Handlers/Trackback.ashx?id=176</trackback:ping>
    </item>
    <item>
      <title>DNN Architecture Design Diagram</title>
      <category domain="http://www.sunblognuke.com/blog/categoryid/26/jquery.aspx">jQuery</category>
      <category domain="http://www.sunblognuke.com/blog/categoryid/21/tips-tricks.aspx">Tips &amp; Tricks</category>
      <link>http://www.sunblognuke.com/blog/entryid/106/dnn-architecture-design-diagram.aspx</link>
      <description><![CDATA[I got those extreme DNN Architecture Design Diagram from irob’s blog. Please refer to the original post DotNetNuke Architecture Diagram. In the mean time, I would like to show you how to apply the built-in lightbox(or facebox) feature of SunBlogNuke module for your images when you are blogging. ]]></description>
      <dc:creator>Baldwin</dc:creator>
      <comments>http://www.sunblognuke.com/blog/entryid/106/dnn-architecture-design-diagram.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.sunblognuke.com/blog/entryid/106/dnn-architecture-design-diagram.aspx</guid>
      <pubDate>Fri, 20 Nov 2009 13:06:10 GMT</pubDate>
      <slash:comments>2</slash:comments>
      <trackback:ping>http://www.sunblognuke.com/DesktopModules/SunBlog/Views/Handlers/Trackback.ashx?id=106</trackback:ping>
    </item>
    <item>
      <title>Using jQuery Timeago Plugin with DNN and Weblog</title>
      <category domain="http://www.sunblognuke.com/blog/categoryid/27/dotnetnuke.aspx">DotNetNuke</category>
      <category domain="http://www.sunblognuke.com/blog/categoryid/26/jquery.aspx">jQuery</category>
      <category domain="http://www.sunblognuke.com/blog/categoryid/25/sunblognuke.aspx">SunBlogNuke</category>
      <category domain="http://www.sunblognuke.com/blog/categoryid/21/tips-tricks.aspx">Tips &amp; Tricks</category>
      <link>http://www.sunblognuke.com/blog/entryid/98/using-jquery-timeago-plugin-with-dnn-and-weblog.aspx</link>
      <description><![CDATA[<p>Today I would like to share some tricks about integrating jQuery timeago plugin into DotNetNuke(DNN) and your blog, especially for the Ultimate blog module SunBlogNuke. With timeago plugin, you can customize the featured widget module with more fuzzy timestamps.</p> ]]></description>
      <dc:creator>Baldwin</dc:creator>
      <comments>http://www.sunblognuke.com/blog/entryid/98/using-jquery-timeago-plugin-with-dnn-and-weblog.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.sunblognuke.com/blog/entryid/98/using-jquery-timeago-plugin-with-dnn-and-weblog.aspx</guid>
      <pubDate>Mon, 09 Nov 2009 21:17:00 GMT</pubDate>
      <slash:comments>2</slash:comments>
      <trackback:ping>http://www.sunblognuke.com/DesktopModules/SunBlog/Views/Handlers/Trackback.ashx?id=98</trackback:ping>
    </item>
  </channel>
</rss>
