You can make a function for each case, but you can't use the <script> tag inside the javascript because it's an unknown command 4 javascript.
<script language="javascript1.2">
<!--
function case1() {}
function case2() {}
function case3() {}
var x = 2;
if(x == 1) {call function case1}...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.