<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: dzone code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 27 Jul 2008 03:12:16 GMT</pubDate>
    <description>DZone Snippets: dzone code</description>
    <item>
      <title>dzone snippet html</title>
      <link>http://snippets.dzone.com/posts/show/3819</link>
      <description>description of your code here&lt;br /&gt;description of your code here&lt;br /&gt;description of your code here&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;DIV.post-job-ad {&lt;br /&gt;	background-color: #ff8;&lt;br /&gt;	border-top: 1px dashed #660;&lt;br /&gt;	border-bottom: 1px dashed #660;&lt;br /&gt;	margin-bottom: 10px;&lt;br /&gt;	padding: 8px;&lt;br /&gt;	color: #000;&lt;br /&gt;	text-align: center;&lt;br /&gt;	font-weight: bold;&lt;br /&gt;	font-size: 1.2em;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;DIV.post-job-ad EM {&lt;br /&gt;	color: #170;&lt;br /&gt;	font-style: normal;&lt;br /&gt;}&lt;br /&gt;&lt;/style&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sun, 15 Apr 2007 09:54:09 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3819</guid>
      <author>ningle (ningle)</author>
    </item>
    <item>
      <title>Broadcasting DZONE Shares</title>
      <link>http://snippets.dzone.com/posts/show/3803</link>
      <description>// This snippet will allow you to show your DZONE shares&lt;br /&gt;// on your web page.   Visit your shares page, click on the "feed" link&lt;br /&gt;// to get the URL of your personal shares feed then paste it in the first line&lt;br /&gt;// in the script.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;var sharedURL='';  // Place your url between the quotes.&lt;br /&gt;&lt;br /&gt;function getFeed(url, callback) {&lt;br /&gt;   var newScript = document.createElement('script');&lt;br /&gt;       newScript.type = 'text/javascript';&lt;br /&gt;       newScript.src = 'http://pipes.yahoo.com/pipes/9oyONQzA2xGOkM4FqGIyXQ/run?&amp;_render=JSON&amp;_callback='+callback+'&amp;feed=' + sharedURL;&lt;br /&gt;   document.getElementsByTagName("head")[0].appendChild(newScript);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function dzone(feed) {&lt;br /&gt;   var tmp='';&lt;br /&gt;   for (var i=0; i&lt;feed.value.items.length; i++) {&lt;br /&gt;      tmp+='&lt;a href="'+feed.value.items[i].link+'" rel="nofollow"&gt;';&lt;br /&gt;      tmp+=feed.value.items[i].title+'&lt;/a&gt;&lt;br&gt;';&lt;br /&gt;   }&lt;br /&gt;   document.getElementById('dzoneLinks').innerHTML=tmp;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;getFeed(sharedURL, 'dzone');&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;// Paste that code at the end of your page.   In your HTML place the following two divisions&lt;br /&gt;// where you would like your feed to appear.  (feel free to style the divisions however you wish)&lt;br /&gt;// you can add to/subtract from the outer division but the inner division will always be overwritten&lt;br /&gt;// with your shares.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;div id='dzoneLayer'&gt;&lt;br /&gt;My DZONE Recommendations&lt;br /&gt;   &lt;div id='dzoneLinks'&gt;&lt;br /&gt;   &lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;</description>
      <pubDate>Thu, 12 Apr 2007 05:49:24 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3803</guid>
      <author>pcx99 (Patrick)</author>
    </item>
  </channel>
</rss>
