87,904
社区成员
发帖
与我相关
我的任务
分享
for(var i = 1; i < 7; i++)
{
if (i != json.Out1VSoure)
{
document.getElementById("imgAV"+i+"_1").src = "image/b-1.png";
}
if (i != json.Out2VSoure)
{
document.getElementById("imgAV"+i+"_2").src = "image/b-2.png";
}
if (i != json.Out3VSoure)
{
document.getElementById("imgAV"+i+"_3").src = "image/b-3.png";
}
if (i != json.Out4VSoure)
{
document.getElementById("imgAV"+i+"_4").src = "image/b-4.png";
}
}
document.getElementById("imgAV"+json.Out1VSoure+"_1").src = "image/g-1.png";
document.getElementById("imgAV"+json.Out2VSoure+"_2").src = "image/g-2.png";
document.getElementById("imgAV"+json.Out3VSoure+"_3").src = "image/g-3.png";
document.getElementById("imgAV"+json.Out4VSoure+"_4").src = "image/g-4.png";
for(var i = 1; i < 7; i++)
{
if (i != json.Out1ASoure)
{
document.getElementById("imgA"+i+"_1").src = "image/b-1.png";
}
if (i != json.Out2ASoure)
{
document.getElementById("imgA"+i+"_2").src = "image/b-2.png";
}
if (i != json.Out3ASoure)
{
document.getElementById("imgA"+i+"_3").src = "image/b-3.png";
}
if (i != json.Out4ASoure)
{
document.getElementById("imgA"+i+"_4").src = "image/b-4.png";
}
}
document.getElementById("imgA"+json.Out1ASoure+"_1").src = "image/g-1.png";
document.getElementById("imgA"+json.Out2ASoure+"_2").src = "image/g-2.png";
document.getElementById("imgA"+json.Out3ASoure+"_3").src = "image/g-3.png";
document.getElementById("imgA"+json.Out4ASoure+"_4").src = "image/g-4.png";
for(var i = 1; i < 7; i++)
{
if (i != json.Out1VSoure)
{
document.getElementById("imgV"+i+"_1").src = "image/b-1.png";
//$("#imgV"+i+"_1").attr("src","image/b-1.png");
}
if (i != json.Out2VSoure)
{
document.getElementById("imgV"+i+"_2").src = "image/b-2.png";
//$("#imgV"+i+"_2").attr("src","image/b-2.png");
}
if (i != json.Out3VSoure)
{
document.getElementById("imgV"+i+"_3").src = "image/b-3.png";
}
if (i != json.Out4VSoure)
{
document.getElementById("imgV"+i+"_4").src = "image/b-4.png";
}
}
document.getElementById("imgV"+json.Out1VSoure+"_1").src = "image/g-1.png";
document.getElementById("imgV"+json.Out2VSoure+"_2").src = "image/g-2.png";
document.getElementById("imgV"+json.Out3VSoure+"_3").src = "image/g-3.png";
document.getElementById("imgV"+json.Out4VSoure+"_4").src = "image/g-4.png";