Welcome To Snipplr
Everyone's Recent Snippets Tagged links
- All /
 - JavaScript /
 - HTML /
 - PHP /
 - CSS /
 - Ruby /
 - Objective C
 
I'm new to jQuery, so please be kind if there are any errors or redundancies in the code.
The problem: Basically, we were getting tons of scammers signing up on our Kickapps hosted community. They were immediately posting dozens of RSS feeds & lin...
        
        
        
            0 
        
        
            1581 
        
                    posted 16 years ago by Jdonner
            You can get hostname from script environment - getenv("HTTP_HOST")
(?!'.$host.') matches URLs always except local links
        
        
        
            0 
        
        
            1189 
        
                    posted 16 years ago by kossmoss
            These 4 lines of code can be used to extract and return all links from any page using regex patterns. If links are found, an array is returned, else boolean false is returned.
        
        
        
            4 
        
        
            2134 
        
                    posted 16 years ago by gdvickery
            Removed a certain word from a list of links (purely for design reasons). Link length way to long with the link included.
        
        
        
            1 
        
        
            2110 
        
                    posted 16 years ago by 1man
            There's been a popular trend to use JavaScript to add target="_blank" to anchors with rel="external". So in the name of making everything in my site Prototype based I worked out a script to do just that.
        
        
        
            2 
        
        
            1510 
        
                    posted 16 years ago by fruehjahr
            Remove that pesky dotted border around img elements, especially images inside <a> / link tags.
        
        
        
            4 
        
        
            1534 
        
                    posted 16 years ago by charmcitycoder
            IE 5.5 to 6 don't support generic PNG with Alpha-Channel
To get the advantage of PNGs use the akward AlphaImageLoader-filter (AIL) as described on the msdn site ( http://msdn.microsoft.com/en-us/library/ms532969(VS.85).aspx ).
But because the AIL...
        
        
        
            3 
        
        
            1514 
        
                    posted 17 years ago by HerrSerker
            output can be run as a shell script.  should be able to refactor this as a piped wget, i think
        
        
        
            1 
        
        
            1216 
        
                    posted 17 years ago by jhenry
            Place the first function, phptemplate_links() in your template.php file. Alternatively (and IMO better) is to name the function your_theme_name_links() where your_theme_name is the name of your theme.
From here on, you can add theme functions like...
        
        
        
            2 
        
        
            1698 
        
                    posted 17 years ago by berkes
            ¿Por qué empeñarnos en hacer enlaces que actúen como botones? ¿Por qué no hacemos botones que parezcan enlaces?
        
        
        
            0 
        
        
            999 
        
                    posted 17 years ago by j_junyent
            Por ejemplo, haciendo uso del operador ^= (que nos permite seleccionar solo aquellos elementos cuyo atributo especificado coincida, al comienzo de la cadena, con el valor especificado) podremos crear una reglas para determinar el aspecto de nuestros...
        
        
        
            4 
        
        
            1535 
        
                    posted 18 years ago by Hirmine
            Open a new window without using target="_blank" for XHTML 1.1.
Need jQuery Framework : http://jquery.com/
        
        
        
            15 
        
        
            4431 
        
                    posted 19 years ago by walepinski
            Simple styling for the links on a webpage using CSS. Sometimes hard to remember what order the have to be in for the :hover to work correctly. (Now fixed :)
        
        
        
            2 
        
        
            1882 
        
                    posted 19 years ago by 1man