RSS

50+ Ultimate Useful Cheat Sheets for Web Developers and Designers

Mon, Apr 26, 2010

CSS, Freebies, HTML, Tutorials

cheat-sheet-530

We presenting something special for Web Designers and developers even this useful roundup can help software developers too in their modern techniques based projects, Today we’re sharing Most Useful Cheat Sheets, most of the time we need some rapid solution as we listing in this beautiful article fact whether you want to learn something quickly or don’t want to get stuck on some petty nuances while working on an important project, you have to use some handy cheat sheets.

Cheat Sheets are useful because Web Developers today need to remember more things to be effective doing their job than most people can manage. Most cheat sheets are designed to be printer friendly, so you can have them laying around on your desk as quick reference cards. Here is a collection of useful cheat sheets specifically for front end web development that will help you with HTML, JavaScript, Python, Ruby-on-Rails, ajax, Adobe Photoshop, Adobe Illustrator, CSS3, HTML5, XHTML, XML, MooTools, ASP, VB Script, Prototype, MySQL, jQuery, SEO, htaccess, mod_rewrite, 3D Max, Cinema 4D R8, PHP and CSS.

Disable right-click

Disable right-click contextual menu.

$(document).ready(function(){
$(document).bind(”contextmenu”,function(e){
return false;
});
});

Disappearing search field text

Hide when clicked in the search field, the value.(example can be found below in the comment fields)

$(document).ready(function() {
$(”input.text1″).val(”Enter your search text here”);
textFill($(’input.text1′));
});

function textFill(input){ //input focus text function
var originalvalue = input.val();
input.focus( function(){
if( $.trim(input.val()) == originalvalue ){ input.val(”); }
});
input.blur( function(){
if( $.trim(input.val()) == ” ){ input.val(originalvalue); }
});
}

Cascading Style Sheet Level 2 Visual Cheat Sheet

3

CSS Cheat Sheet (V2)

4

HTML Cheat Sheet

5

jQuery 1.3.2 and 1.1.3 Cheat Sheets

6

jQuery 1.3 Cheat Sheet

7

Ruby on Rails Cheat Sheet

8

jQuery Cheat Sheet 1.2

9

Opening links in a new window

XHTML 1.0 Strict doesn’t allow this attribute in the code, so use this to keep the code valid.

$(document).ready(function() {
//Example 1: Every link will open in a new window
$(’a[href^="http://"]‘).attr(”target”, “_blank”);
//Example 2: Links with the rel=”external” attribute will only open in a new window
$(’a[@rel$='external']‘).click(function(){
this.target = “_blank”;
});
});
// how to use
<a href=”http://www.opensourcehunter.com” rel=”external”>open link</a>

HTML 5 Cheat Sheet

10

HTML5 Visual Cheat Sheet (Reloaded)

11

(X)HTML Elements and Attributes

12

HTML5 Canvas Cheat Sheet

13

Detect browser

Change/add something for a certain browser.

$(document).ready(function() {
// Target Firefox 2 and above
if ($.browser.mozilla && $.browser.version >= “1.8″ ){
// do something
}

// Target Safari
if( $.browser.safari ){
// do something
}

// Target Chrome
if( $.browser.chrome){
// do something
}

// Target Camino
if( $.browser.camino){
// do something
}

// Target Opera
if( $.browser.opera){
// do something
}

// Target IE6 and below
if ($.browser.msie && $.browser.version <= 6 ){
// do something
}

// Target anything above IE6
if ($.browser.msie && $.browser.version > 6){
// do something
}
});

jQuery 1.4 API Cheat Sheet

14

jQuery 1.4 Cheat Sheet

16

Oscarotero jQuery 1.3 (as wallpaper)

17

jQuery Selectors

18

MooTools Cheat Sheet

A quick reference guide for MooTools, a super lightweight web2.0 javascript framework.

19

Adobe Illustrator Shortcuts

20

Preloading images

This piece of code will prevent the loading of all images, which can be useful if you have a site with lots of images.

$(document).ready(function() {
jQuery.preloadImages = function()
{
for(var i = 0; i<arguments.length; i++)=”" {=”" jquery(=”"><img>”).attr(”src”, arguments[i]);
}
}
// how to use
$.preloadImages(”image1.jpg”);
});
</arguments.length;>

HTML Color Codes Matching Chart

Another must have for designers. Matching color codes in CMYK, RGB and Hex was never this easy.

21

ASP/VB Script Cheat Sheet

The ASP cheat sheet is designed to act as a reminder and reference sheet, listing various of the oft-forgotten parts of ASP / VBScript. I no longer work full-time with ASP, so to ensure the cheat sheet was as helpful as possible, I roped in one Allan Wenham, an excellent ASP / .NET developer, to assist.

22

HTML Character Entities Cheat Sheet

This contains a list of the assigned character codes in HTML, with an example of how they are displayed, and description.

23

Prototype Cheat Sheet

A handy reference guide for Prototype, a JavaScript framework for easy Ajax and DOM manipulation.

24

MySQL Cheat Sheet

A quick reference guide for MySQL, including functions (both in MySQL and PHP), data types, and sample queries. Available in PDF and PNG formats.

25

CSS Styleswitcher

Switch between different styles?

$(document).ready(function() {
$(”a.Styleswitcher”).click(function() {
//swicth the LINK REL attribute with the value in A REL attribute
$(’link[rel=stylesheet]‘).attr(’href’ , $(this).attr(’rel’));
});
// how to use
// place this in your header
<link rel=”stylesheet” href=”default.css” type=”text/css”>
// the links
<a href=”#” class=”Styleswitcher” rel=”default.css”>Default Theme</a>
<a href=”#” class=”Styleswitcher” rel=”red.css”>Red Theme</a>
<a href=”#” class=”Styleswitcher” rel=”blue.css”>Blue Theme</a>
});

JavaScript Cheat Sheet

26

Megapixels and Maximum Print Size Chart

27

The Web Developer’s SEO Cheat Sheet

28

htaccess Cheat Sheet

29

Handy Cheat Sheet of MySQL Commands

30

mod_rewrite Cheat Sheet

31

Columns of equal height

If you are using two CSS columns, use this to make them exactly the same height.

$(document).ready(function() {
function equalHeight(group) {
tallest = 0;
group.each(function() {
thisHeight = $(this).height();
if(thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
}
// how to use
$(document).ready(function() {
equalHeight($(”.left”));
equalHeight($(”.right”));
});
});

mod_rewrite Cheat Sheet

A quick reference guide for mod_rewrite, including server variables, flags and regular expression syntax. Also includes examples of commonly-used rules.

32

Computer Arts Keyboard Shortcuts

An essential shortcut guide from the world’s best-selling creative magazine.

33

Gosquared CSS help sheets

34

CSS Shorthand Cheat Sheet

35

W3C – Cascading Style Sheets, Current Work

36

CSS support in Opera 9.5

37

RGB Hex Colour Chart

38

XML (eXtensible Markup Language) in one page

39

Script.aculo.us Cheat Sheet

A field guide to Scriptaculous.

40

PHP Cheat Sheet

41

Font resizing

Want to let the users change there font size?

$(document).ready(function() {
// Reset the font size(back to default)
var originalFontSize = $(’html’).css(’font-size’);
$(”.resetFont”).click(function(){
$(’html’).css(’font-size’, originalFontSize);
});
// Increase the font size(bigger font0
$(”.increaseFont”).click(function(){
var currentFontSize = $(’html’).css(’font-size’);
var currentFontSizeNum = parseFloat(currentFontSize, 10);
var newFontSize = currentFontSizeNum*1.2;
$(’html’).css(’font-size’, newFontSize);
return false;
});
// Decrease the font size(smaller font)
$(”.decreaseFont”).click(function(){
var currentFontSize = $(’html’).css(’font-size’);
var currentFontSizeNum = parseFloat(currentFontSize, 10);
var newFontSize = currentFontSizeNum*0.8;
$(’html’).css(’font-size’, newFontSize);
return false;
});
});

Smooth(animated) page scroll

For a smooth(animated) ride back to the top(or any location).

$(document).ready(function() {
$(’a[href*=#]‘).click(function() {
if (location.pathname.replace(/^\//,”) == this.pathname.replace(/^\//,”)
&& location.hostname == this.hostname) {
var $target = $(this.hash);
$target = $target.length && $target
|| $(’[name=' + this.hash.slice(1) +']‘);
if ($target.length) {
var targetOffset = $target.offset().top;
$(’html,body’)
.animate({scrollTop: targetOffset}, 900);
return false;
}
}
});
// how to use
// place this where you want to scroll to
<a name=”top”></a>
// the link
<a href=”#top”>go to top</a>
});

Get the mouse cursor x and y axis

$(document).ready(function() {
$().mousemove(function(e){
//display the x and y axis values inside the div with the id XY
$(’#XY’).html(”X Axis : ” + e.pageX + ” | Y Axis ” + e.pageY);
});
// how to use
<div id=”XY”></div>

});

jQuery timer callback functions

$(document).ready(function() {
window.setTimeout(function() {
// do something
}, 1000);
});

Python Cheat Sheet

The Python Cheat Sheet, a quick reference guide for the Python programming language.

42

Remove a word

$(document).ready(function() {
var el = $(’#id’);
el.html(el.html().replace(/word/ig, “”));
});

Verify that an element exists in jQuery

$(document).ready(function() {
if ($(’#id’).length) {
// do something
}
});

Make the entire DIV clickable

$(document).ready(function() {
$(”div”).click(function(){
//get the url from href attribute and launch the url
window.location=$(this).find(”a”).attr(”href”); return false;
});
// how to use
<div><a href=”index.html”>home</a></div>

});

http://logoorange.com/color/color-codes-chart.php
Casper
View all posts by Casper
Necks website
Share and Enjoy:
  • Digg
  • Facebook
  • del.icio.us
  • Reddit
  • Mixx
  • LinkedIn
  • Google Bookmarks
  • E-mail this story to a friend!
  • MySpace
  • StumbleUpon
  • Technorati
  • Yahoo! Buzz
  • TwitThis
  • NewsVine
  • Furl
  • BlinkList
  • Design Float
  • DZone
  • Live
  • Netvibes
  • Propeller
  • Sphinn
  • Tumblr
  • YahooMyWeb
  • Yigg

Related posts:

  1. 50+ Constructive Adobe Air Apps for Web Designers and Developers Adobe AIR is platform for internet-enabled desktop applications which...
  2. 40 Ultimate Useful JavaScript Tutorials for Web Professionals As per latest trend of website designing and development...
  3. 50 Ultimate Useful Free Mac Apps for Graphic and Web Designers As we know MAC is specially design for designers...
  4. 50 Excellent Tutorials for Web Development Using CSS3 In this modern web world we offering CSS3 techniques...
  5. 50+ Useful CSS Professional Techniques As we know most of the Web designers and...

Related posts brought to you by Yet Another Related Posts Plugin.

, , , , , , , , ,

This post was written by:

Casper - who has written 30 posts on Dzinepress.


Contact the author

9 Comments For This Post

  1. Hermitbiker Says:

    …. fantastic, this must be “Cheat-Sheet City”, a fabulous post from Casper, getting all our ducks in a row, thanks !! I want to thank TutorialLounge for the share and “DzinePress” for the showcase, now…. if I can get these printed out I will be even happier !! :)

  2. Jordan Walker Says:

    What a resource, glad I ran across this!

  3. Noah Rainey Says:

    Hey cool list. I found the RGB Hex Colour Chart very helpful. In fact I was in search of a color chart that explained this and came across this post. Anyways great work. Also what theme is this blog ran off of?

  4. kad1r Says:

    They are very useful. I added to my delicious. Thanks.

  5. Narendra Keshkar Says:

    Really valuable list and very useful for designers.

  6. Bryan Broussard Says:

    Great collection of cheat sheets! Thank you for the time it took you to compile such a great resource!

  7. lono Says:

    great collection! a real handy resource!!

  8. louis vuitton Says:

    June 4th, 2010 at 2:16 pm
    [...] Enlace de Descarga | Dzine Press [...]

  9. ON&E BLOG Says:

    huge collection. very useful post
    thanks

24 Trackbacks For This Post

  1. Tweets that mention 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers | Dzinepress -- Topsy.com Says:

    [...] This post was mentioned on Twitter by Daud, Pablo Lara and KashifMughal, Edward van Dorland. Edward van Dorland said: RT @dzinepress: RT @dzinepress 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers | Dzinepress http://bit.ly/deQfoi [...]

  2. 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers | 10 popular Says:

    [...] view post [...]

  3. Servefault.com Says:

    50+ Ultimate Useful Cheat Sheets for Web Developers and Designers…

    Thank you for submitting this cool story – Trackback from Servefault.com…

  4. [User Link:50+ Ultimate Useful Cheat Sheets for Web Developers and Designers] | Tips for Designers and Developers | tripwire magazine Says:

    [...] 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers [...]

  5. 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers | TopRoundups Says:

    [...] 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers Submitted by Dzinepress [...]

  6. 50 chuletas para desarrolladores web y diseñadores | Recursos para Diseñadores Gráficos y Web | Creativos Online Says:

    [...] Fuente | 50 chuletas para desarrolladores web y diseñadores [...]

  7. 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers | Blog.:.CGSutra Says:

    [...] source [...]

  8. Quick Links for April 26th | Best Design Blog Ever Says:

    [...] 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers – Nice collection. I have a few of these. Not as useful if they’re not printed out, IMO. I can easily hit the official doc site or Google if these aren’t at hand. [...]

  9. Tweets that mention 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers + -- Topsy.com Says:

    [...] This post was mentioned on Twitter by Adam Smith, Suzy234. Suzy234 said: RT @atsmith: 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers + http://twurl.nl/os14fa [...]

  10. All Teched Up! « Caintech.co.uk Says:

    [...] ssh session Enemy Lurks in Briefings on Afghan War – PowerPoint – NYTimes.com 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers The iPad, and the Staggering Work of Obviousness : Cheerful 9 Photoshop Editing Tips Web Developers [...]

  11. Daily Digest for April 28th | Maxilprof Says:

    [...] 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers | Dzinepress. [...]

  12. Formulari e cheatsheet | ricivt.com Says:

    [...] http://www.dzinepress.com/2010/04/50-ultimate-useful-cheat-sheets-for-web-developers-and-designers/ [...]

  13. [Web] 連結分享 - 傑夫碎碎唸-有線電視、漫畫、PHP、Pushmail、Blackberry Says:

    [...] 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers [...]

  14. 50+ Ultimate Useful Chat Sheets for Web Developers and Designers! | TutScene - Help is here! Says:

    [...] friendly, so you can have them laying around on your desk as quick reference cards. Here is a collection of useful cheat sheets specifically for front end web development that will help you with HTML, JavaScript, Python, [...]

  15. This Week on The Web – 30th of April, 2010 | icebluebanana.com Says:

    [...] From dzinepress.com – 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers [...]

  16. Links der Woche XXXIV - html5,css3,php,drupal,magento,jquery,wordpress - Webworking Says:

    [...] 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers Über 50 aktuelle Cheat Sheets für Webdesigner und Programmierer [...]

  17. EastZoneSoupCube - links for 2010-04-30 Says:

    [...] 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers | Dzinepress (tags: cheatsheet css webdesign design development list) [...]

  18. Design Corner #36 – Amazing PC case designs, Most extensively designed game on iPhone, Sweet Designs of Birthday Cake, Beyond Bike Lanes and much more… – The Blogs at HowStuffWorks Says:

    [...] 14) 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers [...]

  19. Top Articles On The Web Design Billboard In April’10 | Showcases | instantShift Says:

    [...] Official Link [...]

  20. Top Articles On The Web Design Billboard In April’10 - Programming Blog Says:

    [...] Official Link [...]

  21. TG Developer » Top Articles On The Web Design Billboard In April’10 Says:

    [...] Official Link [...]

  22. Top Articles On The Web Design Billboard In April’10 | JK Technologies | WJK News World Says:

    [...] 50+ Ultimate Useful Cheat Sheets for Web Developers and Designers Official Link [...]

  23. 50 Ultimate Cheat Sheets « Meta Observer Says:

    [...] Cheet Sheets [...]

  24. 50 Ultimate useful cheatsheets for web developers and designers | Ayuda Linux Says:

    [...] Enlace de Descarga | Dzine Press [...]

Leave a Reply