Tag Archive | "JavaScript"

Awesome CSS+JS form styling

onsdag, marts 10, 2010

Kommentarer slået fra

Sexy CSS+JS Form I was working on our new open source project that i think you will like and I was working on the registration page. This is what I got in the end and i will walk you trough the process with me. This new tutorial is about styling the forms of your website, I [...]

Continue reading...

Making a Mosaic Slideshow With jQuery and CSS

onsdag, marts 10, 2010

Kommentarer slået fra

When designing a product page, it is often necessary to present a number of images in a succession, also known as a slideshow. With the raise of the jQuery library and its numerous plugins, there is an abundance of ready-made solutions which address this problem. However, to make a lasting impression to your visitors, you [...]

Continue reading...

Design and Code a Cool iPhone App Website in HTML5

mandag, marts 8, 2010

Kommentarer slået fra

HTML5 is definitely the flavor of the month, with everyone in the design community getting excited about its release. In this tutorial we’ll get a taste of what’s to come by building a cool iPhone app website using a HTML5 structure, and visual styling with some CSS3 effects. HTML5 isn’t here just yet, but the Working [...]

Continue reading...

Creative Button Animations with Sprites and JQuery (Part 2: CSS, XHTML, JQuery)

onsdag, marts 3, 2010

Kommentarer slået fra

In Part 1 of this tutorial, you designed a button sprite that will be coded with HTML, CSS, and JQuery in this part of the tutorial. If you do not want to complete part one of this tutorial, you can download the source files created in that lesson here. Step 1 – HTML Different people will require a [...]

Continue reading...

Quick Tip: Learning jQuery 1.4’s $.proxy

onsdag, marts 3, 2010

Kommentarer slået fra

One of my favorite new features in jQuery 1.4 is the new $.proxy method. It allows us force a particular context when calling a method. In JavaScript, there can be times when it’s difficult to hold on to the this keyword. For example, when it’s bound to some event handler, this now refers to the [...]

Continue reading...

How We’ll be Building Websites in 5 years: HTML5 and CSS3 layout

onsdag, marts 3, 2010

Kommentarer slået fra

Graceful Degradation Since HTML5 and CSS3 aren’t going to be supported in all the browsers, especially not older ones like IE6, we can try and make it work in everything, but it won’t look the same in all of the browsers. For instance, rounded corners wont work in IE or Opera, but it wont affect the [...]

Continue reading...

Sanitize Database Inputs

onsdag, marts 3, 2010

Kommentarer slået fra

1) Function for stripping out malicious bits <?php function cleanInput($input) { $search = array( '@<script[^>]*?>.*?</script>@si', // Strip out javascript '@<[\/\!]*?[^<>]*?>@si', // Strip out HTML tags '@<style[^>]*?>.*?</style>@siU', // Strip style tags properly '@<![\s\S]*?--[ \t\n\r]*>@' // Strip multi-line comments ); $output = preg_replace($search, '', $input); return $output; } ?> 2) Sanitization function Uses the function above, as well as adds slashes as [...]

Continue reading...

PHP and MySQL File Download Counter

torsdag, februar 25, 2010

Kommentarer slået fra

It has been a while since we’ve done a proper PHP & MySQL tutorial here, So today we are creating a simple, yet robust, file download tracker. Each file will have a corresponding row in the database, where the total number of downloads is saved. PHP will update the MySQL database and redirect the visitors to [...]

Continue reading...

CSS Fundamentals: CSS 3 Transitions

torsdag, februar 25, 2010

Kommentarer slået fra

As CSS3 rolls out around the web, it is bringing some interesting new presentational techniques along with it. Today, we’ll review the basics of using CSS3 transitions and animations to add an extra layer of polish. Tutorial Details Program: A web browser that can utilise CSS3 transistions (Chrome or Safari) Language: CSS Difficulty: Easy Estimated Completion Time: 30 min Step [...]

Continue reading...

Validate Age

torsdag, februar 25, 2010

Kommentarer slået fra

This snippet presupposed an HTML form with and ID of “age-form” and three inputs (text or select) with the IDs “day”, “month”, and “year” respectively. $("#age-form").submit(function(){ var day = $("#day").val(); var month = $("#month").val(); var year = $("#year").val(); var age = 18; var mydate = new Date(); mydate.setFullYear(year, month-1, day); var currdate = new Date(); currdate.setFullYear(currdate.getFullYear() [...]

Continue reading...