css-man
چهارشنبه 05 بهمن 1390, 18:33 عصر
چرا این اسکریپت اجرا نمی شه؟
color = "b";
switch (color)
{
case 'b':
case 'B':
document.write('<br> <b/> Your intrest is Blue color');
break;
case 'r':
case 'R':
document.write('<br> </b>Your intrested is Red color');
break;
case 'g':
case 'G':
document.write('<br> </b> Your intrested is Green color');
break:
case 'w':
case 'W':
document.write('<br> <b/> Your intrested is white color');
break;
default:
document.write('<br> <b/>Character is illegal');
}
color = "b";
switch (color)
{
case 'b':
case 'B':
document.write('<br> <b/> Your intrest is Blue color');
break;
case 'r':
case 'R':
document.write('<br> </b>Your intrested is Red color');
break;
case 'g':
case 'G':
document.write('<br> </b> Your intrested is Green color');
break:
case 'w':
case 'W':
document.write('<br> <b/> Your intrested is white color');
break;
default:
document.write('<br> <b/>Character is illegal');
}