Discussions

Qソースについて

var rand = Math.floor( Math.random() * 100 );
if(rand < 10){
location.href = "http://apptable.org/app/xcode/invader/user_check/kin.html";
}else if(rand >= 10 && rand < 30){
bgImage = _img[7];
}else{
location.href = "http://apptable.org/app/xcode/invader/user_check/dou.html";
}
location.href = "http://apptable.org/app/xcode/invader/user_check/kin.html";

とあるが、全部一番下の
location.href = "http://apptable.org/app/xcode/invader/user_check/kin.html";
に行っているのでどう分岐すればいいかおしえてください。

Sample Code

AAnswer to: ソースについて

Post a question

You can post JavaScript, HTML, CSS related questions with attached reference to actual codes and get the answers likewise.

Ask a question

  • 1. Click the ‘Post a question’ above

  • 2. Enter question details, reference code, and click ‘Add question’ button

  • 3. Question will be paired with the code on display

Add an answer

  • 1. Choose a question

  • 2. Enter answer details, attach the reference code and click ‘add answer’ button

  • 3. Your answer will accompanied with attached code

Tag