FABRIZIO MICHELS

/ blog

Blog

How to stop Fancybox to go to the top of the page

Use the built-in helpers- 'overlay' to prevent fancybox from jumping to the top of the page and stay in the section you opened the image. $('.your-element').fancybox({ helpers: { overlay: { l ..

Read more

How to stop Safari from giving input buttons rounded corners on iPhone

Simply add to your css: input, textarea { -webkit-appearance: none; -webkit-border-radius: 0; } ..

Read more

How to remove vertical Scroll bar from Business Catalyst pages on Facebook tabs and apps

Simply add the following script on your page: <script src="http://connect.facebook.net/en_US/all.js"></script> <script> FB.init({ appId : '325472510857502', s ..

Read more

How to Show/Hide a div based on day of the week with jQuery

HTML <div id="sunday"> <h3>Sunday</h3> </div> <div id="monday"> <h3>Monday</h3> </div> <div id="tuesday"> <h3>Tuesday</ ..

Read more

How to Create a Countdown Timer that Refreshes the Page Daily with Javascript

JavaScript <script type="text/javascript"> function getSeconds() { var now = new Date(); var time = now.getTime(); var midnight = new Date(now.getFullYear(), ..

Read more

Simple and Smooth Expand and Collapse with jQuery

HTML example <h2 class="myClass" id="trigger1">Click here to expand</h2> <div class="hide-container"> <p>Here goes whatever you want to expand/collapse</p>  ..

Read more


1 2 3 4