background preloader

Jquery

Facebook Twitter

Plugin

Plugins. Menu. Coda. Niceforms. Overlay. Pegar Coordenadas do Mouse com jQuery. Simple CSS shiny progress bar technique - Ben Ogle&#039;s blog. Jun 16 2009 I’ve recently come up with a simple way to make a decent looking, css colorable progress bar/meter out of a couple divs and an image. This is what mine looks like: Basically, you have three divs: a container for the grey, non ‘populated’ section, a div for the colored value, and a div for the text. Both the container and the value div have your image as a background. The HTML is simple: <div class="meter-wrap"><div class="meter-value" style="background-color: #0a0; width: 40%;"><div class="meter-text"> Text Here!

Notice the style attribute in the .meter-value div. Oh yes, in all of its glory: The Image Here is my image. Examples with JavaScript! Now, so you can see what it can do, I’ve put together a couple of super rad jQuery examples. Click the bar below to see the it go from 0% to 100%! Or maybe this one that runs through a range of colors. 40+ Essential Front End Web Developer Cheat Sheets | tripwire ma. Today more or less everyone can put a simple web page together but implementation of professional Web based Application Front Ends is not as simple as some people may think. It is a complex task requiring deep knowledge of several technologies like html, css, javascript, php, etc. In this article you will find essential cheat sheets for the most commen web based technologies that you are likely to use if you’re a Front End Web Developer. First you will find resources covering client side markup and development (html, xhtml, css, javascript, jQuery etc.) and then you will find resoures covering server side development that are to some extent required for Front End Development (php, asp.net, …).

Please make sure that you post a comment if you know an important resource that have not been included in the article. I hope you will find this article useful, lets get started! Advertisement Markup Cheat Sheets There’s a lot of cheat sheets available for CSS, html and any other web technology. jQuery for JavaScript programmers. When jQuery came out back in January 2006, my first impression was that it was a cute hack.

Basing everything around CSS selectors was a neat idea (see getElementsBySelector) but the chaining stuff looked like a bit of a gimmick and the library as a whole didn't look like it would cover all of the bases. I wrote jQuery off as a passing fad. Over the past few months it's become clear to me exactly how wrong I was. jQuery is an exceptionally clever piece of engineering. It neatly encapsulates an extraordinary range of common functionality, and provides a clever plugin API for any functionality not included by default. Most introductions to jQuery focus on designers and inexperienced developers.

Namespacing The key to writing good, reusable JavaScript is to zealously manage your namespace. jQuery introduces just one symbol to the global namespace: the jQuery function/object. What about language enhancements? The infamous $ function Selecting some elements jQuery('div.panel') jQuery('p#intro') Navegando com a jQuery » Tableless.com.br. Para os designers, familiarizar-se com a jQuery é um ato muito sutil. Isso se deve ao fato da mesma basear-se em um comando ( jQuery ou o seu atalho $ ) que referencia elementos e assim atribuir valores ou aplicar ações a eles. O mais interessante é que usamos as mesmas chamadas que usamos para referenciar elementos quando trabalhamos com CSS. Logo: $ ( 'p' ) // Chama todos os paragrafos $ ( '.menu' ) // Chama os elementos que contenham a classe menu $ ( '#caixas .chamada' ) // Chama os elementos .chamada que estão dentro de #caixas $ ( '.menu, .box' ) // Chama a classe menu e a classe box $ ( '#lista *' ) // Chama todos os elementos que estão dentro de #lista A jQuery ainda implementa algumas chamadas especiais, baseadas no CSS3.

A lista completa pode ser encontrada no site oficial da jQuery bem documentada e com exemplos para cada caso. Em um exemplo prático, vamos fazer um menu com submenus onde não precisamos nos preocupar em adicionar classes e tudo mais. Agora, a dinâmica! FAQ Dropdown com o Jquery em Webpoint - Weblosofia com CSS, Jque. Este post é principalmente para quem gosta do Jquery, mas limita-se somente aos plugins. Existe uma infinidade de opções de Plugins no site do Jquery .

Apesar de úteis, eles não são para qualquer situação. Se você quer do seu jeito, faça você mesmo. Em um dos tutoriais do site ensina a fazer parte do que estou fazendo aqui. Mas fiz algumas implementações que mostra várias ferramentas úteis do Jquery. Então ao invés de pegar alguns plugins, com poucas linhas de código irei criar um modelo de faq utilizando as marcações HTML dl , dt e dd .

Elas são as mais adequadas para este contexto, pois representam uma lista de definição, com um termo de definição e sua descrição. Vamos ao que interessa! Chega de falar sobre o FAQ e vamos construir este FAQ com Jquery que tanto eu falo. Para começar devemos inserir a framework no head do documento, isto deixo para vocês, pois já mostrei como se faz em outros posts sobre Jquery.

Agora podemos trabalhar com a Framework. Vamos a explicação deste código: Logon.com.pt » Tabelas “às riscas” II - DOM Scripting / jQuery. Esta é a conclusão do anterior Tabelas “às riscas” I – HTML/PHP. Para quem não leu, o resultado que se pretende alcançar é este: No post anterior falei em duas formas de alternar a cor de fundo das linhas de uma tabela de dados. A primeira, manualmente, atribuindo a class .odd às linhas ímpares, directamente no código HTML. Como esta solução se torna mais difícil à medida que o número de linhas vai aumentando, utilizei a versão PHP para obter o mesmo resultado, automaticamente, e com menor probabilidade da ocorrência de erros. Neste artigo vamos utilizar os mesmos ficheiros base: A diferença é que vamos utilizar DOM Scripting e a jQuery para obter o mesmo resultado. DOM Scripting O DOM, Document Object Model, especifica os elementos de um documento (HTML, XML, etc.) e as ligações entre eles. O que precisamos de fazer é: jQuery Conclusão Cada um dos quatro métodos referidos, apesar do mesmo objectivo, tem aplicações diferentes.

Javascript Best Practices. Introduction This document is a list of best practices and preferred ways of developing javascript code, based on opinions and experience from many developers in the javascript community. Since this is a list of recommendations rather than a list of absolute rules, experienced developers may have slightly differing opinions from those expressed below. Always Use 'var' Variables in javascript either have global scope or function scope, and using the 'var' keyword is vital to keeping them straight. When declaring a variable for use either as a global variable or as a function-level variable, always prefix the declaration with the 'var' keyword. The example below highlights the potential problem caused by not doing so. Problem Caused By Not Using Var var i=0; // This is good - creates a global variable function test() { for (i=0; i<10; i++) { alert("Hello World!

") Fixed Function function test() { var i=0; for (i=0; i<10; i++) { alert("Hello World! ") Feature-Detect Rather Than Browser-Detect. 40+ Tooltips Scripts With AJAX, JavaScript &amp; CSS | Smashing. Advertisement Web users love informative clues. Whatever questions and misunderstandings might occur – delivering precise answers immediately is the primary task a responsive user interface should be able to cope with. To do that, developers have to consider subtle and well-thought tooltips – used correctly, they can greatly improve user experience and help users to get things done.

In Web such “responsive” hints can be provided by tooltips. E.g., unclear input fields in web forms are perfect examples of a situation you might be willing to use a tooltip for. Most of solutions are JavaScript- and AJAX-based, however we’ve also managed to find some lightweight CSS-based solutions. We’d like to thank Jurgen Koller for compiling an extensive list of tooltip scripts we’ve stumbled upon during our search. Let’s take a look at 43 handy tooltips scripts for intuitive and well-designed visual clues. Tooltips: AJAX & JavaScript Solutions CSS-Based Solutions Further Solutions It's done.