Thanks to a very simple piece of JavaScript code, you can change the (background) colour of your website to reflect the time of day. Your website visitors will see a different version of your website: a dark mode during evening/nights, and a white/bright mode during the day. Here are the steps to follow to have Continue reading →
JavaScript
JavaScript, or short JS, is a web scripting language used mostly to make webpages more interactive.
jQuery Smooth Scroll Howto – Code Sample & Demo
With the jQuery library, you can do a ton of cool things to make a webpage ‘live’. From colours to animations and other special effects, most things are possible. One of these neat things to do is smooth scrolling with jQuery. Ever wondered to see a code example in HTML, CSS and JavaScript for smooth Continue reading →
WebRTC in a Nutshell
In a world where almost everyone has a smartphone (or any other smart device, e.g. a smartwatch), the customer is spending an increasing amount of time online such as in the web browser or on mobile apps. Consumer-grade solutions for real-time audio-visual and textual communication are widely available and popular among audiences of all ages. Examples Continue reading →
Add falling snow to your website
It’s Christmas time: let’s make it snow! It’s this time of the year again: Christmas and New Year. Maybe you’ve seen on some sites that the website owner/designer has added a nice snow effect on their webpages. The snow overlay gives a nice, cosy feeling to the visitor. And you may have thought: how did Continue reading →
Adding a print option on your HTML page
Companies and individuals are doing great efforts to print less and “go green”. However, as a web developer, you may still want to add a print option on your website. Printing out a webpage is still often used on some types of website, so offering an easy to use button or link is a good Continue reading →
Making a div element clickable in HTML
To make an element, for example a <div>, clickable in HTML, you can use the following code: We simply add the onlcick event and add a location to it. Then, additionally and optionally, we add a cursor: pointer to indicate to the user the div is clickable. This will make the whole div clickable. Making Continue reading →