Advertisement
niammuddin

script iklan floating left & right wordpress conditional

Feb 14th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <?php if (is_search()) { ?>
  2. <div id="fixed1" style="z-index:100000;overflow:hidden;width:160px;height:600px;text-align:left;display:scroll;position:fixed;bottom:0px;left:0px;">
  3. <div style="position:fixed;opacity:0.5;background:#ddd;padding:0px 5px;"><a rel="nofollow" href="javascript:void(0);" onclick="document.getElementById('fixed1').style.display = 'none';" style="cursor:pointer;color:#000;text-decoration:none;font-size:11px !important;">CLOSE</a></div>
  4. <!-- ads left code -->
  5.  
  6. <!-- //end ads code -->
  7. </div>
  8.  
  9. <div id="fixed2" style="z-index:150000;overflow:hidden;width:160px;height:600px;text-align:right;display:scroll;position:fixed;bottom:0px;right:0px;">
  10. <div style="position:fixed;opacity:0.5;background:#ddd;padding:0 5px;"><a rel="nofollow" href="javascript:void(0);" onclick="document.getElementById('fixed2').style.display = 'none';" style="cursor:pointer;color:#000;text-decoration:none;font-size:11px !important;">CLOSE</a></div>
  11. <!-- ads right code -->
  12.  
  13. <!-- //end ads code -->
  14. </div>
  15. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement