jQuery LazyLoad Ad - Afficher les pubs après le chargement de ses pages jQuery LazyLoad Ad est un plugin jQuery pour afficher les publicités de manière asynchrone et ainsi accélerer le chargement des pages de ses sites. L'affichage des publicités sur un site est un des facteurs qui ralentit le chargement d'une page. Le plugin jQuery LazyLoad Ad propose de résoudre ce désagrément en faisant afficher les publicités qu'une fois la page web complétement affichée. Utilisation de jQuery LazyLoad Ad En tout premier lieu, on commence par initialiser le plugin: 1. 2. 3. 4. 6. Il faut ensuite récrire le code publicitaire habituellement utilisé pour l'appeler avec le plugin. En prenant l'exemple d'un code pour adSense, on affichait notre publicité comme ceci : 1. 2. google_ad_client = "ca-pub-6922618980534490"; 3. google_ad_slot = "3844259857"; 4. google_ad_width = 300; 5. google_ad_height = 250; 7. Maintenant, avec le plugin, il faudra faire : 02. 03. google_ad_client = "ca-pub-6922618980534490"; 04. google_ad_slot = "3844259857"; 05. google_ad_width = 300; 06. google_ad_height = 250;
iPad Simulator - alexw.me Let me tell you what a crazy week it’s been regarding my iPad Simulator A little background I’ve thought about creating the iPad simulator shortly after I bought my iPad. I was fascinated by the UI and wanted to see if I can recreate it. This isn’t the first online simulator I’ve built, before this, was a Nokia n97 simulator, also built with JS + CSS ( I’ve uploaded the iPad simulator a while ago, started playing with it, adding apps (google maps, safari, photos etc’) , and I was getting 5 hits daily (most of them me from work) Forrst I joined Forrst and decided to share it with the forrsters , and I got amazing feedback. W3c Israel Some weeks after, I went to a W3C Israel meeting on web app development and after a short hackaton (results of which you can see here and fork on github ) I’ve showed the guys there the iPad simulator among other things. Morning After Twitter I’m glad you like it. Websites and blogs What’s next?
Collapsing Site Navigation with jQuery Today we will create a collapsing menu that contains vertical navigation bars and a slide out content area. When hovering over a menu item, an image slides down from the top and a submenu slides up from the bottom. Clicking on one of the submenu items will make the whole menu collapse […] View demoDownload source Today we will create a collapsing menu that contains vertical navigation bars and a slide out content area. The beautiful fashion photos are taken from Beyrouth’s photostream on flickr. So, let’s get started! The Markup Our HTML will consist of a main container with the class and id “cc_menu”. The first item will get a z-index of 5 and then we will decrease the z-index for the next items. Each submenu item will share its class with the respective content div. Let’s take a look at the styling. The CSS Our main div that surrounds everything will have the following style: The width of this container is the sum of all the item widths which is 5 times 140 pixels. And that was the style.
Nivo Slider - The Most Awesome jQuery Image Slider jQuery & WordPress Image Slider The Nivo Slider is world renowned as the most beautiful and easy to use slider on the market. The jQuery plugin is completely free and totally open source, and there is literally no better way to make your website look totally stunning. If you don’t believe us, check out the list of features below and you soon will. Beautiful Transition Effects The Nivo Slider makes displaying your gallery of images a beautiful experience, by using amazing transition effects ranging from slicing and sliding to fading and folding. Simple and Flexible Setup The Nivo Slider was designed to be as simple to setup and use as it could possibly be. Small, Semantic & Responsive The Nivo Slider is also designed to have as small an impact as possible on your page load times, so the packed version only weighs 15kb. Free to Use & Abuse The Nivo Slider jQuery plugin is open source and released under the MIT license. Powerful & Simple Slider Creation Multiple Slider Types Slider Themes
Sliding Boxes and Captions with jQuery | Build Internet! Add an extra layer of information to your images with sliding boxes. This is now a plugin! Check out the announcement post for the Mosaic jQuery plugin. The Basic Idea All of these sliding box animations work on the same basic idea. Confused? From this basic idea we can play around with animations of the sliding element to either show or cover up the viewing area, thus creating the sliding effect. Step 1 – CSS Foundation Work Given the basic structure outlined in the helpful image above, we will need to use a little bit of CSS to make it work as intended. The following defines the viewing window (.boxgrid) and sets the default position for images within it to the top left. If you aren’t using the semi-transparent captions you are done with CSS – move to Step 2. Opacity that plays nice in all browsers is a rough topic, educate yourself if you need to. Now we’ll need to set up the default starting point for the caption box. Step 2 – Adding the Sliding Animations Step 3 – The HTML Google+