Category Archives: HTML

Dynamically Update Copyright Year with PHP

Here’s a little php code snip­pet to make sure the copy­right year in your site footer is always up to date:   Copyright — <?php echo date(“Y”) ?>   Now this will auto update your page with the cur­rent year

Google Maps API — Disable Scroll Wheel Zoom

The Google Maps API over­rides the scroll func­tion­al­ity of the scroll­wheel so it zooms the map, this often causes prob­lems when you have a large map span­ning the page. To pre­vent this in V3 of the Maps API add: scroll­wheel: false To your map­Op­tions when ini­tial­ising the map. For example:   var map­Op­tions = { zoom: 14, cen­ter: point, […]

Fullscreen HTML5 Video in Safari via JavaScript

In Safari 5 HTML5 videos played in the <video> tag can now be made full­screen, if you’re using the default con­trols then a but­ton is avail­able, but if you’re over­rid­ing them with a cus­tom con­trol you can use: web­kit­En­ter­Full­Screen(); This needs to be called on the video tag ele­ment, for example, to full­screen the first video tag on […]