Other

Detect mobile browser using php

Use this function <?php /* USER-AGENTS================================================== */function check_user_agent ( $type = NULL ) {        $user_agent = strtolower ( $_SERVER[‘HTTP_USER_AGENT’] );       …

Back To Top on Webpage

1.html <div id=”toTop” style=”display:none”>Back to Top</div> 2. JS<script language=”javascript”>jQuery(function() {    jQuery(window).scroll(function() {        if(jQuery(this).scrollTop() != 0) {            jQuery(‘#toTop’).fadeIn();  …