Friday, 29 August 2008

5 Photoshop and Illustrator brushes set for web designer

This collection includes over 60 brushes: pencil lines, grunge Polaroid photos, diagonal lines for webpages background, safety pins and shape tags.


1. Lineart Brush (Download)
This brush for Illustrator will make your strokes look like they were drawn with a pencil. Thin were the stroke begins, wider in the middle, and back to thin were the stroke ends.



Each size comes in two variations - one with the stroke getting wider to the left and one with the stroke getting wider to the right. If you need other sizes just copy one of the sizes and modify it.


2. Polaroid Brushes (Download)
A nice collection of Polaroid brushes, for Photoshop useful to be used in grunge or vintage website style:





3. Diagonal Lines (Download)
This set of 17 diagonal lines brushes useful to design quickly background pattern for your websites.




4. Safety Pin (Download)
This is a set with six nice pin brushes for Photoshop.




5. Shape Tags (Download)
This is another brushes set of 23 shape tag very useful to design original tags in your websites.



If you have an interesting brushes set and you want to share it please add a comment!

Read More

Thursday, 28 August 2008

Beautiful and free social websites icon set for bloggers

I want to suggest you this beautiful and free icon set of the most popular social websites "in a bottle" for bloggers (for personal and not for commercial use) designed from the guys of Templates.com.

Take a look at Templates.com

Free Icon set for bloggers consists of 10 icons: StumbleUpon.com, Ma.gnolia.com, Technorati.com, del.icio.us, DesignFloat.com, Digg.com, RSS, Twitter.com, Facebook.com, Reddit.com. Each icon is produced in the following sizes: 80х80, 64х64, 32х32.



If you are courious about icon desing, you can learn more about the creation process of this Icon Set here.

Take a look at this link to download this icon set.

Templates.com

Read More

Elegant glass style navigation bar using CSS and toggle animated effect

Navigation bar is an important element of website design: this is an example which uses a dynamic submenu to display sublinks of the main tabs. This tutorial illustrates how to design an elegant glass style navigation bar with a nice toggle animation effect, using CSS and MooTools. The result is something like this:



Moving your mouse over a tab in the main menu, the submenu display several links related to the "topic" of the tab. On the right of the navigation bar, clicking on Hide submenu link, the submenu disappears/appears with a nice toggle animation.

Download the full code of this tutorial, ready to be customized and used in your web projects.

Download source code


1. HTML code
First of all, take a look at HTML code I used to design our navigation bar: all tabs are contained into a layer with id="navigation" and I used a list to design them. The structure is:



...and the code is:

<div id="navigation">
<a href="#" class="right_link" id="op1">Hide submenu</a>
<ul id="mymenu">
<li id="s1"><a href="#">Home</a></li>
<li id="s2"><a href="#">Tutorials</a></li>
<li id="s3"><a href="#">Showcases</a></li>
<li id="s4"><a href="#">Freebies</a></li>
</ul>
</div>


The submenu contains, for each tab, several links within some unordered lists:

<div id="sublinks">
<ul id="s1_m">
<li><a href="#">Upcoming</a></li>
<li><a href="#">Popular</a></li>
<li><a href="#">Best of...</a></li>
</ul>

<ul id="s2_m">
<li><a href="#">Ajax</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">Javascript</a></li>
<li><a href="#">Flash</a></li>
<li><a href="#">Photoshop</a></li>
</ul>

<ul id="s3_m">
<li><a href="#">CSS Websites</a></li>
<li><a href="#">Flash Websites</a></li>
<li><a href="#">Images</a></li>
</ul>

<ul id="s4_m">
<li><a href="#">Fonts</a></li>
<li><a href="#">Wallpapers</a></li>
<li><a href="#">Icons</a></li>
</ul>
</div>


Each list is related to a tab in the main menu (for example, ID tab= S1 -> ID list=S1_m). If you want to add other elements to the submenu you have just to add a new <ul> element with a progressive ID such as:

<ul id="s4_m">
<li><a href="#">...your links within li tag... </a></li>
...
</ul>
</div>


How you can see it's not complicated. If you are interested on CSS code download the source code of this tutorial. Now we are ready to take a look at the JavaScript code to enable animated effect.


3. Mootools + unobtrusive JavaScript code
At this point, we can try to implement all animation effects for this navigation bar using unobtrusive JavaScript technique, to separe JavaScript code form the content of the page. How I said, I used MooTools to implement toggle effect, so we have to add a link to MooTools framework copying the following code within the <head> tag of the web page:

<script type="text/javascript" src="mootools.svn.js"></script>

... and copy the following code below the previous code:

<script type="text/javascript">
window.addEvent('load', function(){

// Hide all submenu link
$('sublinks').getElements('ul').setStyle('display', 'none');

// Show by default the first submenu related to the tab "Home"
$('s1_m').setStyle('display', 'block');

$$('#mymenu li').each(function(el){
el.getElement('a').addEvent('mouseover', function(subLinkId){

var layer = subLinkId+"_m";

// Display current submenu
$('sublinks').getElements('ul').setStyle('display', 'none');
$(layer).setStyle('display', 'block');
}.pass( el.id)
);
});

// --------------------------------------- //
// SHOW and HIDE Submenu with MooTools Toggle animation

// Get the layer to animate
var mySlide = new Fx.Slide('sublinks');

// Prepare onClick event for the link with ID="op1"
$('op1').addEvent('click', function(e){

// Get text contained into the link :"Hide submenu"
var textLink = $('op1').innerHTML;

// When an user click on this link update text: "Hide submenu" or "Display submenu"
if(textLink=='Hide submenu'){
$('op1').innerHTML = 'Display submenu';
} else {
$('op1').innerHTML = 'Hide submenu';
}

// Event Toggle for the Submenu
e = new Event(e);
mySlide.toggle();
e.stop();
});
});
</script>


The code is very simple. I used all we already saw in my previous post about MooTools, but if you are a newbie I suggest you to take a look at this post and this post.

For suggests or questions please add a comment! Thanks!

Download source code


Elegant ScrollPanes with jQuery and CSS3Perfect pagination style using CSSHow to implement a launching soon page with PHP and jQuerySuper simple way to work with Twitter API (PHP + CSS)

Read More

Monday, 25 August 2008

Design a stunning Alert Box using MooTools

Do you want to change the default style of JavaScript Alert Box? Do you want to add a nice animation with MooTools? Take a look at this post!

About the Author

Eduardo Sada
Programmer and Web Designer
Coders.me

The Script

This tutorial explains how to design a stunning Alert Box which changes and improves the classic look of JavaScript Alert Boxes.



The result is something like these you can see in the previous picture. Alert box appears on the page, above all other page elements with a nice animation. Try it!

Download source code Take a look here for a live preview


1. How to install this script
Downloading the package you have all do you need to use this nice script. First of all, add a link to MooTools Framework and to sexyalertbox.js within the <head> tag of the page in this way:

<script src="mootools.js" type="text/javascript"></script>
<script src="sexyalertbox.v1.js" type="text/javascript"></script>

...then add this link to the CSS file:

<link rel="stylesheet" href="sexyalertbox.css" type="text/css" media="all" />

...and if you want to change the default look of Alert Box you can customize the CSS file how you prefer.

2. HTML Code
Add this line of code within the <body> tag:

<script type="text/javascript">
window.addEvent('domready', function() {
Sexy = new SexyAlertBox();
});
</script>

...and for example create a link which display an alert box with a simple message "Nice!":

<a href="#" onclick="Sexy.alert('Nice!'); return false;">Show a JavaScript alert with a new look!</a>


In this way when an user click on this link an alert box will appear above all other elements of the page. It's all! For other info, please take a look at the documentation you can find at this link.

Related Post
MooTools - Basic Tips for Web Designer
MooTools - Get elements ID using unobtrusive code

Read More

Sunday, 24 August 2008

Creative way to present yourself in a 40 second long video

Are you looking for a creative way to present yourself? This video is an useful inspiration.

Yesterday I was looking for something interesting and original to make a short video clip to promote my blog in occasion of two millions visits I almost caught up after my first 8 months on-line (at this moment my statcounter counter display 1,707,589 visits). So I find on YouTube this stunning video of Sebastian Baptista, entitled EGO:



Sebastian used kinetic typography effects and the final result is awesome. Take a look at the video here:



Do you have an original video presentation? Add a comment with your link!

Read More

Saturday, 23 August 2008

MooTools Basic Tips (lesson 2): get elements ID using unobtrusive code

After my previous post about MooTools Basic Tips for web designer I received a lot of excited messages from my readers, lovers of this beautiful framework, for this session of lessons dedicated to MooTools. Thanks a lot guys! I really appreciate your support! So... a question which a lot of peopole asked to me was how it's possible to get the ID of an element (for example the ID of an element into a list) and associate to this element some event (change background, display an alert message...). In this post I want to illustrate how to get the ID of DOM elements using MooTools and unobtrusive elegant code.


1. An "Obtrusive" way to implement it
Before to explain how to do it with MooTools, I think it's better take a look at the following HTML code:

<ul id="myList">
<li id="li_1">
<a href=
"#" onClick="javascript:getId('1')">Get this ID</a>
</li>

<li id="li_2">
<a href="#" onClick="javascript:getId(2)">Get this ID</a>
</li>

<li id="li_3">
<a href=
"#" onClick="javascript:getId(3)">Get this ID</a>
</li>

</ul>


This is a simple list with some list elements with id "li_1", "li_2", "li_3". Each list element contains within a link which calls, with an event onClik, a Javascript function getId(). This function takes in input the number related to the list element ID, within which the link is contained, displaying a simple alert window with the ID of the element you've chosed. The result is something like this:



Javascript code is something like the following:

<script type="text/javascript">
function getId(el){
var listElement = el;
alert("The ID of the list element you've chosen is: li_"+listElement);
}
</script>

...it's simple and clear if you have basic javascript notions. But why this code is obtrusive?. Because, withing HTML code, it contains a call to the JavaScript function getId():

<a href="#" onClick="javascript:getId('1')">Get this ID</a>

It's not wrong. But it's better to separate HTML code from JavaScript code. How you can do it? Read more...


2. The unobtrusive way to implement it using MooTools
Ok, now we are ready to see how we can implement the same script using unobtrusive code with MooTools. First, take a look at the HTML code:

<ul id="myList">
<li id="li_1"><a href="#">Get this ID</a></li>
<li id="li_2"><a href="#">Get this ID</a></li>
<li id="li_3"><a href="#">Get this ID</a></li>
</ul>


What's changed from the step 1? I removed onClick event within each link:

<li id="li_1"><a href="#" onClick="javascript:getId('1')" >Get this ID</a></li>

Than, how changes JavaScript code to get the ID of the element? First, remember to add a link to MooTools framework in the <head> tag of the page:



Copy and paste the following code within the <head> tag:

<script type="text/javascript" src="mootools.svn.js"></script>

... and now copy, below the previous code, the following:

<script type="text/javascript">
window.addEvent('load', function(){
$('myList').getElements('li').each(function(el){
el.getElement('a').addEvent('click', function(listID){
alert("The ID of the list element you've chosen is: "+listID);
}.pass(el.id)
);
});
});
</script>

How you can see, I used getElements() method to get all <li> tags within <ul> list with ID "myList ". Every times you click on <a> element contained into a <li> tag, the function display an alert window with the ID of the element you've chosed, passing the ID using .pass(el.id) method. It's all and it's very simple!

Take a look at the source code:

Download source code

Add a comment for other info or request!


Related Content
MooTools Basic Tips for Web Designer (Lesson 1)

Read More

Friday, 22 August 2008

10 Awesome typewriter fonts for web designers

Here is a list of my preferred Typewriter fonts I often use in my design projects.
Some of these fonts are very popular and absolutely you must have them in your fonts collection! I included a link to download each font apart and some suggest about how you can use them. This collection includes: King, 39 Smooth, Underwood 1913, Type-Ra, Last Words, F25 Executive, Another Typewriter, Stalker and XBand Rough.

1. King (download)



King is an elegant and highly readable typewriter font useful to design titles and headers.
Download King



2. 39 Smooth (download)



39 Smooth is a large-space font. I prefer use it in a big size to design headers and titlesDownload 39 Smooth



3. Underwood 1913 (download)



Underwood 1913 is a dirt-line font. Useful for old-style sites to design headers and titles.
Download Underwood 1913



4. Type-RA (download)



Type-Ra is another dirt-line font useful to design old design elements. I prefer use it in a small size.
Download Type-Ra



5. Last Words (download)



Last Words is a large typewriter font. Nice using big size for title and headers.
Download Last Words



6. F25 Executive (download)



F25 Executive is a very. To design text elements and headers for old-style letters or vintage websites.
Download F25 Executive



7. Telegraphem (download)



Telegraphem is an uppercase typewriter font. Useful to design old style labels using small size.
Download Telegraphem



8. Another Typewriter (download)



Another Typewriter is one of my preferred typewriter font, highly readable for titles, headers or simple text.
Download Another Typewriter



9. Stalker (download)



Stalker is a large-space font. I prefer use it with a big size (greater than 40pt).
Download Stalker



10. XBand Rough (download)



XBand Rough is another uppercase typewriter font. Useful to design old style labels (I like medium size 16pt-30pt)
Download XBand Rough


 
10 Beautiful and free must have Serif Fonts10 Awesome typewriter fonts for web designers10 Interesting fonts for web designers10 Delicious Free Fonts with commercial-use license10 Beautiful and free fonts for web designers5 Beautiful pen-style fonts10 Fonts to design original logos10 Handwritten fonts you can't miss

Read More

Daily inspiration: 10 Websites to get design inspiration

Daily inspiration: 10 beautiful CSS websites

Are you looking for design inspiration for your next web project? Take a look at these websites:


1. The New York Moon - http://www.nymoon.com/
Beauty newspaper style, nice illustrations.




2. The Aardvark Brigade - http://www.aardvarkbrigade.com/
Big attention to details, great design.




3. The National Archive Experience - http://www.digitalvaults.org
Another fantastic SecondStory project with an awesome Flash interface.




4. Natalia Devalle - http://nataliadevalle.com.ar
Elegant, clean, handwritten style. Nice wood texture for background.




5. EdgePoint Church - http://www.edgepointchurch.com/
Nice design and color scheme.




6. Slabovia Tv - http://www.slabovia.tv/
Nice site with newspaper style.




7. Rob Morris - http://www.digitalmash.com
I like the animated face :)




8. Cabedge - http://www.cabedge.com/
Clean and elegant site for this Web Design & Development company




9. Karim Zurita - http://www.karimzurita.com/
Essential an clean style for the site of this web designer and developer.




10. Freelenz - http://www.freelenz.at/
Nice vintage style :)





Suggest your site
Do you have a nice site to suggest for the next daily inspiration post? Add a comment with a link!

Read More

Thursday, 21 August 2008

MooTools Basic Tips for Web Designer (Lesson 1)

After a lot of requests, in this article I want to illustrate some simple tips to start to work with MooTools. In this first lesson you can see how to manipulate element properties, in particular how to get DOM element by ID, how to use getStyle(), setStyle() (to get and set CSS properties), toInt() to convert string to number and some examples to introduce how to write unobtrusive JavaScript code with MooTools.


1. Add Mootols framework to your page
First, you have to download the latest version of MooTools and add a link to the framework within the <head> tag of the page:




Copy and paste the following code within the <head> tag:

<script type="text/javascript" src="mootools.svn.js"></script>

Ok, now you are ready to use MooTools feautures in your web pages!


2. Get DOM element
To get a DOM element by ID you can use the following syntax:

var element = $('myElement');

... this line of code gets the element with ID="myElement" in your page. If you have some falimiarity with JavaScript, it's almost the same thing to get a DOM element by reference using the following code:

var element = document.getElementById('myElement');

Ok, now using $$ you can get an array of elements within a DOM element with a specific ID:

$$('#myElement li.myListElement');

...for example, this line if code returns an array of all <li> tags with the class="myListElement" within the DOM element with ID="myElement".


3. setStyle() and get Style()
These are two basic methods to set and get element properties (height, background, color...). To set a property you can use the following code:

$("myElement").setStyle("height", "200px")

...or if you have to set multiple properties you have to use the following code:

$("myElement").setStyles({
background: "#DEDEDE",
border:"solid 1px #999999",
width: "700px"
height: "80px"
});

To get a property you can use getStyle() specifying the property you want to get (height, background, color...):

$("myElement").getStyle("height")

The previous code returns the height of the DOM element with ID="myElement", for example "200px". If you want the number (200 and not the string "200px") you have to use the following code:

$("myElement").getStyle("height").toInt()

...in this way the value returned will be a number (200).


4. Unobtrusive Javascript
Now, we can start to see how to write unobtrusive Javascript code using MooTools in order to separate page content from JavaScript code. Your have to use the following code:

<script type="text/javascript">
window.addEvent('domready', function() {
//Some lines of code here...
});
</script>

For example I want to write a simple script which display an alert with "Hello World!" when an user click on a link with ID="myElement". The script is:

<script type="text/javascript">
window.addEvent('domready', function() {
$('myElement').addEvent('click', function() {
alert('Hello World!');
});
});
</script>

...and HTML code is:

<a href="home.html" id="myElement">
Try to click here!
</a>

...instead of an "obtrusive" code with onClick event which calls a function (for example doSomething()) added within the <a> tag:

<a href="home.html" id="myElement" onClick="javascript:doSomething()" >
Try to click here!</a>


Example 1: change background color
Ok, now we can try to write a simple code which change the background color of a layer with ID="myLayer":



HTML code is something like this:

<div id="myLayer">
<a href="#" id="myElement">Change Background</a>
</div>

...how you can see, you don't call a JavaScript function using an event (onClick, onFocus...) within <a> tag. The reference to the DOM element "myLayer" will be insert into the following script which you have to add below the link to the MooTools framework in the <head> tag (step 1):

<script type="text/javascript">
window.addEvent('domready', function() {
$('myElement').addEvent('click', function() {
$('myLayer').setStyle('background', '#DEDEDE');
});
});
</script>


Example 2: change and reset background color
Now we can modify the previous code and make it a little bit more complex. In this example when an user clicks on "Change Background", if the background colors of the layer with ID="myLayer" is not set, then the script sets the background color of the layer to this value "#DEDEDE"; else, the script set the background color to null.




HTML code is the same of the previous example:

<div id="myLayer">
<a href="#" id="myElement">Change Background</a>
</div>

... but I changed something in the script:

<script type="text/javascript">
window.addEvent('domready', function() {
$('myElement').addEvent('click', function() {
var currentBgColor = $('myLayer').getStyle('background');
if(currentBgColor==''){
$('myLayer').setStyle('background', '#DEDEDE');
} else {
$('myLayer').setStyle('background', '#FFFFFF');
}
});
});
</script>


Download source code


How you can see the code is very simple. Now you can start to write more complex functions to manipulate element properties. In the next lesson we we'll see how to interact with Forms using MooTools.

Do you have some suggest? Add a comment!

Read More

Tuesday, 19 August 2008

Add Yahoo! Buzz button on Blogger Template

Yahoo opened Buzz!, a Digg like site to share stories, to all publishers. Add Buzz! button on your Blogger template.

This is a short post which explains how to add Yahoo! Buzz buttons on your Blogger template. It's really very simple!



Take a look at this page to see what kind of buttons are available and choose the style you prefer. For example, if you choose Square button style:



...copy and past the following code in your blogger template (a good position is under post's title):

<script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype="square"><data:post.url/></script>


In any case, if you choose a different button, you have only to change the string ARTICLEURL in the code with <data:post.url/>.

It's all! For questions or update about this topic contact me or add a comment :)


Add a retweet counter on your website with ReTweet.comAdd a retweet counter on your posts with TweetmemeHow to install Disqus comments into BloggerImprove the default comment system with Google Friend ConnectAdd TwitThis on your Blogger templateAdd Digg vote button on Blogger Template (update)Add delicious button with counter in your blogger postsPlace Google AdSense below post's title on BloggerAdd StumbleUpon button in your Blogger postsAdd reddit button with counter in your Blogger template Add Technorati blog reaction on your Blogger templateAdd Mixx button on Blogger templateAdd DZone button on Blogger templateAdd Design Float button on Blogger templateSome Blogger Tips you probably don't know

Read More

Tuesday, 12 August 2008

10 Handwritten fonts you can't miss

Are you looking for new interesting fonts? This is a list of my preferred Handwritten fonts I often use in my design projects. I included a link to download each font apart and some suggest about how you can use them.
This collection includes: Analgesics, Sketch Rockwell, Joe Hand, Two Turtles Dove, Estrya's Handwritten, Gregs Other Hand, Later On, Bubbly Frog, Rai Elegant and imitation.


1. Analgesics (Download)



Analgesics is a "bold" font particular useful to design heder elements.
Download Analgesics



2. Sketch Rockwell (Download)




This is absolutely my preferred handwritten font, very good to be used, with a big size, for titles and headers.
Download Sketch Rockwell



3. Joe Hand (Download)



Joe Hand is a "fast" handwritten font, nice using small size.
Download Joe Hand



4. Two Turtle Doves (Download)



Two Turtle Doves is e big size font good to design big titles or headers.
Download Two Turtle Doves



5. Estrya's Handwriting (Download)



This is a beautiful font design by Jellyka Nerevan free to use for a personal use. You can use this font to design, for example, notes like this:



Download Estrya's Handwritting



6. Gregs Other Hand (Download)



Gregs Other Hand is an uppercase font you can use for note header like this:





...or with Estrya's (font 5 in this list) to obtain a crayon + pencil effect:




Download Gregs Other Hand



7. Later On (Download)




Later On is a slimmish font which I suggest you to use for big size titles (use a size greater then 42 point for a better effect)
Download Later On



8. Bubbly Frog (Download)



Bubbly Frog is another font useful to design titles or header elements.
Download Bubbly Frog



9. Rai Elegant (Download)



Rai is an elegant handwritten font I prefer to use for small text:



Download Rai



10. Imitation (Download)



Imitaion is another "big" font useful to design titles and headers elements.
Download Imitation


10 Interesting fonts for web designers10 Beautiful and free fonts for web designers10 Delicious Free Fonts with commercial-use license10 Awesome typewriter fonts for web designers5 Beautiful penstyle fonts

Read More