MAKE YOUR WEBSITE ROMENTIC
<
body
style
=
"text-align: center"
bgcolor
=
"#000000"
>
<
table
border
=
"1"
cellspacing
=
"1"
width
=
"27%"
height
=
"135"
>
<
tr
>
<
td
width
=
"100%"
height
=
"130"
>
<
div
align
=
"center"
>
<
table
border
=
"4"
cellspacing
=
"0"
width
=
"506"
height
=
"80"
bordercolorlight
=
"#808080"
bordercolordark
=
"#C0C0C0"
bgcolor
=
"#C0C0C0"
style
=
"border-collapse: collapse"
bordercolor
=
"#111111"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"566"
height
=
"127"
align
=
"center"
><
form
method
=
"get"
action
=
"http://colorfilter.wickline.org/index.cgi"
enctype
=
"application/x-www-form-urlencoded"
>
<
input
type
=
"hidden"
id
=
"s0"
name
=
"s"
value
=
"1"
/>
<
input
type
=
"hidden"
id
=
"r0"
name
=
"r"
value
=
""
/>
<
p
dir
=
"ltr"
>
<
label
for
=
"u"
title
=
"user-speciied URL of resource to be filtered"
><
font
face
=
"Comic Sans MS"
>
<
input
id
=
"u"
name
=
"u"
type
=
"text"
size
=
"45"
value
=
"http://.com"
/>font
>label
><
font
face
=
"Comic Sans MS"
> <
span
lang
=
"fa"
>
span
>
font
><
font
face
=
"Tahoma"
size
=
"2"
><
span
lang
=
"fa"
>:span
>URLfont
><
font
face
=
"Comic Sans MS"
size
=
"2"
><
br
/>
font
>
<
label
for
=
"t"
title
=
"Color filter to be applied"
>
<
font
face
=
"Comic Sans MS"
><
select
id
=
"t"
name
=
"t"
><
option
value
=
"p"
selected
=
"selected"
>
protanopia (red/green color blindness; no red cones)option
>
<
option
value
=
"d"
>deutanopia (red/green color blindness; no green cones)option
>
<
option
value
=
"t"
>tritanopia (blue/yellow color blindness; no blue cones)option
>
<
option
value
=
"m"
>grayscale/achromatopsia (quick check for all forms of
colorblindness)option
>
<
option
value
=
"a"
>atypical achromatopsia (low cone function; cone monochromat)option
>
<
option
value
=
"o"
>protanomaly (anomalous red cones)option
>
<
option
value
=
"c"
>deutanomaly (anomalous green cones)option
>
<
option
value
=
"u"
>tritanomaly (anomalous blue cones)option
>
<
option
value
=
"k"
>coverage test in black (highlight filter limitations)option
>
<
option
value
=
"q"
>coverage test in white (highlight filter limitations)option
>
<
option
value
=
"g"
>coverage test in gray (highlight filter limitations)option
>select
>font
>label
><
font
face
=
"Comic Sans MS"
size
=
"2"
>
font
>
<
font
size
=
"2"
face
=
"Tahoma"
><
span
lang
=
"fa"
>:span
>The way font
>
<
font
face
=
"Comic Sans MS"
>
<
input
type
=
"submit"
value
=
" Click here "
style
=
"color: black; font-family: Tahoma"
tabindex
=
"10"
name
=
"loghman"
/>font
><
font
size
=
"2"
face
=
"Comic Sans MS"
><
span
lang
=
"fa"
> span
> font
>p
>
form
>
td
>
tr
>
table
>
div
>
td
>
tr
>
table
>
<
p
align
=
"center"
> p
>
<
font
face
=
"Tahoma"
><
a
target
=
"_blank"
href
=
"http://www.javascriptfreecode.com/"
><
span
style
=
"font-size: 8pt; text-decoration: none"
>JavaScript Free Codespan
>a
>font
>
Labels:
Javascript Program
CELCIUS TO FAHRENHEIT CONVERT
<
html
>
<
head
>
<
TITLE
>C & FTITLE
>
<
script
language
=
"javascript"
>
function gl(c)
{
c=parseFloat(c);
f=(1.8*c)+32;
return f;
}
script
>
head
>
<
body
>
<
script
language
=
"javascript"
>
var c,f;
c=prompt("ENTER THE CELCIUS","0");
f=gl(c);
document.write("Temperature was "+"<
br
>" +c+" Celcius converted to "+"<
b
>"+f+"Fahrenheit."+"b
>");
script
>
body
>
html
>
Labels:
Javascript Program
TABLE IN JAVASCRIPT
<
HTML
>
<
HEAD
>
<
script
language
=
"javascript"
>
var i,x;
x=prompt("ENTER NO FOR TABLE:","10");
for(i=1;i<=10;i++)
{
document.write(x + "*" + i + "=" + (x*i) + "<
br
>");
}
script
>
head
>
html
>
Labels:
Javascript Program
CURRENT DATE DISPLAY ON STATUS BAR
<
html
>
<
head
>
<
title
>date formatetitle
>
<
script
language
=
"javascript"
>
var t=new Date();
var m=t.getMonth()+1;
var d=t.getDate();
var y=t.getFullYear();
window.status= d + " - " + m + " - " + y
script
>
head
>
<
BODY
>
<
P
>CURRENT DATE DISPLAY ON STATUS BAR
body
>
html
>
Labels:
Javascript Program
DATE & TIME WITH MESSAGE
<
html
>
<
head
>
<
title
>date formatetitle
>
head
>
<
body
>
<
script
language
=
"javascript"
>
var t=new Date();
var m=t.getMonth()+1;
var d=t.getDate();
var y=t.getFullYear();
var h=t.getHours();
var a=Date();
document.write(a + "<
br
><
br
>");
if(h<
12
)
{
document.write("Good Morning");
}
else if(h>=12 && h<
18
)
{
document.write("Good Afternoon");
}
else if(h>=18)
{
document.write("Good Evening");
}
else if(h>=22)
{
document.write("Good NIght");
}
document.write("<
br
><
br
>TODAY IS " + d + "-" + m + "-" + y);
script
>
body
>
html
>
Labels:
Javascript Program
SIMPLE INTEREST
<
html
>
<
head
>
<
script
language
=
"javascript"
>
function simple()
{
var p,r,n,i;
if(document.interest.principle.value == " " )
{
alert("PLEASE ENTER PRINCIPLE AMOUNT");
document.interest.principle.alert();
}
else if(document.interest.rate.value=="")
{
alert("ENTER RATE OF INTEREST");
document.interest.rate.blur();
}
else if(document.interest.year.value=="")
{
alert("ENTER NUMBER OF YEAR");
document.interest.year.prompt();
}
else
{
p=parseInt(document.interest.principle.value);
r=parseInt(document.interest.rate.value);
n=parseInt(document.interest.year.value);
i=(p*r*n)/100;
document.interest.answer.value="Rs :" + i;
}
}
script
>
head
>
<
body
>
<
form
method
=
"post"
action
=
""
name
=
"interest"
>
<
h1
align
=
"center"
>SIMPLE INTERESTh1
>
<
table
border
=
"1"
align
=
"center"
>
<
tr
>
<
td
>ENTER PRINCIPLE AMOUNTtd
>
<
td
><
input
type
=
"text"
name
=
"principle"
size
=
"7"
>td
>
tr
>
<
tr
>
<
td
>ENTER RATE OF INTERESTtd
>
<
td
><
input
type
=
"text"
name
=
"rate"
size
=
"7"
>td
>
tr
>
<
tr
>
<
td
>ENTER NO OF YEARtd
>
<
td
><
input
type
=
"text"
name
=
"year"
size
=
"7"
>td
>
tr
>
<
tr
>
<
td
colspan
=
"2"
><
input
type
=
"button"
value
=
"CALCULATE INTEREST"
size
=
"5"
onClick
=
"simple()"
>
<
input
type
=
"reset"
value
=
"clear"
>td
>
tr
>
<
tr
>
<
td
><
b
>ANSWERB
>td
>
<
td
><
input
type
=
"text"
name
=
"answer"
size
=
"7"
>td
>
tr
>
table
>
form
>
body
>
html
>
Labels:
Javascript Program
PRIME OR NOT
<
html
>
<
script
language
=
"javascript"
>
var x,i;
var dc=0;
x=parseInt(prompt("enter no"));
for(i=1;i<=x;i++)
{
if(x%i==0)
{
dc=dc+1;
}
}
if(dc==2)
{
alert("PRIME NUMBER");
}
else
{
alert("NOT A PRIME NO");
}
script
>
html
>
Labels:
Javascript Program
ODD OR EVEN NUMBER
<
html
>
<
head
>
<
title
>ODD OR EVEN NOtitle
>
<
script
language
=
"javascript"
>
var x,y,i;
x=prompt("ENTER ENDING NUMBER","00");
if(x%2==0)
{
document.write("Entered number is even:" ,x + "<
br
>");
}
else
{
document.write("Entered number is odd:" ,x + "<
br
>");
}
script
>
head
>
html
>
Labels:
Javascript Program
CHANGE BGCOLOR
<
html
>
<
head
>
<
title
>background colortitle
>
<
script
language
=
"javascript"
>
function goto()
{
var c;
c=document.g.l.value;
document.bgColor=c;
}
script
>
head
>
<
body
>
<
form
name
=
"g"
>
selsect color:
<
script
language
=
"javascript"
>
document.write("<
select
size=\"1\" name=\"l\" onChange=\"goto();\">");
document.write(" <
option
value=\"black\" selected>blackoption
>");
document.write(" <
option
value=\"red\" selected> redoption
>");
document.write(" <
option
value=\"purple\" selected>purpleoption
>");
document.write(" <
option
value=\"blue\" selected> blueoption
>");
document.write(" <
option
value=\"yellow\" selected> yellowoption
>");
document.write("<
select
>");
script
>
form
>
body
>
html
>
Labels:
Javascript Program