Tuesday, 27 July 2010
Simplex Celebrity - My premium template for Fashion and Celebrity niche
Thursday, 22 July 2010
Using Jquery plugin Innerfade to create news sticker bar
Have you take a look on my latest template Simplex Enews ? Do you notice in Breaking news ? What do you think about it ? In this post , I will show you a small tip for using this Jquery plugin to make a news sticker like that and more ^^
To make this news sticker ,I use InnerFade script . InnerFade is a small plugin for the jQuery-JavaScript-Library. It's designed to fade you any element inside a container in and out.
These elements could be anything you want, e.g. images, list-items, divs. It can be used to make a slideshow, advertising banners or stickers ,animation...

Live Demo
2, We have a HTML code like that .
Change the text and link to whatever you want . You can add some CSS code to make it look better .
3,Now add a little Jquery to make it work :
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="http://simplexportfolio.googlecode.com/files/jquery.innerfade.js"></script>
<script type="text/javascript">
$(document).ready(
function(){
$('#news').innerfade({
animationtype: 'slide',
speed: 750,
timeout: 2000,
type: 'random',
containerheight: '1em'
});
});
</script>
Ok,save it ,and we have a sticker
<ul id="banner">
<li>
<a href="......"><img src="banner1.jpg" /></a>
</li>
<li>
<a href="......"><img src="banner2.jpg" /></a>
</li>
<li>
<a href="......"><img src="banner3.jpg" /></a>
</li>
<li>
<a href="......"><img src="banner4.jpg" /></a>
</li>
</ul>
You can add or remove banner by add or remove <li> <a href="......"><img src="banner....jpg" /></a>
</li> for more or less banner.
2,The Jquery code like example A :
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="http://simplexportfolio.googlecode.com/files/jquery.innerfade.js"></script>
<script type="text/javascript">
$(document).ready(
function(){
$('ul#banner').innerfade({
speed: 1000,
timeout: 5000,
type: 'sequence',
containerheight: '220px'
});
});
</script>
Ok,save it and we are done .
<script type="text/javascript" src="http://simplexportfolio.googlecode.com/files/jquery.innerfade.js"></script>
<script type="text/javascript">
$(document).ready(
function(){
});
</script>
That's all for Innerfade Jquery plugin . Although simple but I think this plugin is very useful .If you need a light-weight , fast Jquery plugin for making a news sticker or rotating banner ,it's the plugin for you .
To make this news sticker ,I use InnerFade script . InnerFade is a small plugin for the jQuery-JavaScript-Library. It's designed to fade you any element inside a container in and out.
These elements could be anything you want, e.g. images, list-items, divs. It can be used to make a slideshow, advertising banners or stickers ,animation...
Live Demo
A,Make a Sticker
1,First of all ,create a HTML/Javascript widget in Blogger for script and HTML code .2, We have a HTML code like that .
<ul id="news">
<li> <a href="#n1">1 Lorem ipsum dolor</a> </li>
<li> <a href="#n2">2 Sit amet, consectetuer</a> </li>
<li> <a href="#n3">3 Sdipiscing elit,</a> </li>
<li> <a href="#n4">4 sed diam nonummy nibh euismod tincidunt ut</a> </li>
<li> <a href="#n5">5 Nec Lorem.</a> </li>
<li> <a href="#n6">6 Et eget.</a> </li>
<li> <a href="#n7">7 Leo orci pede.</a> </li>
<li> <a href="#n8">8 Ratio randorus wil.</a> </li>
</ul>
3,Now add a little Jquery to make it work :
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="http://simplexportfolio.googlecode.com/files/jquery.innerfade.js"></script>
<script type="text/javascript">
$(document).ready(
function(){
$('#news').innerfade({
animationtype: 'slide',
speed: 750,
timeout: 2000,
type: 'random',
containerheight: '1em'
});
});
</script>
B,Make an advertising banner
1, We have a code like that :<ul id="banner">
<li>
<a href="......"><img src="banner1.jpg" /></a>
</li>
<li>
<a href="......"><img src="banner2.jpg" /></a>
</li>
<li>
<a href="......"><img src="banner3.jpg" /></a>
</li>
<li>
<a href="......"><img src="banner4.jpg" /></a>
</li>
</ul>
You can add or remove banner by add or remove <li> <a href="......"><img src="banner....jpg" /></a>
</li> for more or less banner.
2,The Jquery code like example A :
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="http://simplexportfolio.googlecode.com/files/jquery.innerfade.js"></script>
<script type="text/javascript">
$(document).ready(
function(){
$('ul#banner').innerfade({
speed: 1000,
timeout: 5000,
type: 'sequence',
containerheight: '220px'
});
});
</script>
Ok,save it and we are done .
C,So the structure to call Innerfade
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script><script type="text/javascript" src="http://simplexportfolio.googlecode.com/files/jquery.innerfade.js"></script>
<script type="text/javascript">
$(document).ready(
function(){
$('ID or class of the element containing the fading objects').innerfade({ animationtype: Type of animation 'fade' or 'slide' (Default: 'fade'), speed: Fadingspeed in milliseconds or keywords (slow, normal or fast)(Default: 'normal'), timeout: Time between the fades in milliseconds (Default:'2000'), type: Type of slideshow: 'sequence', 'random' or 'random_start' (Default: 'sequence'), containerheight: Height of the containing element in any css-height-value (Default: 'auto'), runningclass: CSS-Class which the container get’s applied (Default: 'innerfade') }); </script>
That's all for Innerfade Jquery plugin . Although simple but I think this plugin is very useful .If you need a light-weight , fast Jquery plugin for making a news sticker or rotating banner ,it's the plugin for you .
Tuesday, 20 July 2010
Simplex Enews - Another magazine template
The latest version of Simplex Enews -click here
Monday, 19 July 2010
Adding counter to sequential list using Jquery
In my design work ,I have to create sequential lists ,for example ,a list of blog comments ,lists of users ... adding counter to these lists will make it look better but sometime it's hard to do manually . I find out a solution from webdesignerwall.com ,using jquery to add numbers to the list .


Live Demo
Here is detail instruction :
1,First,we need CSS code to decorating numbers
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#commentlist li").each(function (i) {
i = i+1;
$(this).prepend('<span class="commentnumber"> #' i '</span>');
});
});
</script>
This code will find all <li> elements covered under element which has id="commentlist" , and insert <span class="commentnumber"> #' i '</span> into each <li>.......</li>
so we get the result after adding code:
here is original HTML code
<ol id="commentlist">
<li>
............
</li>
<li>
...................
</li>
<li>
.................
</li>
</ol>
and here is the code after adding numbers
<ol id="commentlist">
<li>
<span class="commentnumber"> #1</span>
............
</li>
<li>
<span class="commentnumber"> #2</span>
...................
</li>
<li>
<span class="commentnumber"> #3</span>
.................
</li>
................
</ol>
That's all . Thanks for reading and I hope you find it useful
Live Demo
Here is detail instruction :
1,First,we need CSS code to decorating numbers
/* number style */2,Add this Jquery code anywhere in template or HTML file :
#commentlist {
margin: 10px 0 40px;
padding: 0;
}
#commentlist li {
padding: 10px 0 20px;
list-style: none;
border-top: solid 1px #ccc;
position: relative;
}
#commentlist cite {
font: bold 140%/110% Arial, Helvetica, sans-serif;
color: #666;
}
#commentlist .time {
color: #ccc;
margin: 0 0 10px;
}
#commentlist .commentnumber {
position: absolute;
right: 0;
top: 8px;
font: normal 200%/100% Georgia, "Times New Roman", Times, serif;
color: #ccc;
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#commentlist li").each(function (i) {
i = i+1;
$(this).prepend('<span class="commentnumber"> #' i '</span>');
});
});
</script>
This code will find all <li> elements covered under element which has id="commentlist" , and insert <span class="commentnumber"> #' i '</span> into each <li>.......</li>
so we get the result after adding code:
here is original HTML code
<ol id="commentlist">
<li>
............
</li>
<li>
...................
</li>
<li>
.................
</li>
</ol>
and here is the code after adding numbers
<ol id="commentlist">
<li>
<span class="commentnumber"> #1</span>
............
</li>
<li>
<span class="commentnumber"> #2</span>
...................
</li>
<li>
<span class="commentnumber"> #3</span>
.................
</li>
................
</ol>
That's all . Thanks for reading and I hope you find it useful
Thursday, 8 July 2010
Simplex Timeline - template for tech blog
In this post , I want to show you my latest template named : Simplex Timeline . I think this template is the best for tech blog ,but you can use it in other niches (of course ^^ ) .
Live Demo Download
Install instruction
1,Download template file .
2,Open template in any word editor you have ,the best is notepad++ ( MS Word is not recommended because it auto generate tags in template file after editing )
3,To change the logo ,find this code :
and change the link in bold to your logo URL.#head-content {
background: transparent;
background-image: url(http://img266.imageshack.us/img266/9598/simplextimeline.png);
background-position: 0px 0px;
background-repeat: no-repeat;
}
4, This is the code of Subscribe form :
<form onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=simplex', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true" target="popupwindow" method="post" action="http://feedburner.google.com/fb/a/mailverify">change the text in bold to your feedburner account .
<input type="hidden" name="uri" value="simplex"/>
<input type="hidden" value="en_US" name="loc"/>
<p class="email-form">
<input type="text" name="email" class="sub"/>
<input type="image" alt="submit" class="subbutton" src="http://img517.imageshack.us/img517/3158/blankdb.gif"/>
</p>
<div style="clear: both;"><small>Privacy guaranteed. We'll never share your info.</small></div>
</form>
5, This is the code for social network :
<div class="sub-icons">again ,change the text in bold to your accounts ^^
<a href="/feeds/posts/default" title="Subscribe via RSS Feed"><img align="top" alt="Subscribe via RSS Feed" src="http://img535.imageshack.us/img535/950/rss2t.png" class="rss-sub"/></a>
<a href="http://www.twitter.com/dinhquanghuy" title="Follow me on Twitter" rel="external" target="_blank"><img align="top" alt="Follow me on Twitter" src="http://img340.imageshack.us/img340/8055/twitter2e.png" class="twitter-sub"/></a>
<a href="http://www.facebook.com/contact.dinhquanghuy" rel="external" title="Connect with me on Facebook" target="_blank"><img align="top" alt="Connect with me on Facebook" src="http://img96.imageshack.us/img96/3849/facebook2q.png" class="facebook-sub"/></a>
<a href="http://www.linkedin.com/in/dinhquanghuy" rel="external" title="Connect with me on LinkedIn" target="_blank"><img align="top" alt="Connect with me on LinkedIn" src="http://img340.imageshack.us/img340/2030/linkedin2.png" class="linkedin-sub"/></a>
</div>
6,This is the code for Flickr gallery :
<script type="text/javascript">change the value 37304598@N02 to your Flickr ID
$(document).ready(function(){
$('#flickrphoto').jflickrfeed({
limit: 9,
qstrings: {
id: '37304598@N02'
},
itemTemplate: '<a href="{{image_b}}"><img src="{{image_s}}" alt="{{title}}" /></a>'
});
});
</script>
7,Ok ,save template and upload to Blogger .
8,Go to Dashboard ,continue to Page element
9,To add advert in top ,click on edit button in topads widget and paste your ads code into widget content (Adsense code ,for example ) . Do the same for midads ,ads,ads3 and ads4 widgets .
10,To add item to menu ,click on edit button and add link to each category in your blog . Link to each category has structure : http://{blog url}/search/label/{category} . Do the same for category and blogroll .
11,to add video ,click on video widget and paste the embed code of your video ,size for video is 286x210
12,you can add anything you want in text widget .
Ok,Save changes and you are done .
if you want to show a post in slider ,just add a label 'feature' to your post .There are maximum 4 posts in content slider .
That's all for installing this template . I hope this template helpful to you .
Subscribe to:
Posts (Atom)