Category Archives: Code
For hobronto
You’re welcome. Bookmarklet Someone on twitter asked how to find and replace certain words on a web page. This is a bookmarklet on that replaces the word ‘god’ with ‘sky cake.’ Test it out!
Introducing scribbr.com
Scribbr is a tiny web app for drawing and posting to twitter. With jQuery, the user can control the color, size, opacity of the cursor to draw on the canvas element 320 x 320 in size. Last summer, I had … Continue reading
Fun with WebKit css gradients
As a follow up to yesterday’s woeful tale of using WebKit’s proprietary css properties, I wanted to follow up with a couple examples of how one can use these features without getting all “bevel-ly” The only benefit of text-shadow is … Continue reading
-webkit-background-clip Problems
Someday, all the nifty Photoshop Blending options will be available as CSS properties. Mark my words! In the mean time, we’re kind of stuck with drop shadows, and now gradients (and text strokes) for WebKit browsers. Too bad you can’t … Continue reading
Tackling Safari’s slow gif “feature” with jQuery
Safari’s WebKit has a funny behavior of displaying animated gif files at a lower frame rate than Firefox. From what I can tell, WebKit (including Google Chrome) caps the animated gif frame rates at 10fps. While it may be faster … Continue reading
jQuery missing layerX
Getting the Mouse position in jQuery is very simple. However, getting the position from within an element take some extra steps. Normally, a javascript event such as onmousemove would use event.layerX and event.layerY to get the coordinates of our mouse … Continue reading
jQuery Triptych Slideshow
My previous how-to showed a new way to look at the slider function featured at the Apple.com/mac site. This one goes to Apple once again and their bucket ads shown in the iTunes Music Store (screen shot). The buckets are … Continue reading
A better jQuery slider
If you haven’t seen Apple’s product slider in action, you must check it out. It’s a horizontal gallery of their products with horizontal slider controlled with javascript. I believe they are using the scriptaculous motion for this, but there should … Continue reading
My Peeps on Twitter
Somehow I’ve ended up following too many people on Twitter. Not that I don’t want to read each and every person’s tweet, but sometimes, I really don’t care and just want to follow a select few. LiveJournal has a filter … Continue reading