Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Beatnik (493)

  (email not shown publicly)

A 29 year old belgian who likes Mountain Dew, Girl Scout Cookies, Tim Hortons French Vanilla Flavoured Cappucinno, Belgian beer, Belgian chocolate, Belgian women, Magners Cider, chocolate chipped cookies and Perl. Likes snowboarding, snorkling, sailing and silence. Bach can really cheer him up! He still misses his dog.

Project Daddy of Spine [], a mod_perl based CMS.

In his superhero time (8.30 AM to 5.30 PM), he works on world peace.

Journal of Beatnik (493)

Sunday June 20, 2004
06:52 AM

Javascript trick #35325

[ #19384 ]
In an attempt to build an online file manager, I needed some cool UI tricks. Want I had in mind was similar to what hotmail uses for their message listings. Basically, you would have a list of files and you could click on them and they would select/deselect (with a checkbox beside it). After a lot of surfing, swearing and cursing, I got a simple onClick handler but for some reason it would only change select and not deselect (change the color back). Since I recently discovered the joys of CSS, my next step was obvious and after plenty more surfing and cursing, I finally figured it.. Behold!!

<style type="text/css">
color: aliceblue;

color: white;


<tr class ="blue"
onClick=" = !; this.className = this.className == 'blue' ? 'red' : 'blue'; ">
<form name="foo">
<input type="checkbox" name="bar">

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.