I'm a 32-year-old webdeveloper living in Wateringen, working in Rotterdam, The Netherlands.
This is my personal weblog.
Sometimes I make art with code.
I like to make lots of photos, of which I post my faves here.
Mail me at milovermeulen at gmail dot com!
View all photos, or filter by faves, art, concerts, trips, animals, black-and-white, street shots, squares, more...
integrating javascript into stylesheets
body { background: url(" javascript: document.body.onload = function(){ ...custom js here... } "); }By specifying a rule like this in the browser's user stylesheet, it might even be possible to run a custom set of Javascript commands on opening of any visited website. (Although my brief attempt at making this work proved unsuccessful.) [via webgraphics]tags:- css
- coding
- javascript
posted Monday, January 05, 2004comments
1. posted by Ruben at 13:26 on January 07, 2004
http://gathering.tweakers.net/forum/list_messages/831654/last
The interesting part is that it is somehow specified in the W3 specs of CSS2, see:
http://www.w3.org/TR/REC-CSS2/generate.html#content
http://www.w3.org/TR/REC-CSS2/media.html
2. posted by Richard Soderberg at 01:01 on January 13, 2004
It seems IE is ignoring this directive, which I think is right.
3. posted by Richard Soderberg at 01:13 on January 13, 2004
4. posted by bob at 17:51 on May 27, 2006
5. posted by A to Z of World at 10:32 on January 15, 2007
6. posted by hotmail.com,ddrmax4ever,Derek at 17:48 on January 18, 2008
« i'm still writing * on my * | Main | weblog snapshots »