Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- SHOW MESSAGE TO USERS WITH JS DISABLED or ADBLOCK ON -->
- <noscript>
- <div class="noscriptmsg" style="width:100%;background-color:red;color:white;font-size:20px;padding:20px 0;">
- <p style="width:960px;margin: 0 auto;">Please enable Javascript to use MakeUseOf to it's fullest. Without it, you will find much of the modern internet doesn't work. I would add a little button hide this message, but that kind of functionality requires Javascript ;)
- </div>
- </noscript>
- <div id="adblockmsg" style="width:100%;background-color:red;color:white;font-size:20px;padding:20px 0;display:none;">
- <p style="width:960px;margin: 0 auto;">It looks like you've got Ad-block enabled. While we respect your decision and choice of plugin, we humbly ask that you add MakeUseOf.com to the ad-block whitelist. Without the revenue generated from advertising, we would be unable to provide this great content free of charge. If everyone ran ad-block, MakeUseOf would be no more.
- </div>
- <script type="text/javascript">
- function blockAdblockUser() {
- if ($('.img-banner').height() == 0) {
- //window.location = 'http://example.com/AdblockNotice.html';
- $('#adblockmsg').show();
- }
- }
- $(document).ready(function(){
- blockAdblockUser();
- });</script>
- <!-- END ADBLOCK NOSCRIPT CHECK -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement