banner ad

Friday, May 29, 2009

Rating with stars using definition lists: the DL, DT, and DD elements »

Definition lists vary only slightly from <ul><ol> lists in that list items consist of two parts: a term and a description. The <dt> tag is used in conjunction with <dl> and <dd>.  Using definition lists I rewrote...

Wednesday, May 27, 2009

rating with stars v1 »

I added rollover hover CSS to the previous star rating script. The concept does not change much, it's mostly CSS and the JavaScript will evaluate the star the mouse is currently on, and assign to it a rollover class name using addClass.  The logic...

Friday, May 22, 2009

Javascript rating with stars v0 »

I see all kinds of crazy CSS and ultra over the top rating systems over the web. I decided to create a simple one and expand on it. I created an unordered list <ul> and set <li> elements inside it. Each list item element then gets...

Thursday, May 21, 2009

Javascript Image loader with preloader »

I like the fact that in ActionScript, when preloading extrenal assets, one has access to events to monitor the progress of the load and create appropriate detailed preloading animations. Working from my last image loading experiment I added an interval...

Wednesday, May 20, 2009

Image loader menu v1 »

This is an extension of the last image loading experiment.  I added an "on" state script on the unordered list item menu to the left.  Once the button is clicked, in order to show the current selected image, I add a class named...

Tuesday, May 19, 2009

Image loader menu v0 »

This is an extension of the last image loading experiment.  I added an "on" state script on the unordered list item menu to the left.  Once the button is clicked, in order to show the current selected image, I add a class named...

Monday, May 18, 2009

Loading images dynamically in JavaScript »

A set of new experiments.  Loading images dynamically in Javascript. I will explore the basics and add preloaders to the mix. In this example I am using the links a href url to change the target images .src property. Once the image source value...

Thursday, May 14, 2009

filmstrip v5 : final »

This is the last iteration of the filmstrip series.  No major addition except for some CSS and HTML tweaks to enable for background images. The variable "currstep" hold the number of items that need to be shifted at every click.

Wednesday, May 13, 2009

filmstrip v4 »

This filmstrip is a slight modification from the filmstrip v4 script.  The issue I have with the last version is that the width of the filmstrip needs to be calculated "precisely" before animating.  This can cause a problem if items...

Tuesday, May 12, 2009

A few words about toolkits »

Wanted to add a few words of warning about the continual use of library/toolkits.  Of late I have been posting lots of experiments using the Moootools API .  I do consider Dojo/YUI/Mootools/Jquery  as  great shortcuts at obscuring...

filmstrip v3 »

Adding border recognition to the filmstrip v2 script.  I created a variable named "newscroll" to define the new position to scroll to. Using that, a conditional checks for the beginning and end of the filmstrip. This stops the animation...

Monday, May 11, 2009

filmstrip v2 »

I often like to post the progression of a complex script in order to show the thinking behind and let novice users learn and understand the cocktail that make a complex behavior. This post is based of the filmstrip v0 & filmstrip v1 experiments...

Friday, May 08, 2009

Programming Language Popularity »

I stumbled on a nice site this week.  Langpop.com collects and lists a variety of data about the relative popularity of programming languages. What I found interesting reading through the many charts is JavaScript's poularity.  It consistetly...

Filmstrip v1 »

Moving along with the filmstrip, I added a tween effect to animate the strip to it's new position. This is now the base for my filmstrip and in the next experiment I will add the next forward buttons in order to get it to move to new positions. errata:...

Thursday, May 07, 2009

Filmstrip v0 »

Starting on a new set of experiments, creating a flimstrip. I set up the CSS for a number of div's aligned horizontally. Most important here is the div that holds the squares has it's overflow property set to "hidden" to ask like a mask....

Wednesday, May 06, 2009

Scaling DOM Elements in % v3 »

This experiment uses the slider to change the speed of the Scaling DOM Elements in % v2 experiment. Looking back at the last series of experiments, I can definitely attest that browser performance is nothing like the Flash pluggin, although I need...

Tuesday, May 05, 2009

Scaling DOM Elements in % v2 »

In this example I introduce the concept of depth by creating a new FX where I set the z-index of the icon from it's scale value.  In other words, the bigger the icon the closer it is an vice-versa.  This code extends on the scaling dom elements...

Friday, May 01, 2009

Scaling DOM Elements in %  »

As you know, my ultimate goal is to create and play around with 3D camera's in JavaScript and these initial experiments explore essential elements necessary for 3D mathematics.  This is a new extension to the  on Moving elements from the...

JavaScript source code is now free to download »

I decided to make all my javascript experiments downloadable. Click on the ".zip" icon bellow each experiment to download all source code with HTML|CSS|JavaScript and assets.If you like the experiments and find them usefull in your projects....