8 best CSS Sliders for web developers to enhance your projects ππ
Coding Master
Social Media Icons 3D Glitch Effect.zip
Source Code File πππ
Program to change color of the text box if empty string submitted.
<script>
function funup(val)
{
if(val.length>0) document.getElementById('t1').style.borderColor="silver";
}
function fun1()
{
txt=document.getElementById('t1').value if(txt.length == 0) document.getElementById('t1').style.borderColor = "red"
}
</script>
<input type="text" id="t1" onkeyup="funup(this.value)">
<input type="button" value="Submit" onclick="fun1()">
<script>
function funup(val)
{
if(val.length>0) document.getElementById('t1').style.borderColor="silver";
}
function fun1()
{
txt=document.getElementById('t1').value if(txt.length == 0) document.getElementById('t1').style.borderColor = "red"
}
</script>
<input type="text" id="t1" onkeyup="funup(this.value)">
<input type="button" value="Submit" onclick="fun1()">
Mark the data type recognized by JavaScript ??
Anonymous Quiz
64%
Boolean
20%
Null
11%
Char
5%
Double
Ultimate List Of CSS Properties.pdf
175.5 KB
The Ultimate List Of All CSS3 Properties
Write a JavaScript program to display the current day and time in the following format.
<script>
var today = new Date();
var day = today.getDay();
var daylist=["Sunday"
,"Monday","Tuesday"
,"Wednesday","Thursday","Friday",
"Saturday"];
console.log("Today is : " + daylist[day] + ".");
var hour = today.getHours();
var minute = today.getMinutes();
var second = today.getSeconds();
var prepand = (hour >= 12)? " PM ":" AM ";
hour = (hour >= 12)? hour - 12: hour;
if (hour===0 && prepand===' PM ')
{
if (minute===0 && second===0)
{
hour=12;
prepand=' Noon';
}
else
{
hour=12;
prepand=' PM';
}
}
if (hour===0 && prepand===' AM ')
{
if (minute===0 && second===0)
{
hour=12;
prepand=' Midnight';
}
else
{
hour=12;
prepand=' AM';
}
}
console.log("Current Time : "+hour + prepand + " : " + minute + " : " + second);
</script>
<script>
var today = new Date();
var day = today.getDay();
var daylist=["Sunday"
,"Monday","Tuesday"
,"Wednesday","Thursday","Friday",
"Saturday"];
console.log("Today is : " + daylist[day] + ".");
var hour = today.getHours();
var minute = today.getMinutes();
var second = today.getSeconds();
var prepand = (hour >= 12)? " PM ":" AM ";
hour = (hour >= 12)? hour - 12: hour;
if (hour===0 && prepand===' PM ')
{
if (minute===0 && second===0)
{
hour=12;
prepand=' Noon';
}
else
{
hour=12;
prepand=' PM';
}
}
if (hour===0 && prepand===' AM ')
{
if (minute===0 && second===0)
{
hour=12;
prepand=' Midnight';
}
else
{
hour=12;
prepand=' AM';
}
}
console.log("Current Time : "+hour + prepand + " : " + minute + " : " + second);
</script>
Top 10 Easy-To-Use Cheap eCommerce Website Builders 2020 πππ