background preloader

Ressources Javascript pour intégrateurs web front-end

Ressources Javascript pour intégrateurs web front-end

jQuery Timelinr Dando vida al tiempo / Giving life to time Selecciona tu idioma / Select your language: This simple plugin helps you to give more life to the boring timelines. Supports horizontal and vertical layouts, and you can specify parameters for most attributes: speed, transparency, etc. Last stable version: 0.9.6 Configuration: Include the jQuery library and this plugin: Inicialize-it with the default parameters: $(function(){ $().timelinr();}); Or configure it as preferred: HTML markup must be as follows: <div id="timeline"><ul id="dates"><li><a href="#">date1</a></li><li><a href="#">date2</a></li></ul><ul id="issues"><li id="date1"><p>Lorem ipsum. Icon designed by Sebastián Cortés Changelog: Este sencillo plugin ayuda a que le des más vida y estilo a las aburridas líneas de tiempo. Última versión estable: 0.9.6 Configuración: Incluye la librería jQuery y luego este plugin: Inicialízalo con los parámetros por defecto: O customízalos: El marcado HTML debe ser de la siguiente forma: Cambios: Demo Horizontal

Host-A Hosting » krele » File info Hey there. This is something I wrote like half a year ago, and decided to share it ;D Intro? What is ray-tracing? How come your script is so "efficient"??? What's your script's performance? This is a chart that shows my PC's performance using the script.Left shows how many rays can be casted under what FPS, while drawing a primitive connecting each collision point.Right shows the exact same, but without drawing the primitive. 900 Rays casted, each running an average of around 200 pixels in distance, doing it 12 times in one second with my script...Same that, but with traditional way of ray-tracing takes 4-5 seconds! You're lying! In yer face! UPDATE! Run in debug mode, so you can watch your frame-rate! Second room consists of an object controllable by left click.It fires multiple rays, depending on resolution specified in the object.It also draws a primitive connecting every collision point. Omg awesome, now, can you provide a script in txt format here please?... Cheers! ~ Krele

Référence des fonctions Affecte le comportement de PHP » « Using SystemTap with PHP DTrace Static Probes Manuel PHP Edit Report a Bug Référence des fonctions ¶ Astuce Voir aussi Catégorie/Liste des extensions. add a note User Contributed Notes There are no user contributed notes for this page. E-nova - Agence web offshore Developer Network jQuery: The Write Less, Do More, JavaScript Library Barousel, a jQuery carousel plugin Barousel is a jQuery plugin to easily generate simple carousels where each slide is defined by an image + any type of related content. Usage To generate a Barousel you need to use the following HTML structure: <div id="any_id" class="barousel"><div class="barousel_image"><! Then apply the Barousel plugin with the following Javascript call (default settings): $('#any_id').barousel(); Options Barousel can be customized using the following options on the Javascript call: Download Compatibility jQuery 1.3.x + Firefox 3+ Internet Explorer 6+ Chrome 1+ Safari 3+ Demos Manual + item navigation Automatic + previous/next navigation Thslide is a jQuery plugin to easily generate sliding lists. To generate a Thslide you need to use the following HTML structure: Then apply the Thslide plugin with the following Javascript call (default settings): $('#any_id').thslide(); Thslide can be customized using the following options on the Javascript call: Demo Thumbnails slider with infinite scroll Custom navigation Link 1 Link 2

JavaScript Garden Although JavaScript deals fine with the syntax of two matching curly braces for blocks, it does not support block scope; hence, all that is left in the language is function scope. function test() { // a scope for(var i = 0; i < 10; i++) { // not a scope // count } console.log(i); // 10} There are also no distinct namespaces in JavaScript, which means that everything gets defined in one globally shared namespace. Each time a variable is referenced, JavaScript will traverse upwards through all the scopes until it finds it. The Bane of Global Variables // script Afoo = '42'; // script Bvar foo = '42' The above two scripts do not have the same effect. Again, that is not at all the same effect: not using var can have major implications. // global scopevar foo = 42;function test() { // local scope foo = 21;}test();foo; // 21 Leaving out the var statement inside the function test will override the value of foo. // global scopevar items = [/* some list */];for(var i = 0; i < 10; i++) { subLoop();}

Related: