Dies ist eine alte Version des Dokuments!
LU06.S08 - Events - calculator - TBD
Solution
Assignment A
- Test the code example provided to you: When moving the mouse over a list food elements each element must change the backgroundcolour to grey.
- Make sure that you have the title <h1> and have the correctl filename: lu06.s07.html
- After moving the mouse over the colour area the background-colour should change randomly. Behind this effect there is a sophisticated Math-Operation.
- Replace the math-method with a simple increment operation with step-size 1.
- Start with the colour value of 0.
Assignment B
- Add another area for the a right-click event.
- Start with a colour value of 120
- Decrement step-size is 2
Assignment C
- Add another area for the a left-click event.
- Start with a colour value of 240
- Increment step-size is 5
Assignment C
- Add another area for the a left-click event.
- Start with a colour value of 240
- Increment step-size is 5
Assignment D
- Add another area for the a mouseover event.
- Start with a colour value of 360
- Decrement step-size is 10