Profile
Achievement
 
    
                wizard04's Recent Snippets
- All /
Modified just a bit. This version includes the Google Chrome beta.
        
        
        
            2 
        
        
            1532 
        
                    posted 17 years ago by wizard04
            Just some pseudo-code notes about using labels with `break` and `continue` statements.
        
        
        
            0 
        
        
            1255 
        
                    posted 17 years ago by wizard04
            Highlight an address and click the bookmarklet to open it in Google Maps
        
        
        
            1 
        
        
            1161 
        
                    posted 17 years ago by wizard04
            In mouseout and mouseover event handlers, use this object to check if the mouse was leaving or entering a "landmark" element.  See my [MouseEnter/Leave Handlers](http://snipplr.com/view/8913/mouseenterleave-handlers/) snipplet for a practical use....
        
        
        
            3 
        
        
            1549 
        
                    posted 17 years ago by wizard04
            Just for a quick copy and paste. A cool Lorum Ipsum generator is at [lipsum.com](http://www.lipsum.com/).
        
        
        
            1 
        
        
            1201 
        
                    posted 17 years ago by wizard04
            Creates a drop shadow for a div.  In IE I can't get `filter:alpha(opacity=__)` to work right, but it degrades gracefully without it so I left it out.
        
        
        
            5 
        
        
            1615 
        
                    posted 17 years ago by wizard04
            For use with the Firefox Stylish add-on.  I put this up on userstyles.org as well - http://userstyles.org/styles/9213.
When you edit a snippet, especially with the comment box, the font is large and fancy. This style changes them to a normal, *rea...
        
        
        
            0 
        
        
            1123 
        
                    posted 17 years ago by wizard04
            (Created for JavaScript)
These are rather forgiving. Spaces, dashes, or periods are allowed as separators. Extensions can be recognized by several strings (#, x, x., ext, ext., extension).
Area code: $1$2  
Exchange code: $3  
Station code: $...
        
        
        
            1 
        
        
            2011 
        
                    posted 17 years ago by wizard04
            When there's a URL on a page that's not a link, just highlight it and click this bookmarklet. The URL will open in a new window.
If there are multiple selections (e.g., if you've selected something in each of two frames on the page), they will eac...
        
        
        
            1 
        
        
            1177 
        
                    posted 17 years ago by wizard04
            Select some text, click the bookmarklet, and the definition(s) will open up in [Ninjawords](http://www.ninjawords.com).
[Ninjawords](javascript:(function(){function%20t(f){try{if(f.getSelection)return%20f.getSelection().toString(&#...
        
        
        
            0 
        
        
            892 
        
                    posted 17 years ago by wizard04
            `Events.add(element, type, handler)` adds a handler to an element  
`Events.remove(element, type, handler)` removes a handler from an element  
`Events.getTarget(event)` or `Events.getOrigin(event)` returns the element from which the event originat...
        
        
        
            1 
        
        
            1523 
        
                    posted 17 years ago by wizard04
            Functions to use the clipboard.
Requires a Flash file for non-IE browsers: see [http://javascript.internet.com/forms/clipboard-copy.html](http://javascript.internet.com/forms/clipboard-copy.html)  
Remember to set `config.Clipboard.pathToFlash` a...
        
        
        
            1 
        
        
            1018 
        
                    posted 17 years ago by wizard04
            Useful functions to get around browser incompatibilities when working with stylesheets.  
If you find any errors, please leave a comment.
        
        
        
            0 
        
        
            1201 
        
                    posted 17 years ago by wizard04
            