Jumprit's Knowledge

Jumprit's knowledge and references to share.

Archive for the ‘Web’ Category

Auto Update Web Pages Using JavaScript —

Step 1: Create JavaScript File Create a plain text document and name it with a .js extension, for example masterscript.js. Using the JavaScript document.write method, enter the content you want to be displayed on every page like so: document.write(“<div style=’color:blue; font-size:12pt;’>”); document.write(“© Copyright Myname 2004”); document.write(“</div>”); Note: You don’t need to include script tags in this file. Step 2: […]

Add a Favicon to your Site —

First you need to make 16×16 pixel png image. Assuming your favicon image is in /somewhere/myicon.png , this is how to put it in html: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en-US” lang=”en-US”> <head profile=”http://www.w3.org/2005/10/profile”> <link rel=”icon” type=”image/png” href=”/somewhere/myicon.png” /> […] </head> […] </html> Btw, incase you don’t know, favicon is […]