Advertisement
Guest User

advertHeader

a guest
Jul 16th, 2014
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id="advertHeader">
  2. <script type="text/javascript">
  3. function setCookie(cname, cvalue, exdays) {
  4.     var d = new Date();
  5.     d.setTime(d.getTime() + (exdays*24*60*60*1000));
  6.     var expires = "expires="+d.toGMTString();
  7.     document.cookie = cname + "=" + cvalue + "; " + expires + "; path=/";
  8. }
  9. function getCookie(cname) {
  10.     var name = cname + "=";
  11.     var ca = document.cookie.split(';');
  12.     for(var i=0; i<ca.length; i++) {
  13.         var c = ca[i];
  14.         while (c.charAt(0)==' ') c = c.substring(1);
  15.         if (c.indexOf(name) != -1) return c.substring(name.length,c.length);
  16.     }
  17.     return "";
  18. }
  19. showAdvertHeader = (getCookie('showAdvertHeader') === 'true');
  20. if(showAdvertHeader) {
  21.     document.write('<div><script type="text/javascript">var vclk_options = {sid:16300,media_id:1,media_type:5,version:"1.4"};<'+'/script><script class="vclk_pub_code" type="text/javascript" src="http://cdn.fastclick.net/js/adcodes/pubcode.min.js?sid=16300&amp;media_id=1&amp;media_type=5&amp;version=1.4&amp;exc=1"><'+'/script></div>');
  22. }
  23. </script>
  24. <noscript><img src="http://media.fastclick.net/w/get.media?sid=16300&amp;m=1&amp;tp=5&amp;d=s&amp;c=1&amp;vcm_acv=1.4" width="728" height="90" border="1"></noscript>
  25. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement