Fabriziomichels - blog.fabriziomichels.com - Web Design Code Box

Latest News:

How to Create a Countdown Timer that Refreshes the Page Daily 11 Feb 2011 | 04:37 pm

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

How to display fields using select drop down and jQuery 3 Feb 2011 | 12:15 pm

<script type="text/javascript"> $(document).ready(function(){ $("#Select").change(function(){ if ($(this).val() == "Other" ) { $("#OtherField").show(); ...

How to Show/Hide a div based on day of the week with jQuery 13 Jul 2010 | 07:33 pm

JavaScritpt <script type="text/javascript"> $(document).ready(function() { today=new Date() thisDay=today.getDay() $("#sunday").hide(); ...

How to change the message “No bookings found.” on Business Catalyst using JavaScript. 9 Jul 2010 | 01:34 pm

First wrap your module with an div like: <div id="app">{module...}</div> Then include the following JavaScript code: JavaScript <script type="text/javascript"> $(document).ready(...

How to Force Opt-In automatically instead of having to go into each contacts details – Business Catalyst 7 Jul 2010 | 01:20 pm

just add: &Optin=True at the form action, see example below: HTML example <form action="/FormProcessv2.aspx?WebFormID=10090&OID={module_oid}&OTYPE={module_otype}&EID={module_eid}&...

How to add a surcharge to the Amex option for the checkout form in the Online Store – Business Catalyst 7 Jul 2010 | 12:39 pm

Use onchange to alert the customer that a charge will occur and then the function doMath() calculates the surcharge. JavaScript <script type="text/javascript"> function checkSel(obj) { ...

How to Create a Drop Down Select with Links without a form submit. 1 Jul 2010 | 11:17 am

HTML <form action="../"> <select onchange="window.open(this.options[this.selectedIndex].value,’_top’)"> <option value="contact.html">Contact Page</option> <option value="http://www.appl...

How to Submit Form on Selection of Dropdown Item 11 Mar 2010 | 01:08 pm

HTML <select class="dropdown" id="form2" name="form2" onchange="this.form.submit();"> <option value="*">– All –</option> <option selected="selected" value="NSW">NSW</option> <option...

How to Automatically Re-size Images for iPhones/ iPods 9 Mar 2010 | 11:00 pm

CSS @media screen and (max-device-width: 480px){ img{ max-width:100%; height:auto; } }

How to Apply CSS styles to iPhones/iPods only 9 Mar 2010 | 10:58 pm

CSS @media screen and (max-device-width: 480px){ /* All iPhone only CSS goes here */ }

Recently parsed news:

Recent searches: