CSS — Truques dicas exemplos
Abaixo apresento alguns truques para se usar no css que por vezes são muito úteis e evitam problemas futuros
http://webdeveloperplus.com/css/25-incredibly-useful-css-tricks-you-should-know/
css técnicas
http://www.smashingmagazine.com/2007/01/19/53-css-techniques-you-couldnt-live-without/
Ferramentas para optimizar o css
http://www.smashingmagazine.com/2006/09/02/list-of-css-tools/
http://www.smashingmagazine.com/2008/12/09/50-really-useful-css-tools/
Javascript técnicas
http://www.smashingmagazine.com/2008/09/11/75-really-useful-javascript-techniques/
Redesenhar os botões padrão (submit) com css :
http://particletree.com/features/rediscovering-the-button-element/
Animações sem flash jquery
Agora é fácil criar aplicações sem precisar do adobe flash instalado, basta só usar HTML e JavaScript
tooltip
como agora os balões andam muito na moda, deixo aqui umas dicas :=)
qTip http://craigsworks.com/projects/qtip/demos/
JQuery
Firefox accelerometer
Paul Rouget shows off some cool new demos that are baking on the trunk of Firefox currently.
First are some nifty new events that get fired if your computer has an accelerometer:
-
window.addEventListener(“MozOrientation”, function(e) {
-
/* 3 values: e.x, e.y, e.y */
-
}, true)
It works with MacBooks and on Windows and Linux with Thinkpads.
Check out this cool screencast of the orientation event in action:
They also have WebGL and CSS Transitions going in Firefox trunk now as well! There are some demos in the original blog post of WebGL + CSS3 + SVG as well as CSS Transitions + the HTML5 Video tag that are very cool (require Firefox Nightly).
Here’s an example code snippet showing how you can use CSS Transitions to change the background color of a DIV over time as well as changing the width and height of an HTML5 Video at the same time:
-
div {
-
–moz-transition-property: background-color, height, width, font-size;
-
–moz-transition-duration: 2s, 1s, 2s, 1s;
-
–webkit-transition-property: background-color, height, width, font-size;
-
–webkit-transition-duration: 2s, 1s, 2s, 1s;
-
}
-
div video {
-
–moz-transition-property: width, height;
-
–moz-transition-duration: 2s, 2s;
-
–webkit-transition-property: width, height;
-
–webkit-transition-duration: 2s, 2s;
-
}
Someone’s also put together a cool demo that puts the new accelerometer support with some SVG to create a Super Mario Kart clone:
Fonte:Ajaxian
Preload Page
The classic animated gif, or the “loading…” text, could be now easily replaced thanks to this new jQuery plug-in.

Specially suited for a page loads of images, the final result showed in this demo looks really nice and flashy.
Features:
- Preload a whole web page.
- Preload a part of the page.
- Gets all images, <img> tags and background-image of your CSS
- Easy to implement.
- Adjustable loading bar.
- Tested in Firefox, Safari, Opera, Chrome, IE7, IE8 and IE6 (script will be ignored in IE6 though).
Full post, demo, and source code, are in Gaya Design blog.
To be honest, I instantly had a thought about this technique: wasn’t the DOMContentLoaded event purpose the one to avoid people waiting a full page download before they’re allowed to interact with it? … never mind, we cannot do much in any case in front of images dedicated layouts.
Fonte:GayaDesign
Ajax lightbox and modal dialog solutions
1. Lightbox2
A popular lightbox solutions that written by Lokesh Dhakar, it is built on prototype and scriptaculous framework. It only supports images and slideshow.
2. Lightbox Gone Wild
Inspired by lightbox and include the support for form and html. It is based on prototype and scriptaculous.
3. Colorbox
Lightweight and customizable lightbox plugin through CSS and jQuery. The plugin support images, image group, ajax, inline content and iframe content.
4. Fancybox
Display images, html and multimedia content. It is a jQuery based lightbox.
5. jQuery Lightbox Plugin
Similar to Lokesh Dhakar lightbox solutions, except it is jQuery based.
6. prettyPhoto
Jquery lightbox clone and support more multimedia format.
7. Litebox
Lightweight lightbox which built on moo.fx and prototype.lite.
8. Thickbox
Similar solutions to lightbox2, but it has more features like display inline content, iframed content or content served through ajax in a hybrid modal. It is build on jQuery.
9. Slightly Thickerbox
A mod from thickbox which add on next and previous button to form a images gallery.
10. Slimbox
The ultimate lightweight Lightbox clone for jQuery. As stated, slim and slimmer solutions for lightbox.
11. LightView
Built with prototype and scriptaculous. Supports plenty of media format.
12. jQuery Dialog
jQuery UI also contains dialog component, although its nature is more like a dialog and form. But, you can customize to create your own flavor of image preview or gallery.
13. Prototype Window
A prototype based window dialog.
14. MochaUI
MochaUI is an UI framework for mootools. It includes dialog windows for displaying rich content.
15. Facebox
Facebook lightbox aliked, jQuery based modal dialog. It support images, div or entire remote pages.
16. Boxy
Facebox aliked, but it support more features like dragging and size tweening.
17. ModalBox
A modal dialog that allow you to include html within. Build with prototype and scriptaculous.
18. Shadowbox
Support most of the media format and it is customizable through css. On top of that, it is a standalone javascript solutions. It is free for non-commercial usage.
19. LightWindows
A comprehensive lightbox solutions which enable you to embed images, video,iFrame, flash and more.
20. SimpleModal
Yet another jQuery based modal dialog.
21. jqModal
22. Multibox
Support images,flash, video, mp3 and html and it is build with mootools.
23. Greybox
Can be used to display websites, images and other content, doesn’t rely on any ajax framework.
24. Highslide
A really quick and smooth free image viewer. It supports plenty of formats like html,ajax,iframe and flash.
25. Sexybox
Another standalone lightbox which display content directly from html.
Lightbox Generator
VisualLightbox
WebGalleryCreator
Lightbox Plugins for WordPress
Lightbox2
jQuery Lightbox
Shadowbox
Flexible Lightbox
If you need more lightbox plugin for wordpress, you can visit the link here.
Alternative Solutions
Creating Lightbox with CSS
Firefox hack – Greased Lightbox
Via: http://www.dottony.com/30-useful-ajax-lightbox-and-modal-dialog-solutions/
jCarousel
Riding carousels with jQuery
Author: Jan Sorgalla
Version: 0.2.3 (Changelog)
Download: jcarousel.tar.gz or jcarousel.zip
Licence: MIT and GPL
Documentation: http://sorgalla.com/projects/jcarousel/
jCarousel is a jQuery plugin for controlling a list of items in horizontal or vertical order. The items, which can be static HTML content or loaded with (or without) AJAX, can be scrolled back and forth (with or without animation).
Examples
The following examples illustrate the possibilities of jCarousel:
- Static Examples
- Dynamic Examples
- Carousel with dynamic content loading via JavaScript
- Carousel with dynamic content loading via Ajax
- Carousel with dynamic content loading via Ajax from a PHP script
- Carousel with dynamic content loading via Ajax from the Flickr photo stream
- Carousel with dynamic content loading via Ajax from the Flickr API
- Special Examples
JavaScript : Prototype e LibSAPO.js
Apresentação Prototype e LibSAPO.js, realizada pelo Cláudio Gamboa na segunda SAPO Session.
Ajax — Acentuação
como resolver o problema de acentuação do ajax apenas com uma linha de código.
Basta acrescentar esta linha ao conteúdo.
<?php header(“Content-Type: text/html; charset=ISO-8859–1″,true) ?>




























