Category Archive for 'Programming'

CSS dropdown menu

#tier2 li ul li a {z-index:100;text-decoration:none;}
#tier2, #tier2a, .storyMenu, #tier2 li ul, #tier2a li ul {padding:0; margin:0; list-style:none;}
#tier2 li ul, #tier2a li ul { display:none; padding:0; margin:0; position: absolute; top:21px; left:0;}
#tier2 li ul li, #tier2a li ul li {padding:0; margin:0}
#tier2 li, #tier2a li, .storyMenu li {background:#ffffff; position:relative; display: block; padding:0;}
.storyMenu li a, #tier2 li a, #tier2a [...]

Read Full Post »

Good list of WordPress Plugins

This is a good list of Wordpress Plugins called 14 days of plugins.

Read Full Post »

Using DOM with innerHTML

When innerHTML isn’t Fast Enough has technique on using innerHTML in combination with DOM to improve speed for rendering in browsers.

Read Full Post »

This example shows all DIVs with classname more using Prototype $$ function.
Example 1

Example 2

Example 3

Show All

Read Full Post »

These are some really useful tips from Yahoo on improving your site performance.

Read Full Post »

function hide_department() {    $('by_department').hide();}
Event.observe(document, 'focus', function(e){ hide_department() });
Event.observe(element, name, observer, [useCapture]);name could be: click, keypress, mousemove, focus, onblur, initialize, onblur, onfocus

Read Full Post »

Etsy performance is very fast

Wow.. the site is blazing fast. Wonder how they make it so fast. Probably using memcache?? Sometimes I wish someone would talk about how a site was built, etc so other developers can learn from them.

Read Full Post »

{assign var='cols' value=0} {section name="outer" loop=$gallerylist}** LOOP **{assign var="cols" value=$cols+1}{if $cols eq 2}{assign var='cols' value=0} {/if}{/section}

Read Full Post »

function sortBulletin(obj) {    YAHOO.util.Dom.removeClass(['newest','monthly','yearly','all'], "pill_active");    YAHOO.util.Dom.setStyle(['monthly_dropdown','yearly_dropdown','all_dropdown'], "display","none");    YAHOO.util.Dom.addClass(obj, "pill_active");    YAHOO.util.Dom.setStyle(obj+"_dropdown", "display", "block");    var pos = YAHOO.util.Dom.getXY(obj);     YAHOO.util.Dom.setXY(obj+'_dropdown', [pos[0],pos[1]+25]); }

Read Full Post »

Set DIV position using YUI Library

Yahoo! UI Library: Dom Collection shows how to attach a DIV to another DIV based on position of that other DIV.

Read Full Post »