Questão
ID 2124187Disciplina: Tecnologia da Informação
Assunto: DHTML
Ano: 2019 Banca: Colégio Pedro II Órgão: Colégio Pedro II
Observe a seguir um arquivo HTML e as funções Javascript nele contidas.
1 | <html> |
2 | <head> |
3 | <script > |
4 | function F1() |
5 | { |
6 | document.getElementById('id1').style.backgroundColor = "yellow"; |
7 | document.getElementById('id2').src = "imagem1.jpg"; |
8 | setTimeout("F2()", 1000) |
9 | } |
10 | function F2() |
11 | { |
12 | document.getElementById('id1').style.backgroundColor = "red"; |
13 | document.getElementById('id2').src = "imagem2.jpg"; |
14 | setTimeout("F3()", 1000) |
15 | } |
16 | function F3() |
17 | { |
18 | document.getElementById('id1').style.backgroundColor = "blue"; |
19 | document.getElementById('id2').src = "imagem3.jpg"; |
20 | setTimeout("F1()", 1000) |
21 | } |
22 | </script> |
23 | </head> |
24 | <body id = 'id1' onLoad='F1()'> |
25 | <img id='id2' > |
26 | </body> |
27 | </html> |
Assinale a alternativa que descreve corretamente o que será exibido na tela do navegador ao carregar a página