background preloader

Tutorial

Facebook Twitter

Wordpress

Actionscript. Catalyst. API: queue & dequeue. Watch Watch API: queue & dequeue screencast (Alternative flash version) QuickTime version is approximately 7Mb, flash version is streaming. View the demo used in the screencast Queue & Dequeue These methods tend to come in pairs when you’re working within the animation queue. When you use the animate and show, hide, slideUp, etc effect methods, you’re adding a job on to the fx queue. By default, using queue and passing a function, will add to the fx queue. As I said though, these methods come in pairs, so anything you add using queue, you need to dequeue to allow the process to continue. Keeping in mind that the animation won’t continue until we’ve explicitly called dequeue, we can easily create a pausing plugin, by adding a step in the queue that sets a timer and triggers after n milliseconds, at which time, it dequeues the element: You can see more examples on the jQuery documentation site for: queue & dequeue.

Enabling the Back Button. Watch Watch Enabling the Back Button screencast (Alternative flash version) QuickTime version is approximately 50Mb, flash version is streaming. View the demo used in the screencast The Problem Using our original jQuery tabs solution, we have a tabbing system that you can click the tabs and different content loads. We want to fix this, so that I can navigate the tabs using the browsers native back and forward buttons. “Cowboy” Ben Alman’s BBQ Ben wrote a jQuery plugin called BBQ. Now, in retrospect, I think that I only need Ben’s hashchange plugin as that’s all I ended up using in the screencast, but none the less, they’re both worth checking out. Now armed with Ben’s plugin, we’re going to refactor the tab code so that the back button works.

Solution The way the existing tabs work is as follows: #1. This process was our original code, and most of it needs to stay in place. So we listen for the hashchange event, just like we might listen for a click event: $('a[hash=#first]') jQuery. 10 CSS3 Properties you Need to be Familiar with. We've already covered the thirty CSS selectors that we should all memorize; but what about the new CSS3 properties? Though most of them still require a vendor-specific prefix, you can still use them in your projects today. In fact, it's encouraged! The key is to first determine whether or not you're okay with a slightly different presentation from browser to browser.

Are you okay with, say, IE displaying 90 degree corners, rather than slick rounded ones? That's up to you to decide. View Demo Easily the most popular CSS3 property in the bunch, border-radius was sort of the flagship CSS3 property. The irony is that we're all perfectly fine with the idea of providing an alternate viewing experience for mobile browsers. Please note that both Safari 5 and IE9 implement the official `border-radius` syntax. Some readers may not be aware that we can also create circles with this property. View Demo View Demo box-shadow accepts four parameters: x-offsety-offsetblurcolor of shadow View Demo View Demo.

Javascript - Introduction au langage Javascript. Le Javascript est un langage de script incorporé dans un document HTML. Historiquement il s'agit même du premier langage de script pour le Web. Ce langage est un langage de programmation qui permet d'apporter des améliorations au langage HTML en permettant d'exécuter des commandes du côté client, c'est-à-dire au niveau du navigateur et non du serveur web.

Ainsi le langage Javascript est fortement dépendant du navigateur appelant la page web dans laquelle le script est incorporé, mais en contrepartie il ne nécessite pas de compilateur, contrairement au langage Java, avec lequel il a longtemps été confondu. Notre vidéo Chargement de votre vidéo "FAQ : Introduction au langage Javascript" Javascript a été mis au point par Brendan Eich pour le compte de Netscape en 1995. Le javascript est aussi utilisé coté serveur comme php .net ...etc il est même possible d'utiliser JavaScript comme langage serveur grâce a node js.

Les versions de Javascript Javascript et java La syntaxe Les variales les objets. JavaScript Tutorial for Programmers. Javacript - Club d'entraide des développeurs francophones.