![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Mar 2015
Posts: 149
|
PHP and Jquery Utilities
For person who wants PHP functions :
Crop JPG image : PHP Code:
Here's the code: Code:
document.write('<div id="checker">an advertisement</div>'); Add a CSS: Code:
#checker { display:none; } Code:
var REGISTER = '{YOUR_SITE_URL}'; var REQUEST = location.href; function message(type,message,timeval,redirect) { if(type == 1) { var myclass = 'alert alert-success'; var title = 'OK'; } else { var myclass = 'alert-danger alert-error'; var title = 'ERREUR'; } bootbox.alert('<div class="'+myclass+'" style="padding:10px;"><h2>'+title+'</h2><p>'+message+'</p></div>'); setTimeout(function() { bootbox.hideAll(); if(redirect) { if(redirect=='back') history.back(); else location.href = redirect; } }, timeval*1000); } $(document).ready(function() { if(document.getElementById("checker") == undefined && !REQUEST.match('inscription')) { message(0,"<u>It seems that <b>ADBLOCK</b> is activated on your browser</u>. Just deactivate it or <a href='"+REGISTER+"'>Subescrive</a>. You're going to be redirected... ",10,REGISTER); } }); If you wanna simplier: Code:
$(document).ready(function() { if(document.getElementById("checker") == undefined ) { location.href = 'anti-adblock.php' } }); If you want much more, check me on Skype : sylvain.garcia1 Bye! ![]()
__________________
Sylvain - Web developer - Responsive Liveshow PHP/MySQL Script - Demo: https://www.camvore.com/demo/en/ - Skype ID: sylvain.garcia1 - Email: [email protected] - Website : https://www.necatis.com |
![]() |
![]() ![]() ![]() ![]() |