background preloader

.animate

.animate
Description: Perform a custom animation of a set of CSS properties. The .animate() method allows us to create animation effects on any numeric CSS property. The only required parameter is a plain object of CSS properties. Animation Properties and Values All animated properties should be animated to a single numeric value, except as noted below; most properties that are non-numeric cannot be animated using basic jQuery functionality (For example, width, height, or left can be animated but background-color cannot be, unless the jQuery.Color plugin is used). In addition to style properties, some non-style properties such as scrollTop and scrollLeft, as well as custom properties, can be animated. Shorthand CSS properties (e.g. font, background, border) are not fully supported. In addition to numeric values, each property can take the strings 'show', 'hide', and 'toggle'. Animated properties can also be relative. Duration Callback Functions Basic Usage Step Function Easing Per-property Easing Demo:

.hover Bind one or two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements. .hover( handlerIn, handlerOut )Returns: jQuery Description: Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements. version added: 1.0.hover( handlerIn, handlerOut )handlerIn A function to execute when the mouse pointer enters the element.handlerOut A function to execute when the mouse pointer leaves the element. The .hover() method binds handlers for both mouseenter and mouseleave events. Calling $( selector ).hover( handlerIn, handlerOut ) is shorthand for: See the discussions for .mouseenter() and .mouseleave() for more details. Example: To add a special style to list items that are being hovered over, try: Demo: Example: To add a special style to table cells that are being hovered over, try: Example: To unbind the above example use: .hover( handlerInOut )Returns: jQuery

Simple Collapsible Panel jQuery plugin | Darren Ingram Introduction I just moved my website over to a Windows Azure hosted WordPress blog. My Google Analytics statistics showed me that by far the most popular content from my old website (which was a ASP.NET site rather than just a blog) was this information about a jQuery Collapsible Panel Plugin that I created a long long time ago while learning jQuery. So here is the post in case anybody wants to refer back to it. If you accessed this page from it’s original URL, then hopefully you just got redirected to here. Thanks! Original Post Yup, I know there are some collapsible panel plugins already available on the jQuery website. Yup, I know that some of them probably do a lot more than this one! So I figured this would be a great excuse! I just wanted something where I could wrap my existing html/aspx page sections within a div, tell it what the title of the section is and it would just go ahead and turn that into a panel for me. And here is the markup for that: I’m glad you asked! Download

.css Description: Set one or more CSS properties for the set of matched elements. As with the .prop() method, the .css() method makes setting properties of elements quick and easy. This method can take either a property name and value as separate parameters, or a single object of key-value pairs. When a number is passed as the value, jQuery will convert it to a string and add px to the end of that string. When using .css() as a setter, jQuery modifies the element's style property. As of jQuery 1.8, the .css() setter will automatically take care of prefixing the property name. As of jQuery 1.6, .css() accepts relative values similar to .animate(). As of jQuery 1.4, .css() allows us to pass a function as the property value: This example sets the widths of the matched elements to incrementally larger values. Note: If nothing is returned in the setter function (ie. function( index, style ){} ), or if undefined is returned, the current value is not changed. Demo:

jQuery - AJAX Advertisements AJAX is an acronym standing for Asynchronous JavaScript and XML and this technology help us to load data from the server without a browser page refresh. If you are new with AJAX, I would recommend you go through our Ajax Tutorial before proceeding further. JQuery is a great tool which provides a rich set of AJAX methods to develope next generation web application. This is very easy to load any static or dynamic data using JQuery AJAX. JQuery provides load() method to do the job: Syntax: Here is the simple syntax for load() method: Here is the description of all the parameters: URL: The URL of the server-side resource to which the request is sent. Example: Consider the following HTML file with a small JQuery coding: Here load() initiates an Ajax request to the specified URL /jquery/result.html file. When you click the given button, then result.html file gets loaded. There would be a situation when server would return JSON string against your request.

LavaLamp for jQuery lovers! | Ganesh Hover above and feel for yourself, the nifty effect of Lava Lamp. What you just experienced is nothing but the LavaLamp menu packaged as a plugin for the amazing jQuery javascript library. I personally believe that the effect rivals that of flash – Don’t you? Especially considering the fact that it is extremely light weight. Just so you know, it weighs just 700 bytes(minified)! Often I have noticed, that the credits are usually granted towards the end. As User Interface developers, we know that one of the first widgets our visitors use is a “Menu”. I hope you agree that a typical HTML widget consists of 3 distinct components. A semantically correct HTML markupA CSS to skin the markupAn unobstrusive javascript that gives it a purpose Now lets follow the above steps and implement the LavaLamp menu for your site. Step 1: The HTML Since most UI developers believe that an unordered list(ul) represents the correct semantic structure for a Menu/Navbar, we will start by writing just that. Bonus

Auto complete text box with PHP, jQuery and MySql | TutsforWeb In this tutorial I want to show you how easy to do a auto complete text box with PHP, jQuery and MySql. Firstly download the autocomplete jQuery plugin and extract it to your hard drive. And then create a folder in your localhost. Copy jquery.autocomplete.css and jquery.autocomplete.js file to your project folder. And you will also need jquery.js. Creating database table We need to create a table in our database before writing our script. CREATE TABLE `tag` ( `id` int(20) NOT NULL auto_increment, `name` varchar(50) NOT NULL, PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ; INSERT INTO `tag` (`id`, `name`) VALUES (1, 'php'),(2, 'php frameword'),(3, 'php tutorial'),(4, 'jquery'),(5, 'ajax'),(6, 'mysql'),(7, 'wordpress'),(8, 'wordpress theme'),(9, 'xml'); index.php autocomplete.php This file is called from our jquery script. We have done. By the way, I use the old jquery plug in this project.

Easy Paginate - styled demo Click on the links below to navigate through items Template 01 Pretty cool template Template 02 Pretty cool template Template 03 Pretty cool template Template 04 Pretty cool template Template 05 Pretty cool template Template 06 Pretty cool template Template 07 Pretty cool template Template 08 Pretty cool template Template 09 Pretty cool template Template 10 Pretty cool template Previous1234Next 15 Slide Panel jQuery Plugins - DesignHuntR 15 Easy to use slide panel jQuery plugins for web designers and developers to design their websites more in a user friendly manner. Sliding panels are important in today’s world of company showcasing of your website contents. Slide panels helps you to toggle or hide your contents either by clicking or hover on a hook button. Toggling the content using a ready to use plugin can be something very useful to many of us to make the slide panel more robust. Free slide panel jQuery plugins 1) MB.jQuery Extruder Plugin – Slide down, up, left and right content This is the best sliding content panel jQuery plugin I found and it is free. 2) PageSlide jQuery Plugin – Slide the content on your sidebar The PageSlide jQuery plugin can actually slide the contents on your sidebar. 3) TabSlideOut jQuery Plugin TabSlideOut jQuery plugin can help you add a sticker type contact, social or login panels on to your left or right, which slides out on a click and closes back with one more click.

leanModal - a JQuery modal plugin that works with your CSS jQuery plugin: Easy Image Zoom I have been working on a little script for a client of mine, that required product image magnification. The task was to create a script that will allow users to see large details of the product while moving cursor over medium sized image. During the process I decided to create a jQuery plugin and share it with you guys! Just as with all my script I try to keep things as lightweight as possible, and most important, as customizable as possible. I hope you’ll find this very easy to apply to your own websites. Take a look at the demo or Download the plugin Introduction First I suggest you check out the demo to see what the plugin is all about. Markup I usually start this section of my articles with the same sentence: "the markup couldn’t be simpler" The main idea behind this and other plugins I write is – keeping the markup as simple as possible. All you need for this plugin to work is anchor element containing the small image linking to the large image, but this structure is required: Options id

Cloud Zoom Jquery Copyright © 1999-2012 GoDaddy.com, LLC. All rights reserved. *One FREE .COM, .CO, .NET or .ORG with purchase of a new 12-, 24- or 36-month website builder plan. Plus ICANN fee of $0.18 per domain name per year. You must add the domain name into your cart before purchase, and you must select a domain term length equal to or less than the term length of your website builder plan to qualify for the free domain offer. + New .COMs $7.99/yr plus 18 cents/yr ICANN fee.

trepmag/jrac - GitHub jQuery convertion: Garagedoor effect using Javascript Today I finally found the courage to go and try jQuery. After getting some people say: “You should use jQuery instead of scriptaculous.” I began thinking. What is the reason I choose script.aculo.us again? Must have been something I read in that time. After 5 minutes of reading about selectors in jQuery and 15 minutes of coding it was born. For all the jQuery lovers: Here is the Garage Door effect. Download jQuery Garage Door zip-archive Example Open the jQuery Garage Door example Since this article is a redo of Garagedoor effect using Javascript I’ll just make it so that it fits jQuery. An example of the GarageDoor effect in work is found here: Download the following archive containing everything you need: Unzip the contents of the archive and upload the contents to your server, the set folders can be adjusted to your needs. Stay tuned for more jQuery convertions!

Related: