html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<head>
<title>Say Hello</title>
</head>
<div style="Background-color:#AAAAAA;Color:White;Padding:50px">
<p><strong>H</strong>-
<i> How are you</i></p>
<p><strong>E</strong>-
<i>Everything alright?</i></p>
<p><strong>L</strong>-
<i>Like to hear from you</i></p>
<p><strong>L</strong>-
<i>Love to see you soon</i></p>
<p><strong>O</strong>-
<i>Obviously,I Miss You</i></p>
<br/>
<p align="right">"A Simple Hello Could Lead To Million Things" </p></div>
<span style="color:#DC143E">
<p id="change" align="Center">HELLO!!</p></span>
<button align="center" onclick="changeit()">EXIT</button>
<body>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//its just an example for setInterval and clearInterval()
function changeit(){
document.getElementById("change").innerHTML="BYE" ;
}
var count=0;
var hello=setInterval(startandstop,1000);
function startandstop(){
var x=["Vanakkam","Namaskar","Hi","Hello","Bonjour","Aloha","Hola"];
var c=prompt("How many time you want to say hello");
var i=0;
for(;i<c;) {
if(i<7){
while((i<7)&&(count<c)){
alert(x[i]);
i++;
count+=1;
}
} else
{
i=0 ;
while((i<7)&&count<c)
{
alert(x[i]);
i++;
count+=1;
}
}
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run