Q15

Question 15

Write a java script

  a. To change the colour of text using SetTimeOut\(\)

  b. To move an image across screen using SetInterval\(\)

a. Taking Color value from user via click and prompt and then changing color value.

b. Placed a box on screen using CSS and added Image element in that and wrote Javascript function to increment co-ordinates and displace image.

Browse Code Here

Code

Output

Main Page (1/5)
On Tapping Change Colour Buttton (2/5)
Text Turned To Blue (3/5)
Text Colour Input To Red (4/5)
Text Colour Changed To Red (5/5)
Live Demo javascript_3_a.html
Live Demo javascript_3_b.html

Last updated