# MAKING OF TAB VIEW DESIGN:: <style> .sh14-prohead { background-repeat: repeat-x; height: 20px; font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; font-weight: bold; font-size: 12px; padding: 5px; …
Read MoreHTML
how to load differ image depending on screen width
<script> if (document.documentElement.clientWidth > 940) { document.write(‘<img class=”<?php echo “ligncenter size-full “.$imgInfo[$randno][id];?>” src=”<?php echo $imgInfo[$randno][src];?>” title=”<?php echo $imgInfo[$randno][title];?>” alt=”<?php echo $imgInfo[$randno][alt];?>” />’); } </script>
Read Morehow to remove div using javascript
var element = document.getElementById(“element-id”); element.parentNode.removeChild(element);
Read MoreHow to call two or more ajax request parallely in php
<script> $(document).ready(function() { $(document).on(“click”, “._SP12_MR11″, function() { var datastring = {‘DSUC’:SMJX_SMR_SUC,’SRCON’:SMJX_SRCH_ON, ‘LCNT’:SMJX_SMR_LST_CNT,}; $.when( $.ajax({ url:'<?php echo base_url().”search-ax-shwmre-st”;?>’, type: ‘POST’, …
Read MoreIn Show more on click show more button script like this-works
<script> $(document).ready(function() { $(document).on(“click”, “._SP12_SHOWMORE”, function() { var SMJX_SRCH_DPERPG = 5; var SMJX_SMR_SUC = $(“._SP12_SHOWMORE”).attr(‘data-srch-uc’); var SMJX_SMR_LST_CNT = $(“._SP12_SHOWMORE”).attr(‘data-lstcnt’); var SMJX_SRCH_ON …
Read MoreHow to call ajax request one after another in php
<script> $(document).ready(function() { $(document).on(“click”, “._SP12_SHOWMORE”, function() { var datastring = {‘SRCON’:SMJX_ON, ‘LCNT’:SMJX_LST_CNT,}; // FIRST AJAX REQUEST:: $.ajax({ url:'<?php echo base_url().”search-rd”;?>’, type: …
Read MoreDisable ctrl+c,ctrl+u and right click
Disable in the whole document from copy,ctrl+u and right click. <!– Disable ctrl+u & ctrl+c and prevent Right Click –> <script type=”text/javascript” src=”http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js”></script> <script type=”text/javascript”> …
Read MoreRefresh page using meta tag
Use this tag in head to refresh the web page. content=30 , it is the time duration in seconds to refresh automatically <meta http-equiv=”refresh” content=”30″>
Read MoreHow to make slug removing whitespaces in php
$data = “new & item @ send to & be”; $data_slug = trim($data); //$search = array(‘/’,’\\’,’:’,’;’,’!’,’@’,’#’,’$’,’%’,’^’,’*’,'(‘,’)’,’_’,’+’,’=’,’|’,'{‘,’}’,'[‘,’]’,'”‘,”‘”,'<‘,’>’,’,’,’?’,’~’,’`’,’&’,’ ‘,’.’); $search = array(‘/’,’\\’,’:’,’;’,’!’,’@’,’#’,’$’,’%’,’^’,’*’,'(‘,’)’,’_’,’+’,’=’,’|’,'{‘,’}’,'[‘,’]’,'”‘,”‘”,'<‘,’>’,’,’,’?’,’~’,’`’,’&’,’.’); $data_slug = str_replace($search, ” “, …
Read More