
Simple JQuery Image Slide Show with Semi-Transparent Caption Introduction Update 17 Dec 2009: I have created a new version of this image slide show. It's more efficient, clean and simple. Please visit: jQuery Photo Slide Show with Slick Caption Tutorial Revisited I will no longer provide support for this old tutorial Image Slide Show is one of the famous components in web design and development. Before we start, check out this industry-leading, unrivaled email security and anti-spam appliance hardware - Anti spam for Exchange. So, here we go again, I separated my codes into 3 sections: html, css and javascript and I will explain how it works in each section. Advertisement My ultimate objective is - to keep the html as simple as possible. Have a look at the html code: <div id="gallery"><a href="#" class="show"><img src="images/flowing-rock.jpg" alt="Flowing Rock" alt="" title="" width="580" height="360" rel="<h3>Flowing Rock</h3>You can put html element inside the REL attribute." 3. Finally, the Javascript code. Conclusion Update
CSS Drive- CSS Candy Menu CSS Candy Menu Date: 10/16/2008 CSS Candy Menu Author: Josh Jones Candy Menu is a stylish CSS drop down menu that's comes in six provocative colors to get you started: To get the menu, download "candymenu.zip". PSD Source FileWorking demos of each menuCSS StyleSheetAll images needed If you want to change the color of the menu in the PSD file, use the "Adjustment Layers" included with clipping masks. Comments (0) User Privileges OurPartners How to Load In and Animate Content with jQuery - Nettuts+ Vendors who are part of the IAB TCF937Reject allAccept all Purposes (Consent):Store and/or access information on a deviceCreate profiles for personalised advertisingUse profiles to select personalised advertisingPurposes (Legitimate Interest):Use limited data to select advertisingMeasure advertising performanceUnderstand audiences through statistics or combinations of data from different sourcesDevelop and improve servicesSpecial Purposes:Ensure security, prevent and detect fraud, and fix errorsDeliver and present advertising and contentSave and communicate privacy choicesCategories of data:IP addressesDevice characteristicsDevice identifiersProbabilistic identifiersBrowsing and interaction dataUser-provided dataNon-precise location dataUsers’ profilesPrivacy choicesData Retention Period:31 daysYour Consent:Consent expiry: 5 years 1 dayCookie expiry may be refreshed during the lifetime.Tracking method: Cookies onlyShow details
Things you may not know about jQuery I was going to do a bit of a series, releasing a jQuery tip every day or week or something, but I think I’m a little too lazy to commit to something like that. So I’ve compiled them all into one post! I’ll probably add to the list at later dates so make sure to bookmark it! Do you have a tip nobody knows about? – Add it in the comments…
Use jQuery to "turn off the lights" while watching videos Some videos on YouTube have a cool feature called “Turn the lights down”. Basically, when you turn lights down, the entire page darkens and let you watch video as if you are in the cinema. This tutorial will show you how to implement this simple effect. View live demo The problem Our example is simple – it consists of header, the video, “turn off the lights” link and sidebar with some information about the video. CSS for this is simple: Let there be… dark When link “Turn off the lights” is clicked, we need to darken the entire page. Let’s add a div to the end of our markup: Now let’s style it: Important thing here is z-index. Let’s involve jQuery $(document).ready(function(){ $("#shadow").css("height", $(document).height()).hide(); }); Aaaaand…. This code set the height of shadow div to the same value as document height and hides it. $(".lightSwitcher").click(function(){ $("#shadow").toggle(); }); If you try to run this now you will see that it works. Now it will work. jQuery
Create an apple style menu and improve it via jQuery Since I wrote my last tutorial on how to create a CSS only multilevel dropdown menu I got a lot of visitors who wanted to know how I created the main navigation of kriesi.at. (a so called kwicks menu) The interest in extraordinary menus seems to be high nowadays, so today I will teach you how this is done. Since the Apple-flavored Leopard-text-indent style is currently one of my favorite menu styles, we will start from scratch and build such a menu in Photoshop, then create the needed HTML and CSS and last but not least improve it via jQuery. This is what we are going to build (don’t forget to hover over the menu) Since the Tutorial is rather long and comprehensive here is a short overview of the upcoming tasks: Part 1: Conceptional work First of all you should do some conceptional work since you need to know the height of your menu itemsyou need to know the width of your menu items, both in normal and hover state.you need to know how many items you want Part 2: Photoshop Part 3: HTML and CSS
How to build a web widget (using jQuery) - Alex Marandon Published on 15 June 2010, updated on 10 February 2015, 110 Comments Introduction I created some web widgets for the London’s Design Museum and learned a few useful things in the process. Although all the necessary information can be found on the web, I couldn’t find a really comprehensive guide about doing this with jQuery so I decided to write this one. I’ll cover only techniques which are specific to web widgets so you should already be familiar with JavaScript, jQuery and web development if you want to follow easily. The interesting points will be: ensure the widget’s code doesn’t accidentally mess up with the rest of the page, dynamically load external CSS and JavaScript files, bypass browsers’ single-origin policy using JSONP. Don’t worry if all this doesn’t make sense to you yet, we’ll see in details what these techniques are used for in the context of building web widgets. That’s really all that a web site owner would need to include our widget on her pages. Can’t it be even simpler?
JavaScript Garden Function Declarations and Expressions Functions in JavaScript are first class objects. That means they can be passed around like any other value. The function Declaration function foo () {} The above function gets hoisted before the execution of the program starts; thus, it is available in the scope it was in, even if called before the actual definition in the source. foo (); // Works because foo was created before this code runs The function Expression var foo = function () {}; This example assigns the unnamed and function to the variable foo . foo ; // 'undefined' foo (); // this raises a TypeError Due to the fact that var is a declaration that hoists the variable name foo before the actual execution of the code starts, foo is already defined when the script gets executed. But since assignments only happen at runtime, the value of foo will default to undefined before the corresponding code is executed. Named Function Expression Another special case is the assignment of named functions. this ; b
How to build a scrolling list with jQuery : Five Minute Argument Sunday 7th February his tutorial explains, step-by-step, how to use CSS and jQuery animations to build a simple ‘auto-scrolling’ vertical list. Let’s be clear, here: the widget I’m about to put together isn’t exactly a stunning new advance in user interface design. But it does produce a nice final result, and you’ll probably learn a little about CSS and jQuery animations along the way. Requirements To make things more interesting, we’ll give ourselves some pretty strict requirements about behaviour and display. Each time a new item needs to be displayed, it should scroll into view from the top. These requirements should make for an interesting enough challenge, whilst offering a reasonable use case from which to study CSS and jQuery. Setup First, let’s get to the markup, which should be as straightforward as possible: <ul id="scroller"><li>Item one</li><li>Item two</li></ul> And here’s how the basic list is displayed: Item one Item two Adding the new item A new item Item one Item two
Rounded Corners With Javascript (jQuery) by 15 Days Of jQuery Yesterday at 5:15 PM, I was jones-ing for my quick email fix after being away from the computer for almost 48 hours so I fired up Thunderbird and instantly grabbed a few RSS feeds I subscribe to. (On the weekends I’m swamped with home renovation projects and all my free time is spent with friends and family… AWAY from the computer) My new “buddy” Dustin Diaz (who included a reference to me and this site in his most recent audioblog) posted an edgy “take-it-or-leave-it” kind of post called “Enough With Rounded Corners”. So I checked out this new resource for rounded corners and saw that the html would be perfect for an impromptu tutorial on jQuery – combining the wrap(), prepend(), and append() functions. Here’s the html markup that we’re going to use as our starting point: So, how would we take this html, and use jQuery to clean up the code? Well, first we need a “hook” – a unique html element, or an id, or a class name – to tell jQuery to target. Let’s try this: Where Are The Other Divs?
jQuery 1.4.3 Offline Learning Kit Hey guys. Quick post for you today. So by now, chances are you’ve had an opportunity to play around with jQuery 1.5 (and 1.5.1) and you may have even checked out some of the great new Deferred features that that release came with. Today I wanted to share an offline learning pack for anyone interested in tweaking their jQuery skills offline. What does this learning pack come with? I’m also actively recommending all beginner and intermediate developers read Rebecca Murphey’s excellent jQuery Fundamentals book as it’s a wonderful starting point for increasing your knowledge and skills with both jQuery and JavaScript in general. The 1.5.1 Offline Learning Kit Includes For record purposes, if you’re interested in picking up the 1.4.3 kit from last year, I’m going to leave it up below. The 1.4.3 Offline Learning Kit Includes If you’re looking to start working with jQuery Mobile, it can be nice to have a minimalist example at your fingertips to start off with.