Posts Tagged ‘jquery’

Simple Responsive Slider using jquery Here is a Simple Responsive Slider using jquery which works on every breakpoints. A very simple js/jquery which helps you to modify it according to your requirements. Download infinite_Image_Carousel-master

Custom linkedin button for share and auth <script src=””> api_key: //onLoad: onLinkedInLoad scope: r_basicprofile r_emailaddress r_fullprofile authorize:true </script> <script> function onLinkedInAuth() { IN.API.Profile(“me”) .fields(“firstName”, “lastName”, “industry”, “location:(name)”, “picture-url”, “headline”, “summary”, “num-connections”, “public-profile-url”, “distance”, “positions”, “email-address”, “educations”, “date-of-birth”) .result(displayProfiles); IN.UI.Share().params({ url: “” }).place() } function displayProfiles(profiles) { console.log(profiles); member = profiles.values[0]; } jQuery(document).ready(function(){ jQuery(“#linkdinlog”).click(function(){ IN.UI.Authorize().place(); IN.Event.on(IN, […]

update product quantity on check out page magento you can do it by editing item.phtml (template/checkout/onepage/review/item.phtml) and these lines after line no #47 <td class=”a-center”><?php echo $_item->getQty() ?></td> <td class=”a-center”> <input name=”cart[<?php echo $_item->getId() ?>][qty]” value=”<?php echo $this->getQty() ?>” size=”4″ name=”update_cart_action” id=”cup_<?php echo $_item->getId() ?>” class=”input-text qty” maxlength=”12″ /> </td> <td> <button type=”submit” name=”update_cart_action” value=”update_qty” […]

countdown timer in php $dateFormat = “d F Y — g:i a”; $targetDate = $futureDate;//Change the 25 to however many minutes you want to countdown change date in strtotime $actualDate = $date1; $secondsDiff = $targetDate – $actualDate; $remainingDay = floor($secondsDiff/60/60/24); $remainingHour = floor(($secondsDiff-($remainingDay*60*60*24))/60/60); $remainingMinutes = floor(($secondsDiff-($remainingDay*60*60*24)-($remainingHour*60*60))/60); $remainingSeconds = floor(($secondsDiff-($remainingDay*60*60*24)-($remainingHour*60*60))-($remainingMinutes*60)); $actualDateDisplay = date($dateFormat,$actualDate); $targetDateDisplay = date($dateFormat,$targetDate); […]

check canvas empty or not <“canvas11″ height=”200px” width=”200px”> <asp:Button runat=”server” ID=”btn1″ Text=”Save” OnClientClick=”checkcanvas();” /> <script type=”text/javascript”> function checkcanvas() { var i = isCanvasTransparent(); //i =true if canvas empty //i =false if canvas has image } function isCanvasTransparent() { var canvas1 = document.getElementById(‘canvas11’); // true if all pixels Alpha equals to zero var ctx = canvas1.getContext(“2d”); […]

jquery for refreshing only div content <script> jQuery(document).ready(function(){ jQuery(“#amot”).change(function() { //var file_name=”components/com_virtuemart/themes/default/templates/common/shopIndex.tpl.php”; jQuery(“#coupon-box”).load(“index.php #coupon-box”) return false; }); }); </script>

Jquery for ajex or jquery for redirecting page function change_service(obj) { jQuery.ajax({ type: “GET”, url: “index.php?option=com_vmcheck&view=default”, data: “&id=”+obj, success: function(html){ jQuery(“#circles”).html(html); } }); } <select tabindex=”50″ name=”s_provider” id=”s_provider” onchange=”change_service(this.value);”> <option>Select Service Provider</option> <option value=”3″>Airtel </option> <option value=”Vodafone”>Vodafone</option> <option value=”Trump”>Trump-MTNL-Mumbai</option> <option value=”1″>Reliance (CDMA)</option> </select>

show and hide dynamic div by jquery

Posted: 8th February 2012 by urfusion in Jquery, Uncategorized
Tags: , , ,

show and hide dynamic div by jquery <script> $(function () { $(“a”).click(function () { var ID =; $(‘.’+ID).toggle(); }); }); </script> <?php $j=0; while($j<=10) { ?><p> <a href=”javascript:void(0);” id=”content<?php echo $j; ?>” class=”team-readmore”>read more.</a> </p> </div> <div style=”display:none”><?php echo stripslashes($getdata[$j][7]); ?></div> <?php $j++; } ?>