помогите доработать скрипт)
var firstProblem = document.getElementById('firstProblem');
var firstProblem1 = document.getElementById('firstProblem1');
var firstProblem2 = document.getElementById('firstProblem2');
var firstProblem3 = document.getElementById('firstProblem3');
var i = 0;
function dontOn(){
firstProblem.className = 'show' ;
i++;
if ( (i%2) == 0) {
firstProblem.className = 'hide';
}
}
function yes(){
firstProblem.className = 'hide';
firstProblem1.className = 'show';
}
function no(){
firstProblem.className = 'hide';
firstProblem2.className = 'show';
}
function yes1(){
firstProblem2.className = 'hide';
firstProblem1.className = 'show';
}
function no1(){
firstProblem2.className = 'hide';
firstProblem3.className = 'show';
}
|