background preloader

45 Powerful CSS/JavaScript-Techniques - Smashing Magazine

45 Powerful CSS/JavaScript-Techniques - Smashing Magazine
Advertisement CSS and JavaScript are extremely powerful tools for designers and developers. However, sometimes it’s difficult to come up with the one excellent idea that would solve a problem that you are facing right now. In this post we present 45 useful CSS/JavaScript-techniques that may help you find clever solutions to some of your problems or just get inspired by what is possible with CSS. Please notice that this is the first part of our large round-up of fresh CSS/JavaScript-techniques. We are aware that many readers are tired of “lists” floating around in the Web, but we are confident that the vast majority of our visitors will benefit from this post format and will find at least some of the techniques featured in this post useful. Interesting CSS Techniques Building the New Visual AnnotationsThese note overlays are composed of two main elements, an overlay with the shine and a border with the transparency. CSS Navigation Menus Sproing! CSS Typography and Body Copy CSS Lists

brandonaaron's jquery-virtual_dom_events at master - GitHub 50 Brilliant CSS3/JavaScript Coding Techniques - Smashing Magazi Advertisement CSS3 is coming. Although the browser support of CSS 3 is still very limited, many designers across the globe experiment with new powerful features of the language, using graceful degradation for users with older browsers and using the new possibilites of CSS3 for users with modern browsers. That’s a reasonable solution — after all it doesn’t make sense to avoid learning CSS3 (that will be heavily used in the future) only because these features are not supported yet. The point of this article is to give you a glimpse of what will be possible soon and what you will be using soon and provide you with an opportunity to learn about new CSS3 techniques and features. In this post we present 50 useful and powerful CSS3/jQuery-techniques that can strongly improve user experience, improve designer’s workflow and replace dirty old workarounds that we used in Internet Explorer 6 & Co. Visual Effects and Layout Techniques With CSS3 Navigation Menus With CSS 3 Learning New CSS3 Selectors

The Seven Deadly Sins Of JavaScript Implementation - Smashing Magazine Advertisement Using JavaScript has become increasingly easy over the last few years. Whereas back in the day we needed to know the quirks of every browser, now many libraries such as jQuery, YUI, Dojo and MooTools allow someone who doesn’t even know JavaScript to spruce up boring HTML documents with impressive and shiny effects. If you look at some of the code that has been released, though, we do seem to have taken a step backwards. The rules for solid, maintainable and secure JavaScript haven’t changed, though. We’ve all had to work with code written by other people. Sins Of Our Fathers: Browser-Specific Code One of the main obstacles that kept us from evolving as developers was that JavaScript was largely browser-specific. This happens to be one reason why Internet Explorer 6 refuses to die. The good news is that you won’t find many scripts these days that begin with if(document.all){} and continue with else if(document.layers){}. Libraries to the Rescue What do I mean by these?

Ford adapts Sync to create myFord Touch driver interface News By Elizabeth Heichler January 7, 2010 12:05 AM ET Meanwhile, Ford is also "betting that you'll be one with your phone," as Mulalley put it, and is tapping into the booming ecosystem of applications for mobile devices. Julius Marchwicki, product manager for mobile application connectivity, demonstrated the end result of sharing the Sync SDK with Internet music service Pandora.com, in a car outfitted with Sync (but not the new myFord Touch interface). It took a total of ten days for developers of mobile apps -- which also included Stitcher.com and Twitter client OpenBeak -- to ready their products to work with Sync, Marchwicki said. Marchwicki noted that Ford has a fairly complex set of rules that prevent third-party applications from doing malicious things or presenting information to drivers in distracting ways. Ford shared the Sync API with students at the University of Michigan, among other institutions, to see what applications they might come up.

20 Awesome jQuery Enhanced CSS Button Techniques With all the talk of CSS3 at the moment, its easy to overlook the impact Javascript, especially jQuery, can have on the appearance of the basic web button. As such, we have collected 20 useful CSS buttons techniques that have all been improved and enhanced by the sooper-dooper power of jQuery. Creative Button Animations with Sprites and jQuery This tutorial will show you how to build creative hover animations for buttons using sprites. Part 1 of this tutorial explains the design process in Photoshop and in, in part 2 you will learn how to convert it to XHTML + CSS, and finally adding a fading hover effect with jQuery. View the Tutorial » GitHub-Style Buttons with CSS and jQuery (or MooTools, or the Dojo JavaScript) GitHub seems to understand that most repo sites are usually boring so they’ve spiced their site up with some catchy CSS and great JavaScript features. View the Tutorial »View the Demo » Cross-Browser Rounded Buttons with CSS3 and jQuery View the Tutorial »View the Demo »

Selectors Original lab by Karl Swedberg Enhanced by Cody Lindley. FYI (ie6 != supported) jQuery Selectors Download This Lab This sentence is in <div id="myid">. This is a paragraph, which means it is wrapped in <p> and </p>. This is the first list item (<li>) in an unordered list (<ul>). <p class="myclass">This is another paragraph. This is a textarea Enter Your Own Selectors ( example: li:nth-child(2) ) li:nth-child(2) Basics $('code') $('#myid') $('.myclass') $('code, #myid, .myclass') Hierarchy $('div code') $('li > ul') $('strong + em') $('strong ~ em') Basic Filters $('li:first') $('li:last') $('li:not(li:first)') $('li:even') $('li:odd') $('li:eq(1)') $('li:gt(2)') $('li:lt(2)') $(':header') $(':animated') Content Filters $('li:contains(second-level)') $(':empty') $('li:has(a)') $('p:parent') Visibility Filters $(':hidden') $(':visible') Attribute Filters $('li[class]') $('a[rel="self"]') $('a[rel! $('[class^="my"]') $('a[title$="blog"]') $('a[href*="zip"]') $('a[rel][href][title$="blog"]') Child Filters $('li:nth-child(even)')

CSS3 animations and their jQuery equivalents As you might know already, I'm not a big fan of animations that are added in CSS3. Yet, several people on Twitter told me why they really like the feature. At that point, I wanted to play around with it too. At the same time, I wanted to see if those animations with CSS3 could be created with jQuery too (especially for those browser that don't support CSS3 animations yet). This tutorial/these examples will show the use of the same HTML, with different classes for CSS3 and jQuery. IMPORTANT NOTE: Sadly, CSS3 and HTML5 aren't the standards (yet) these days (when will it ever be?). With that said, check out how you can re-create these and learn some more about CSS3 animations and jQuery. Video Here's a small example video showing both the CSS3 and jQuery animations inside the latest version of Safari. Of course, if you're running Safari or Chrome, you can view all examples yourself. Fade For our first effect, we'll do a simple fade. jQuery The jQuery example is just as elegant as the CSS3 one.

Seven JavaScript Things I Wish I Knew Much Earlier In My Career - Smashing Magazine Advertisement I’ve been writing JavaScript code for much longer than I care to remember. I am very excited about the language’s recent success; it’s good to be a part of that success story. Shortcut Notations One of the things I love most about JavaScript now is shortcut notations to generate objects and arrays. var car = new Object(); car.colour = 'red'; car.wheels = 4; car.hubcaps = 'spinning'; car.age = 4; The same can be achieved with: Much shorter, and you don’t need to repeat the name of the object. The other handy shortcut notation is for arrays. var moviesThatNeedBetterWriters = new Array( 'Transformers','Transformers2','Avatar','Indiana Jones 4' ); The shorter version of this is: var moviesThatNeedBetterWriters = [ 'Transformers','Transformers2','Avatar','Indiana Jones 4' ]; The other thing about arrays is that there is no such thing as an associative array. var car = new Array(); car['colour'] = 'red'; car['wheels'] = 4; car['hubcaps'] = 'spinning'; car['age'] = 4; Event Delegation

Showcase Of Modern Navigation Design Trends - Smashing Magazine Advertisement The navigation menu is perhaps a website’s single most important component. Navigation gives you a window onto the website designer’s creative ability to produce a functional yet visually impressive element that’s fundamental to most websites. Because of their value to websites, navigation menus are customarily placed in the most visible location of the page, and thus can make a significant impact on the visitor’s first impression. The design of a navigation menu has to be outstanding in order to sustain the user’s interest. You should also read the following related posts: 3-D Navigation Lately, we’ve seen a trend towards design elements that sit on a higher z-plane; that is, they appear closer than other elements on the page. DelibarThe content area on the Delibar website looks like a pile of two pieces of paper, with the navigation items holding them together. Mystery TinThe Mystery Tin navigation menu is arranged vertically. Speech Balloons Rounded Corners Unusual Shapes

Enhance Forms Using jQuery: 30 Tutorials and Plugins Forms are very important part of any website, whether it is sign up form, log in form or comment form. These forms are source of interaction between your website and its users. For example if anyone is signing up on your website it will be his/her first experience working on your website and it is said “First Impression Is Last Impression”; if users see your sign up form very elegantly and creatively designed they will have good first impression about your website. Same in the case of all other forms; which play the important role in the success of your website. Today we have rounded up a bunch of jQuery Plugins, Tutorials and Resources which will aid and facilitate you in enhancing the beauty of the various forms present on your website. 1. In this tutorial you will learn to turn any web form into a wizard with the help for jQuery. 2. 3. If you are sick and tired of you outdated drop down then this script will let you add extra beauty and grace in it. 4. 6. 7. jQuery Comment Preview 8.

How to start writing your own sweet jQuery scripts Sometimes it can be hard to start writing a Javascript script when you don’t know what to do instantaneously. But luckily there is the Internet right? Just go to Google and type in what you want in a script. The problem is that you still don’t know how to do such things. In this article I’ll discuss the viral points of planning out a Javascript / jQuery script with ease. Before I start talking about Javascript and jQuery I want to take the time to do some shameless self-promotion. A few weeks ago I opened up a small blog on tumblr . The url is: Now on with the article! Good to know Before you start working with jQuery, it’s best you first understand Javascript and the difference with it and plain HTML and CSS. Most HTML elements are static, they don’t move, they just sit there. This is where Javascript (in this case in addition jQuery) steps in, which you probably already know. If you’re already into Javascripting, the previous steps would be out of the question.

Ce que nous réserve CSS3 en 2010 - Alsacréations L'écriture des spécifications CSS progresse à grands pas, et la version 3 comporte déjà plusieurs modules implémentés dans les navigateurs récents. L'année 2010 verra certainement nos habitudes changées par les nouvelles possibilités offertes en CSS 3. D'ores et déjà de nombreuses utilisations concrètes voient le jour. Vous pourrez constater l'état d'avancement des différents modules CSS sur la page récapitulative Cascading Style Sheets : Current Work. Des coins arrondis Du Web 2.0 avec style La propriété border-radius arrondit les angles de n'importe quel élément HTML, sans avoir besoin d'images ni de JavaScript. Using Rounded Corners with CSS3 (EN) Créer des coins arrondis en CSS et sans images CSS: border-radius and -moz-border-radius (EN) La gestion de l'opacité La transparence enfin maîtrisée ! L'interprétation des images transparentes en PNG (24 bits) est une première délivrance pour les web-designers qui pourront mettre en œuvre plus de créativité. Les arrière plans multiples Les ombrages

Windows 7 Development Gotchas | IT Expert Voice In this article, developers identify common problems in porting custom business applications to Windows 7 from Windows XP or Windows Vista, and in taking advantage of the OS’ new features. Why make your own mistakes when you can learn from others’ experiences? Find out where the bodies are buried. My father-in-law once said that the best way to fix his old, broken-down car was to “Jack it up and drive a new one underneath.” Depending on the state of your software, that may be how you have to “update” an old Windows application: Replace it. One developer, Rob, has been trying to update a Windows XP Visual Basic 6 application for months and it’s turned into a complete rewrite. Before your company can migrate its computers to Windows 7, it has to make sure that all the business’ existing software will work with the new OS. I don’t mean to give the impression that code changes are always necessary. I only address custom applications in this article. OS version changes.

Related: