i have numerous divs i conviently id would certainly as “beginning”, “a”, “b”, “c”, ect. On web page lots i would love to reveal just the div id would certainly as “beginning”. On journalism of a switch, i wish to reveal just the div id would certainly as “a”, and also repeadtly proceed with all the letters of the alphabet. heres the code i have thus far.
<< div id=" beginning">
> Allows Begin<< br/>>.
<< switch id=" startbutton">> Begin< .
<< div id=" a">
<> < img onclick=" play(' sounds/apple. mp3')" src=" images/apple. png" size=" 400" elevation=" 400"/><> < br/>>.
<< switch onclick=" play(' sounds/correct1. mp3')" course=" multiple-choice">> Apple< < switch onclick=" play(' sounds/wrong1. mp3')" course=" multiple-choice">> Slinky< < switch onclick=" play(' sounds/wrong1. mp3')" course=" multiple-choice">> Orange< .
<< div id=" b">
<> < img onclick="" src=" images/banana. png" size=" 400" elevation=" 400"/><> < br/>>.
<< switch onclick="" course=" multiple-choice">> Ape< < switch onclick="" course=" multiple-choice">> Banana< < switch onclick="" course=" multiple-choice">> Yellow< .
im conscious i ought to utilize addeventlistners instead of onclicks, however allows deal with onclicks in the meantime.
im rather brand-new to javascript however have a lot of php experience. so i considered buttons with screen: none, screen: block designing. However i simply cant peice it with each other.