Welcome to stylephreak, the personal site of designer Anthony Eggert. A blog for a guy who doesn’t particularly blog much, this is primarily a personal site to showcase my work and share with my friends and colleagues.
From the Blog
jQuery.loadStylesheet Coding | November 17th, 2008
Needed a simple function to load a media-specific stylesheet on-the-fly and came up with this. As I am currently using all my functions within an Engine array I’ve presented it here in that format:
var Engine = {
// load stylesheet(name,media)
loadStylesheet :function(e,m) {
$(‘head’).append(‘<link rel="stylesheet" href="’+e+‘.css" type="text/css"
media="’+m+‘ />’);
[…]
jQuery.innerWrap Coding | September 27th, 2008
A friend of mine needed a method to wrap the inner content of a tag with another tag, and after a bit of digging around I found that Brandon Aaron, author of the fantastic Dimensions plugin, has created just the thing.
“jQuery provides a method for wrapping an element with one or more elements. This is […]
jQuery.attrToClass Coding | September 24th, 2008
Jquery function that appends a css class to all form input elements on a page by extracting the input type from the element in question.
Min-Height Fast Hack Coding | December 19th, 2007
The best min-height css hack - hands down.
Currently Reading
- Solving 5 Common CSS Headaches Great article with great references.
- CSS Frameworks, just make your own I agree wholeheartedly…
- The Rise of Contextual User Interfaces Thought provoking article on user interfaces…
- Why We Skip Photoshop Interesting discourse on the cons of comping in photoshop
- Grid Based Design Grid-Based Design: Six Creative Column Techniques
