Dave Smith.info | Just another Dave Smith

The below snippet worked with my test page where the current asynchronous snippet when placed in the head element would cause IE6 to stumble with “Operation Aborted”. The test page markup can be found at the bottom of the post.
The snippet:
<script type=”text/javascript”>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);

[...]

No tags

I believe there is a useful and yet missing CSS3 selector. I’ll explain with a rough example:
<section>
<h1 or h>My section heading</h1 or h>
<p>Para</p>
<p>Para</p>
<p>Para</p>
<p>Para</p>
</section>
Given the above, to style the section content so that it is indented by 20px, but leave the heading with no margin, could be done with:
.section > *:not(h1) {margin-left:20px;}
but what if the following [...]

· ·

Mar/09

9

jQuery.animate-sprite

A bit of fun with a jQuery and background image sprite.
Current version 1.0.4 alpha.

No tags

Feb/09

8

jQuery.stacker-menu

Out of interest in the varying menu systems at my disposal on the web, I have created some of my own. My lastest, the stacker menu, blends previous ideas with the inspirational jQuery API browser (jQuery) menu. The code is still pretty fragile but in development. Please try out the latest demo and let me [...]

· · · · ·

Feb/09

7

jQuery plugin template

Wanting a quick way to create a plugin in jQuery I found A Plugin Development Pattern (Learning jQuery), by Mike Alsup, via Improving upon the jQuery Plugin Template (Google Groups). Later, much later, I looked in the more obvious place; Plugins/Authoring (jQuery). I work best from hacking examples, so Mike Alsup’s pattern/template was the most [...]

· · ·

Jan/09

13

Progressive JPEGs for thumbnails?

Just had a thought that maybe the browsers could sort this out. A browser could detect when a JPEG is shown smaller than full-size and choose to download only what is needed.
For example, if a JPEG is displayed 100% or larger then the full image is downloaded. If displayed at 20% then maybe only the [...]

· ·

Not possible as far as I’m aware, but thumbnails do annoy me. Either they are processed smaller version of the full image – a form of duplication. Or the full version is used but displayed smaller – bandwidth, page loading times and browser image resizing beauty niggles.
Progressive JPEGs load progressively with each iteration enhancing the [...]

· ·

Dec/08

21

jQuery.linkify

A plugin for jQuery turning sections into links. Read the jQuery.linkify page for a demo and more info.

· · · ·

Sep/08

23

Right then

I’ve started this thing

No tags

Theme Design by devolux.nh2.me