Search
-
Recent Posts
- To Do: Efficient, Future-Friendly Front End Strategy
- An Event Apart SF 2011 – Resources and Sound Bites – Part 2
- An Event Apart SF 2011 – Resources and Sound Bites – Part 1
- Dynamic Height Cross Domain Iframe postMessage Javascript
- Exclude custom post types from wordpress search – do not use exclude_from_search
- CSS Resources from Wordcamp SF 2011
- Color Numbers in Ordered List with CSS Counter() and :Before Pseudo-Element
- How To Show The Full Content of Multi-Page/Paginated Posts in the Feed WordPress (content after nextpage tag)
Topics
Category Archives: Uncategorized
An Event Apart SF 2011 – Resources and Sound Bites – Part 2
all presentations: http://aneventapart.com/2011/sanfrancisco/slides/ Using Flexible Boxes – Eric Meyer, author, CSS: The Definitive Guide, 3rd Ed. flexible boxes are sort of like tables, but behave much better and do cooler things. starting with: a list with list items (boxes of … Continue reading
Posted in Uncategorized, web design
Leave a comment
How To Make An American Flag with CSS3 Gradients
I recently came across Lea Verou’s CSS3 gradient pattern gallery, and was inspired to try my hand at making a css3 gradient pattern. I decided to make an American flag. This is not strictly a background pattern, since it requires … Continue reading
Posted in Uncategorized, css3, gradients
Leave a comment
How To Automatically Add Categories to Posts in WordPress
I had a need to create a category feed that included almost every post, except for a few exceptions. Rather than having to manually check a category each time you post, why not have that category automatically get checked? I … Continue reading
Posted in Uncategorized, php, wordpress
Tagged automatic categories, php, wordpress, wordpress categories
Leave a comment
How to wrap element in CDATA for rss feed using XSLT
I was trying to create a new rss feed using XSLT, from an existing wordpress feed, processed by Java and displayed as a JSP. It seemed to work ok, but when I tried to put it into feedburner, the XML … Continue reading
CSS3 Stitched Logo with HTML Heart
Here is a logo I made entirely with html and css3. View in Firefox or webkit for best results. Original idea for stitched logo from this css3 tutorial roundup. I think the use of the html entity for the heart … Continue reading
How to print literal text and HTML entities in XSL
Use xsl: text disable-output-escaping=”yes”, with a CDATA element inside. Inside that you can put whatever you want. The code snippet plugin messes this up a little, but you get the point.
Posted in Uncategorized, xsl
Leave a comment
AJAX Load for Carousel Template – NextGen Gallery WordPress Plugin
The carousel template in NextGen Gallery by default uses a page load to navigate between each gallery image: http://nextgen-gallery.com/templates/carousel/ The post says “his could be optimized via a Ajax call, maybe someone pick up the idea.” But I haven’t been … Continue reading
Posted in Uncategorized, jQuery, php, wordpress
Leave a comment
How To Write Google Event Tracking Codes with JQuery
Google event tracking works via some code inside the onclick attribute of links. Rather than putting the code inside every link, you can write a few lines of jQuery and have the codes go into every link on your page. … Continue reading
How To Detect Doctype With Javascript
I had an interesting problem recently where I actually had a need to detect which doctype a page was using, and run some css depending on which HTML version was being used (the publicId property). It took me a long … Continue reading
Posted in Javascript, Uncategorized, ie6, ie7, ie8
Tagged doctype, document type, Javascript, publicId
Leave a comment
Show Hide Toggle Div Element with Javascript
Showing and hiding, or ‘toggling’ elements is one of the most common tasks in javascript. Here’s a great resource that shows 7 different ways to do this: 7 ways to toggle a div My personal favorite is the ternary operator: … Continue reading
Generating Random Numbers With Math.random() Javascript
The JavaScript function Math.random() randomly generates a number from 0 to slightly less than 1 (shown as
How to change the background color in Photoshop CS4
It is really easy to change the background color in photoshop cs4: 1. Select the layer (if your background layer is locked, click on it to unlock it) 2. Select the foreground color you want (click on the top square … Continue reading
How to create a transparent .GIF with white text in Fireworks
I have often noticed when I save my images as transparent GIF files, if they have white text the white turns transparent (which is NOT what I want). A common type of image I use is a rounded green button … Continue reading
Posted in Uncategorized, fireworks
Tagged gif white text, transparent gif, transparent gif fireworks
Leave a comment
How To Get The Selected Value From Select Drop Down Using Javascript
The desired behavior is to access the selected value from the select tag (select drop down list) by creating a javascript function that can be applied with an event handler (most likely onclick). Here is an example of the markup: … Continue reading