background preloader

75 (Really) Useful JavaScript Techniques - Smashing Magazine

75 (Really) Useful JavaScript Techniques - Smashing Magazine
Advertisement Developers and designers are using more and more JavaScript in modern designs. Sometimes this can be a hindrance to the user and take away from the simplicity of the design, and other times it can add greatly to the user’s experience. The key is a) adding the right amount of JavaScript, and b) using the right JavaScript techniques. We have already1 collected2 various3 JavaScript4 techniques5 in the past – now it’s time for a new portion of JavaScript. Thanks to the Web’s widespread adoption of JavaScript, JavaScript libraries have sprung up to help make design and development easier. However, sometimes we need JavaScript solutions that are a little more involved or specific. You may want to take a look at the following related articles: 75 Useful JavaScript Techniques Hyphenation in Web11This project collects working solutions for automatic hyphenation in (X)HTML pages. SocialHistory.js13SocialHistory.js enables you to detect which social bookmarking sites your visitors use.

jQuery: personalizzare l’easing jQuery ci permette di modificare anche il suo funzionamento interno consentendo l’accesso ai suoi oggetti core. Uno di questi oggetti è appunto easing, che controlla gli effetti di easing sulle animazioni. Questo oggetto può essere esteso definendo i nostri valori di easing personalizzati che prendono la forma di metodi di tale oggetto. La sintassi di base è la seguente: I parametri che ci interessano del metodo che definiremo sono: t: tempo correnteb: valore inizialec: valore modificatod: durata Il metodo dovrà restituire un’espressione matematica che opera sui quattro parametri dell’animazione. Quindi possiamo usare il nuovo easing moveAway con il metodo animate(): Vi consiglio di studiare il codice sorgente del plugin Easing per rendervi conto dei principali valori di easing possibili e, soprattutto, per studiare le espressioni matematiche usate. Potete visualizzare l’esempio finale in questa pagina.

35 Free High-Quality E-Commerce Templates | Developer's Toolbox Advertisement For website owners who are evaluating e-commerce solutions, there are several good options for powering websites and shopping carts. Regardless of which option you chose, deciding on a design brings with it even more decisions to make. We’ve done the research for you, and in this post we present 35 of the highest-quality free e-commerce templates available. 1. Crafty WordPress Theme | Demo | Download WordPress e-Commerce Plugin | Download 2. CleanBlue et-black PrestaThemes A collection of free high-quality templates for PrestaShop. 3. osCommerce Templates Footwear | Download Appliance | Download Cosmetics Store | Download Computer Store | Download 4. Modern Theme | Download from Magento Blue Skin | Download from Magento Telescope Theme | Download from Magento Pet Store Theme | Download from Magento Free Magento Theme from Template Monster | Download Electronics Store 3 | Download from eCommerce-Themes 5. Free Zen Cart Template | Download Acadame | Download from ichoze.net 6. LiteFree 7. 8.

jQuery ad elevata performance Possiamo aumentare significativamente la performance dei nostri script jQuery seguendo alcune pratiche raccomandate per ottenere il meglio dal nostro codice. In questo articolo vedremo quali sono queste pratiche e come possiamo utilizzarle per migliorare la performance del nostro codice jQuery. Usare selettori specifici e contestuali In jQuery selettori più specifici hanno una migliore performance di selettori meno specifici: $('.test')$('div.test')$('#test') Possiamo usare il contesto dei selettori per migliorarne la performance: $('div.test')$('div.test', '#page') Mettere in cache i selettori e gli oggetti Conservare i selettori e gli oggetti in variabili aumenta di molto la performance perchè riduce il numero di lookup all’interno delle query: $('li', '#nav').each(function { var $li = $(this); var $a = $('a', $li); }); Evitare each() e $.each() var $li = $('li', '#test'), i = 0, len = $li.length; for(i = 0; i < len; i += 1) { } Evitare html() Nota Usare gli array per creare tabelle

54 Kick Ass Creative Logos Hand-Picked from Logofaves Learn how to earn $125 or more per hour as a freelancer - Click Here Looking for hosting?. We recommend MediaTemple for web hosting. Use Code MTLOVESDESIGN for 20% off Once again dzineblog presents you the logo design inspiration series, this time I’ve selected the logo’s from Logofaves as you know Logofaves is a place to find most creative logos and talented logo designers. The better a logo greater the probability that your clients will remember you and get back to you. Here take a look at 54 kick ass creative logos and be inspired, hope you like this collection Get the latest Web Design Jobs today.

jQuery: effetto splash screen Vogliamo creare un effetto di entrata in stile splash screen con jQuery. Per ottenere questo effetto abbiamo bisogno di un elemento posizionato e nascosto che al caricamento della pagina entrerà dall’angolo in alto a sinistra e si posizionerà esattamente al centro della pagina, sia in orizzontale che in verticale. Quando si fa clic sull’elemento, questo uscirà dallo schermo da destra verso sinistra. Ecco gli stili CSS che ci occorrono: Con jQuery prendiamo le dimensioni della pagina per calcolare le coordinate da dare al nostro box animato, usando una nota tecnica CSS per centrarlo in orizzontale e in verticale: var docWidth = $(document).width();var docHeight = $(document).height(); var divWidth = Math.round(docWidth / 2);var divHeight = Math.round(docHeight / 2); var offsetLeft = '50%';var offsetTop = '50%'; Quindi animiamo l’elemento facendolo entrare e ne gestiamo il clic facendolo sparire: La tecnica CSS utilizzata prevede che: Potete visionare l’esempio finale in questa pagina.

12 Excellent Tools for Picking a Domain Name By Jacob Gube Selecting the perfect domain name for your website is the most important, and oftentimes hardest, step in establishing a web presence. There are plenty of tools out there that can help you ease the burden of checking available domains and suggesting similar names that are related to your searches. In this article, you’ll read about 12 neat web tools that will lend you a hand in finding and choosing domain names. 1. Nowadays, it’s difficult to find a domain name that end with the popular .com, .net, and .org TLD‘s. 2. Dot-o-mator is a web tool that suggests site names based on prefixes and suffixes that you’ve entered (keywords). They also have a fun tool called Web 2.0 Domain Name Generator that generates "Web 2.0" site names like "Yakidoo" or "Zoompulse". 3. BustAName is a robust and feature-packed domain finder that uses linguistic data to help you search domains. 4. 5. 6. squurl squurl is another fast Ajax-based domain search engine. 7. 8. dnScoop 9. 10. 11. dyyo.com 12.

Triggering CSS3 Transitions With JavaScript At the beginning of this month I wrote a post accompanied by five demo pages that showed that CSS3 transitions could be triggered with a number of different events/states in CSS. That alone should help you see how these types of simple animations work. But let’s take this a bit further. CSS pseudo-classes and media queries (which I used in that other post to trigger the transitions) represent certain states for certain elements. These states occur after specific events on the page. Here’s the HTML: So we have a box with a class of “box”, and a button. $(function() { $("#bt").click(function() { $(".box").toggleClass("box-change"); }); }); $(function() { $("#bt").click(function() { $(".box").toggleClass("box-change"); }); }); This uses jQuery’s .toggleClass method to add or remove the specified class name. So when the button is clicked, after the .box-change class is added, this will trigger the transition. Why Would You Do This? Well, there could be a number of reasons.

Flavour Extended: The Ultimate Icon Set For Web Designers | Freebies Advertisement A couple of months ago we released the beautiful Flavours Icon set1 that was designed by Oliver Twardowski2, a graphic designer from Bonn, Germany, the set aimed to help designers in their Web and user interface designs, containing 177 icons in a resolution of 48×48 pixels. In this post we release the updated version of the icon set, now with 452 icons, freely available to use in private or commercial projects. The files are transparent PNGs, and the source file (.psd) is available for download as well (see the links below). As always, the set is completely free and may be used for any private or commercial project without any restrictions whatsoever. Download the set for free (450+ icons)! We express sincere gratitude to Oliver for his truly amazing work. Motivation behind the design As usual, here are some insights from the designer himself: After releasing my first pixel-based iconset ‘flavour’ right here at Smashing magazine, the feedback of the readers was incredible!

How to create a timeline slider with JQuery | KCLARK Web Design Many website has a long company history and they want to show their history. I will show you how to create a timeline slider with JQuery. You can follow me by reading the comments in the codes. First, start by loading in the necessary libraries and external files in the head. I set up to holde the content, to contained the content items, to hold timeline slider year 2002 and , , to set up the columns in the slide. The HTML header and slider Structure <! You will set up the navigation bar in this section. The HTML header and timeline navigation bar Structure <div style="clear: both;"></div> <! I set up the reset CSS code to remove the browsers default and style for the slider. The CSS slider Structure /*CSS reset*/ Style for the navigation bar. The CSS navigation bar Structure

12 Excellent Free Tools for Monitoring Your Site’s Uptime A website or web application’s high availability is very crucial; users who constantly encounter problems accessing the content of a site will not likely come back. For web applications – poor uptimes means users won’t be confident about your product: if they constantly experience issues with your apps’s availability, they will likely look for another solution that isn’t as problematic. It’s essential that your sites and web apps are constantly accessible to your users. 1. Sites24x7 is a simple website-monitoring tool for keeping track of your website or web application’s availability. 2. Are My Sites Up? 3. mon.itor.us mon.itor.us is a free site monitoring tool with loads of useful features that will help you maintain a high uptime. 4. Montastic is a free, quick, and easy-to-use tool for keeping constant knowledge of your websites’ availability. 5. ServerMojo is a simple-to-use service for supervising your web server’s uptime. 6. 7. 8. 9. 10. 11. 12. Related content

10 Randomly Good jQuery Plugins jQuery has been continuously giving its share in developing sites. Check out this list of random jQuery plugins that we’ve collected from awesome jQuery developer Addy Osmani. Very nice plugins and I’m sure you haven’t seen most of these. 1. In this tutorial you will learn how to build a single-page application (SPA) supporting graceful degradation using some of jQuery’s Best friends; DocumentCloud’s Backbone.js, Underscore.js, LAB.js and jQuery templating to name but a few. Source 2. Learn how you can use CSS3 transitions to power your application’s animations with jQuery’s .animate() method as a fallback where transitions aren’t supported. Source 3. Learn how to create a useful hover-based user interface using jQuery, CSS3, HTML5 and @font-face. Source 4. RocketBar is a simple solution for this which shows you how you can easily provide your users a persistent form of site navigation without them needing to scroll back up. Source 5. Source 6. Source 7. Source Source 9. Source 10. Source

Playground - How to create an awesome contact form Check out the new website with fresh and new jQuery plugins and tutorials! Visit jscraft.net Posted by: Marcin Dziewulski on 25.01.11 In this tutorial we are going to build a awesome contact form. We need to create necessery files: index.html, init.js and default.css. Include all files into section in your index.html: As always we need to write HTML markup from scratch. index.html <label> Name: </label> <label> Company: </label> <label> Your e-mail: </label> <label> Contact number: </label> <label> Message: </label> Easy? default.css . blocks p { margin - bottom : 15px ; position : relative ; . btn { display : block ; float : left ; height : 31px ; line - height : 31px ; padding : 0 10px ; background : url (../ gfx / bgbtn . jpg ) repeat - x ; color : #565e62; font - weight : bold ; font - size : 11px ; border : 1px solid #e1e0df; outline : none ; . text , . textarea { padding : 5px 10px ; height : 27px ; border : 1px solid #ddd; color : #333; background : url (../ gfx / bginput . jpg ) repeat - x bottom #fff;

Learn JavaScript | Mozilla Developer Network Our policy on modern JavaScript JavaScript is an actively evolving language and has changed greatly over the years. In particular, the 6th edition of the language (sometimes known as ECMAScript 2015 or ES6), introduced in 2015, added many new features. We think that the features added to JavaScript in ECMAScript 2015 and subsequent versions enable developers to write more readable, reliable, and expressive code, and that it's important to learn about them. The features we teach in this course are stable and have been supported by all major browsers for several years. This topic contains the following modules, in a suggested order for working through them. JavaScript first steps In our first JavaScript module, we first answer some fundamental questions such as "what is JavaScript?" JavaScript building blocks Introducing JavaScript objects In JavaScript, most things are objects, from core JavaScript features like strings and arrays to the browser APIs built on top of JavaScript.

What is Document Object Model (DOM) ? - Definition from Whatis.com Document Object Model (DOM), a programming interface specification being developed by the World Wide Web Consortium (W3C), lets a programmer create and modify HTML pages and XML documents as full-fledged program objects. Currently, HTML (Hypertext Markup Language) and XML (Extensible Markup Language) are ways to express a document in terms of a data structure. As program objects, such documents will be able to have their contents and data "hidden" within the object, helping to ensure control over who can manipulate the document. As objects, documents can carry with them the object-oriented procedures called methods. DOM is a strategic and open effort to specify how to provide programming control over documents. It was inspired in part by the advent of the new HTML capabilities generally called dynamic HTML and as a way to encourage consistent browser behavior with Web pages and their elements. Progress of the Document Object Model specification can be followed at the W3C Web site.

Related: