פורסם 2005 במאי 2420 שנים עריכה:איך אני עושה כמה תנאים באותו זמן זאת אומרת כמו שישif ("a=1")&&("b=2")אז איך עושים אותו דבר רק במקום ש-&& יהיה סימן שאומר או... כלומר מה הסימן שמסמן או?
פורסם 2005 במאי 2420 שנים מחבר תודה אבל לא הצלחתי עדיין אתם יכולים בבקשה להגיד לי איפה טעיתי בקוד? המחשב אומר שבשורה 25. הבלטתי אותה.הוא אומר שצריך להוסיף את הסימן ; ואין לי מושג איפה.<form name=form1>Please Select a Company:<br><select name=type><option>HP</option><option>Lexmark</option></select><br><br>Please enter your printer's model:<input type=text size=5 name="Model"><input type="submit" value=send onclick="javascript:My()"><script language="Javascript">var color="";var black="";document.write('<font color="red">c</font><font color="blue">o</font><font color="yellow">l</font><font color="green">o</font><font color="purple">r</font>:');document.write('<br>');document.write('black:');</script><script language="Javascript">function My() { for (var i = 0; i < document.form1.type.length; i++){ (document.form1.type.options.selected == true) { if (("document.form1.type.options.text=='Lexmark'") && ("Document.form1.Model.value=='1000'")){var color="13619HC";var black="13400HC";}}}}//--></script></form>
ארכיון
דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.