Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- jQuery(document).ready(function(){
- // Set my blog domain
- var myblog = 'technoslab';
- // Display if not on .com domain
- if(window.location.hostname!=myblog+'.blogspot.com'){
- // Show message
- jQuery("#ncr_msg").html("Not on "+myblog+".blogspot<u>.com</u> ? <a href='#' id='ncr'>Click me</a> / <a href='http://technoslab.blogspot.com/2012/02/how-to-prevent-your-blog-from.html'>Read more</a>");
- // Process if user wishes to go to the non country specific domain
- jQuery("#ncr").click(function(){
- document.cookie="NCR=1";
- document.location = 'http://'+myblog+'.blogspot.com/ncr'+document.location.pathname;
- });
- }
- });
- </script>
- <br />
- <br />
- <div id="ncr_msg"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement