Skript Redirect Post Iklan

 Header

<script>
//<![CDATA[
$.urlParam = function(name){
    var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
    if (results==null){
       return null;
    }
    else{
       return results[1] || 0;
    }
}
//]]>
</script>
</head>



 Postingan Blog

 <data:post.body/>
<script type='text/javascript'>
var mytitle = $.urlParam(&quot;title&quot;);
var myurl = $.urlParam(&quot;url&quot;);
if(!myurl){
$(document).ready(function(){
    window.location.href = &#39;/p/redirect.html?title=<data:post.title/>&amp;url=<data:post.url/>&#39;;
});
}
</script>


Halaman Iklan

<div class="separator" id="message" style="clear: both; text-align: center; color:red;">
<b>Untuk melanjutkan membaca artikel yang anda maksud :<b/> <span id="readmorebtn"><input id="goto" type="button" value="KLIK DI SINI"/></span></div><br/></br/>
<div align="center" id="titlepost"/></div><br/><br/>
<h3 align="center" id="titleads1"/>Iklan Hari Ini</h3><br/>
<h2 align="center" id="titleads2" style="color:blue;"/><a href="http://www-spulsa.blogspot.co.id">Anda Mau Daftar Gratis Jadi Agen Master Pulsa ?</a></h2><br/>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www-spulsa.blogspot.co.id" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH3pwdsezojSY4x_vMBg7jzxaI2ShLHkbxC_sEZU32mN_rqNqG9ADJH77T7eeG_sumrF-kLlTDswO4OGxHYzIHWCxhlYZypi1yNzdOaUrJaQeQb1ky-qrVH5_CaQjubEl7s7w7w7WZ9LM/s640/Banner+Set+Pulsa.png" width="640" /></a></div>
<br />

<div class='recent-post'></div>

<script>
//<![CDATA[
//var FEED_URL="http://masterz-seo.blogspot.com/feeds/posts/summary?max-results=10&alt=json-in-script";
//atau (label) var FEED_URL="http://www.revolusiilmiah.com/feeds/posts/default/-/Pertanian?max-results=1&alt=json-in-script";
var FEED_URL="https://www-spulsa.blogspot.com/feeds/posts/default?max-results=100&alt=json-in-script";
 $.ajax({
    type: 'GET',
    url: FEED_URL,
    async: false,
    contentType: "application/json",
    dataType: 'jsonp',
    success: function (json) {
    for (var i = 0; i < json.feed.entry.length; i++) {
      for (var j = 0; j < json.feed.entry[i].link.length; j++) {
        if (json.feed.entry[i].link[j].rel == 'alternate') {
          var postUrl = json.feed.entry[i].link[j].href;
          break;
        }
      }
      var postTitle = json.feed.entry[i].title.$t;
      var postSummary = json.feed.entry[i].content.$t;
      var item = '<div class="wrapper"><h3><a href=' + postUrl + '>' + postTitle + '</h3></a><p>' + postSummary + '</p></div>';
if(postTitle=='Daftar Master Dealer Pulsa di Set Pulsa Murah'){
var prefix="SET";
      $(item+'<br/>Untuk selengkapnya <a href="http://www-spulsa.blogspot.co.id/" target="_blank">KLIK DI SINI</a>').appendTo('.recent-post');
}
    }
    }
});
//]]>
</script>

<script>
//<![CDATA[
var mytitle = $.urlParam("title");
var myurl = $.urlParam("url");
//$("#titlepost").html('<span style="font-size: large;">"<b><font color="blue">'+unescape(mytitle)+'</font></b>"</span>');
//]]>
</script>

<script>
//<![CDATA[
$( document ).ready(function() {
if(myurl){
$("#goto").click(function() {
  location.href = myurl+'?url='+myurl+'&title='+mytitle;
});
$(".post-title a").html(unescape(mytitle));
$(".post-title a").attr('href',myurl+'?url='+myurl+'&title='+mytitle);
}else{
$("#message").html('');
}
});
//]]>
 </script>