Showing posts with label Java Script. Show all posts
Showing posts with label Java Script. Show all posts

Wednesday, 25 June 2014

General Knowledge Quiz


General Knowledge


0

Points
0
Q.1 Longest River of the world.
Nile       Indus       Amazon       Mississippi  

Monday, 10 March 2014

Replacing Text with JavaScript


This text will replace by pressing below button




Code is below:


<div id="check"> <!-- A new div is assign for replacing text -->
This text will replace by pressing below button</div>
<br />
<script>
function myfunction()
{
 document.getElementById("check").innerHTML="Replica Text Through Java Script";
// get element by id which is "check" and new text will be added in div section through innerHTML
 }
</script><br />
<button onclick="myfunction()" type="button">Replace Text</button><br />
<!-- by clicking button it calls function name "myfunction" and function will rewrite text in div section -->
<div>


Thursday, 6 March 2014

Criss Cross



* 12 13 14 15 16 17 18 19 20
1 C
2
3
4
Y
22
21
5
6
23
M
7 Z
24
8
9
10
25
11

Linear Hints Downword Hints
1 Exclusive Rights 12 Element occuring as diamond and graphite
2 Capable 13 Act Upon
3 Genuine 14 Sport
4 Via 15 Shrill Cry
5 Promise 16 Hare
6 A short Sleep 17 colour liquid for writing
7 Passion 18 A crew look after game/games
8 Bull 19 Tool with heavy metal head
9 Sum 20 Label
10 View of a subject 21 Antonym of Lend
11 A Large Bag of Coarset 22 Christmas
25 Line 23 Experimental Place
24 Eight Bits

Monday, 3 March 2014

IQ Test


Start Timer before proceede
Target Time 60 seconds


0
Q.1 Some months have 30 days some have 31 days how many have 28 days.
1       9       6       All

Thursday, 27 February 2014

Digital Clock in Browser





Click button will show clock.

here is code

<HTML>
<head><title></title>
<script>

function time()

{
var d=new Date();
H= d.getHours();
M= d.getMinutes()
S= d.getSeconds()
document.getElementById("timer1").innerHTML= H +":"+M +":"+S;
setTimeout(function(){time()},500);
setInterval(function(){time()},1000);
}
</script>
</head>
<body>


<div id="timer1" style="float:right";>
<button type="button" onClick="time();"style="float:right">Clock</button><br />
</div>
</body>

Wednesday, 26 February 2014

Simple Timer in Java Script




0



Here is code, hope you enjoyed.
This is simples Javascript code you ever seen for a timer.


<html>
<head><title></title>
<script>
function ctime()
{
var int = setInterval(function(){updateField();},1000);
}


function updateField()
{
var t = document.getElementById('timer').innerHTML;
var inc= (parseInt(t)+1);
document.getElementById("timer").innerHTML=inc;
</script>
</head>
<body>
<div id="bt_timer" style="float: right;">
<button onclick="ctime();" style="float: right;" type="button">Timer</button><br />
<div id="timer">0</div>
</div>
</body>
</html>