Archives for March 2008

You are currently browsing 4 article(s) published in March 2008, please try the search if you can't fint what you're looking for.


Numeric DLs jQuery Plug-in

Monday, March 31, 2008

This little plug-in will add numbers to definition-descriptions (<dd>) if there are more than one for a term (<dt>).

Take this code for example:

<dl>
    <dt>Jug</dt>
    <dd>A small pitcher.</dd>
    <dd>Vulgar Slang. A woman's breasts.</dd>
    <dt>Bird</dt>
    <dd>The animal of the skies</dd>
</dl>

Using the plug-in (like so: $.numericDLs();) would result in the following output:

Jug
(1) A small pitcher.
(2) Vulgar Slang. A woman's breasts.

Bird
The animal of the skies

Perhaps this could be done with pure CSS? Counters and generated content perhaps..

You can as usual get the code from my Google Code repository. Have fun!

Update

Tobias mentions a CSS-solution in the comments and after some playing around I managed to make it identical to the JS-one:

dl dt {
    counter-reset: i;
}

dl dd + dd, 
dl dd ~ dd:not(:last-child) {
    counter-increment: i;
}

dl dd + dd:before, 
dl dd ~ dd:not(:last-child):before {
    content: "(" counter(i) ") ";
}

Only real browsers though obviously.

jQuery Vibrate Plug-in

Thursday, March 27, 2008

This simple plug-in makes elements on the page vibrate.

I built it for a project at work and to be frank I think this sort of stuff is no better than the 90s blink-element but perhaps someone will find it useful.

Use it like:

$('#my-annoying-ad').vibrate();

Get the code here

Enjoy.... or not..

Console says: console is not defined

Wednesday, March 26, 2008

Console says: console is not defined

Well done...

Thursday, March 06, 2008

IE8 passes Acid 2

...and cheers for listening!

  • Comments are off
  • Filed under Other


Post It

From June 02 to April 23

  1. Mogrify is what you're looking for if you want to convert multiple images to multiple other images in ImageMagick
  2. Tommorrow, finally, the inFamous demo will be friggin availble on PSN!! Suweeeeeeeeet
  3. Fuck canvas is cool, I've started playing around with old 3D-shit again :)

March 2008

S M T W T F S
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31


Recent Comments

  1. cheap viagra on Bye, bye exscale!:
    nsikku...
  2. payday loans on Bye, bye exscale!:
    ixrhvy...
  3. buy cialis on Bye, bye exscale!:
    lqlokhr...
  4. payday loans on Bye, bye exscale!:
    casnriru...

Style Switcher

The style switcher allows you to change the look and feel of exscale.se.
Only CSS and JavaScript are changed. The XHTML stays the same.

For more information about the styles, check the styles page.


Categories


Random Quote

T minus 10... 11 - The Dean


Random Images




Answer This!

Do you find the "scroll-pagination" annoying? (If you don't know what it is, scroll to the bottom of the first-page)


Blog Roll