Robots Text Generator

<!– Paste this code into the CSS section of your HTML document –> .table1 { border: solid .05em; padding: .5em; } <!– Paste this code into an external JavaScript file named: roboTxt.js –> /* This script and many more are available free online at The JavaScript Source :: https://www.javascriptsource.com Created by: Lee Underwood :: https://www.javascriptsource.com/ */ function createRobotTag() { var robotsTag=”<meta name=”robots” content “”; if (document.getElementById(“none”).checked) { robotsTag += “none”>”; document.getElementById(“index”).disabled=true; document.getElementById(“follow”).disabled=true; } else if (document.getElementById(“none”).checked==false) { document.getElementById(“index”).disabled=false; document.getElementById(“follow”).disabled=false; if (document.getElementById(“index”).checked) { robotsTag += “noindex, “; } else { robotsTag += “index, “; } if(document.getElementById(“follow”).checked) { robotsTag += “nofollow”>”; } …

Continue reading Robots Text Generator

Counters in Javascript

If there is one thing I don’t like doing, it’s doing the same thing twice or even more! So I was building an application on the side where I need to have a listing that performs a simple countdown. At this point, I’ve been lazy and just have it counting down the seconds, but this example would be really easy to update to put a proper countdown of days, hours, minutes, and seconds and heck if you get really adventurous even weeks, months, and years! In this example, I have a listing of items. Each item has a separate countdown …

Continue reading Counters in Javascript