Huskie


Member since 08/01/2011

Name: Darren Huskie

Location: Scotland

Website: http://darrenhuskie.com/

Web Developer

19 snippets

35 profile views

0 Comment(s) Posted

View their favorites

Profile

All time reputation: 165

Achievement

first submission:submitting first snipplet

Huskie's Recent Snippets



« Prev 1 Next »
  1. FAV

    Add box shadow on bottom of element only

    CSS code to add a CSS3 box shadow to the bottom of an element only.
    CSS 5 views posted 7 years ago Huskie
  2. FAV

    Speed up jQuery UI Autocomplete Combobox with very large select lists

    With the current combobox implementation, the full list is emptied and re-rendered every time you expand the dropdown. Also you are stuck with setting the minLength to 0, because it has to do an empty search to get the full list. Here is my own im...
    jQuery 17 views posted 7 years ago Huskie
  3. FAV

    Clear all text fields on focus based on original value with single function

    Clear all text fields on focus based on original value with single function. The code checks for a 'title' attribute on each input with class 'text' and compares this to the current value of the field.
    jQuery 7 views posted 7 years ago Huskie
  4. FAV

    Remove hyperlink outline in IE6 & IE7 with jQuery

    IE6 and IE7 don't respect the 'outline' attribute for hyperlinks. This jQuery snippet removes the annoying outline in these browsers.
    jQuery 10 views posted 7 years ago Huskie
  5. FAV

    Google CDN jQuery loading fallback

    This code snippet fetches the very latest minified version of jQuery from Google's CDN. If this is not available, we revert to a locally stored version (current version at time of publish was 1.7.1 - update this to suit going forward).
    jQuery saved by 25 people 16 views posted 8 years ago Huskie
  6. FAV

    Favicon and Apple Touch Icon

    If you place favicon.ico and apple-touch-icon.png in the root of your website, these references are NOT required.
    HTML 14 views posted 8 years ago Huskie
  7. FAV

    Best Method for Clearing Floats

    In my opinion, this is the best cross-browser method of clearing floated elements in a container. Remember to add .clear-fix{zoom:1;} to an IE specific stylesheet, otherwise IE 7 will complain.
    CSS 19 views posted 8 years ago Huskie
  8. FAV

    Clean up WordPress wp_head()

    Remove unnecessary code from the default WordPress header.
    PHP 14 views posted 8 years ago Huskie
  9. FAV

    Latest Minified jQuery from Google CDN

    To get the most recent version in the 1.x.x family.
    jQuery 4 views posted 8 years ago Huskie
  10. FAV

    Get WordPress theme menu name in slug format from location parameter

    Example call: $menuName = sleek_get_theme_menu_name('footer-menu')
    PHP 7 views posted 8 years ago Huskie
  11. FAV

    Register any number of WordPress Custom Menu Locations

    PHP 8 views posted 8 years ago Huskie
  12. FAV

    WordPress Custom Walker Class to get Sister Pages for Sub-Menu

    No modifications or testing carried out yet.
    PHP 10 views posted 8 years ago Huskie
  13. FAV

    WordPress Custom Walker Class to remove unnecessary classes and ID\'s from menu items

    Could possibly be simplified to maximise efficiency. It relies on a separare WP Sleek framework function sleek_get_theme_menu_name. This could ideally be improved to allow the theme location to passed as a parameter somehow.
    PHP 12 views posted 8 years ago Huskie
  14. FAV

    Allow HTML in WordPress User Biographical Info

    Add code to theme functions.php file.
    PHP 16 views posted 8 years ago Huskie
  15. FAV

    Pure CSS3 Buttons

    Pure CSS3 buttons with 9 pre-defined colours and 3 styles. Adapted from Web Designer Wall - http://www.webdesignerwall.com/demo/css-buttons.html
    CSS saved by 4 people 17 views posted 8 years ago Huskie
  16. FAV

    Setting PHP Memory Limit in .htaccess

    Useful for WordPress installations that need more than 32M of memory
    Apache 17 views posted 8 years ago Huskie
  17. FAV

    jQuery rel=\"external\" to open links in new window

    Add attribute to links to open them in a new window. Example - rel="external". Alternative to target="_blank", conforming to XHTML specification.
    jQuery 8 views posted 8 years ago Huskie
  18. FAV

    Latest Minified jQuery

    Permanent link to latest minified jQuery release at jQuery.com
    HTML 4 views posted 8 years ago Huskie
  19. FAV

    HTML 5 Reset CSS

    Trimmed and personalised version of Eric Meyer's Reset CSS.
    CSS 19 views posted 8 years ago Huskie
« Prev 1 Next »