Google Map will not load in hidden tab and switcher

If you embed Google Map in your website or application, you’ll have to place it outside of hidden tab; Or you’ll need to add a trigger in JavaScript to load the map; however, visitors of your website must double click to fully load the map. You can add this trigger like this on the page: google.maps.event.trigger(map0, ‘resize’); Or you can add a function call to Click event of a map tab: $( “#TabIDHere” ).click(function() { google.maps.event.trigger(map0, ‘resize’); }); remove nits

Continue reading »

How to display Prev/Next buttons on a Nivo slider when MouseOver

Most of slider effects will display the Prev/Next buttons by default once you open the page that contain a slider effect. Whether you build a slider for a CMS or a shopping cart or a regular HTML page, you can be able to change the codes in CSS and slider block on your HTML page. Here’s how you do it. Open the CSS file that supports the slider, add a style for the Prev/Next layer. Hide the layer on display first. .parent .navigation-links { display:none;…

Continue reading »

How to stop a webpage from auto refreshing constantly

There’re a few questions related to this matter I received today from my clients. Some of them have tried “break;” and “window.stop();” and “pause();” and “window.location.reload(false);”, … you name it; however, non of them works. There’s a trick to reload a webpage once and stop the webpage from auto-refreshing itself. At the end of the URL, add the pound sign like this # in the Get or Post URL. Then when you retrieve the value by GET/POST variables, remember to remove the # sign by…

Continue reading »

How to use dynamic text in an html/htm page

Whether you have a Joomla, WordPress, or E-commerce website, updating the copyright year on your website may not be a legal requirement, but it’s a smart marketing method to prove that your business is active. Showing the year is especially important if you have a site without dates on its content. There’re many ways you can automatically refresh the copyright year by inserting a simple JavaScript or php script (see below) into your website’s html code, or you can manually change the year in the…

Continue reading »

How to cut down page-not-found error records in your Watchdog table?

Some of you who own Drupal website may notice that now and then people are trying to hack your server with tons of call to phpMyAdmin/scripts/. I’ve checked all IP addresses that are used to visit my site, I found those in Watchdog table in DB. Those IP addresses are from all over the world such as China, Russia, Canada, USA, Ukraine, … you name it. This is very annoying when the watchdog table is loaded with not-found-page errors instead of system errors that you’re…

Continue reading »