Completed

Alteraçoes javascript

Published on the May 18, 2017 in IT & Programming

About this project

Open

Bom dia.

Este projeto até 30,00
preciso consertar um pedaço do javascript. Hoje ele esta lendo uma alternativa da questão
Preciso que ele possa escolher mais do que uma alternativa
Segue a chamada no php
<map name="mapTela90"> 

    <area alt="" coords="198,228,223,252" href="javascript:questao2('a')" shape="rect" style="outline:none;" title="" />
    <area alt="" coords="199,310,223,336" href="javascript:questao2('b')" shape="rect" style="outline:none;" title="" />
    <area alt="" coords="198,371,221,394" href="javascript:questao2('c')" shape="rect" style="outline:none;" title="" />
    <area alt="" coords="200,455,224,480" href="javascript:questao2('d')" shape="rect" style="outline:none;" title="" />
    <area alt="" coords="199,513,223,537" href="javascript:questao2('e')" shape="rect" style="outline:none;" title="" />


<!-- este é o botao de confirma -->
    <area alt="" coords="691,598,863,637" href="javascript:questao2('fim')" shape="rect" style="outline:none;" title="" />


<!-- este é a volta do erro ou do acerto -->
<area alt="" coords="366,552,591,605" href="javascript:carregaQuestaoAnterior2();" shape="rect" style="outline:none;" title="" />


</map>


Segue o javascript


// pagina 17 modulo 1
var alternativa2 = "";

var altcorrect2 = false;
    function questao2(alt2){
        if(alt2 == 'fim'){
        if(alternativa2 != ""){
 
            if(alternativa2 == "c" || alternativa2 == "e" ) {
                javascript:carregaSlide('601','mapTela90','17');
                altcorrect2 = true;
            }
            else{
                javascript:carregaSlide('600','mapTela90','17');
            }
        }
        }else{
            alternativa2 = alt2;
        }
    }
    function carregaQuestaoAnterior2() {
        if (altcorrect2 == true) {
            carregaSlideSeta('avanca','modulo1.php');
        } else {
        carregaSlideSeta('volta','modulo1.php');
        carregaSlideSeta('avanca','modulo1.php');
        }
    }


Preciso que ao inves de trazer uma unica alternativa, possa trazer duas ou mais alternativas para confirmar se estará certo

Category IT & Programming
Subcategory Web development
What is the scope of the project? Small change or bug
Is this a project or a position? Project
Required availability As needed
Roles needed Developer

Delivery term: Not specified

Skills needed

Other projects posted by Elisa F.