الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

سؤال

مغلق
بدأه ياققوتة في 29 مايو 2004 · 2 رد · 547 مشاهدة · في منتدى تصميم صفحات الويب
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم..

اريد معرفه كيف بالدوال واجراءات اختار option or select or check

بحيت ينفدلي اجراء معين

الحين متلا ابي ادخل رقم واختار من قائمة تحويله لعدد عشري او سادس عشري الخ

كيف اسويها

<html>
<head>
<title>This is the title of the page </title>

    <script language="vbscript"> 
       sub check_form
dim num

set num=document.myform.num.value  
msgbox("num"&num)
if num=v1 then

msgbox("oct"&oct(num))
else

msgbox("exit")
end if
end sub

    </script> 

</head>
<body>
<form name=myform>
enter a number: <input type="text" name="num"><br>
<select name="what">
<option value=1>عشري</option>
<option value=2>تماني</option>
<option value=3>سادس عشري</option>
</select>
<input type="button" value=send onclick=check_form><br>
</form>
</body>
</html>

وهدا لحاله واحده

#2

السلام عليكم

<html dir="rtl">

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>New Page 1</title>
</head>

<body>
<html>
<head>
<title>This is the title of the page </title>

   <script language="vbscript"> 
      sub check_form
dim num

 num=document.myform.num.value  

select case document.myform.what.value 


case 2
msgbox(oct(num))
case 3
msgbox(hex(num))
end select 


end sub

   </script> 

</head>
<body>
<form name=myform>
enter a number: <input type="text" name="num" size="20"><br>
<select name="what">

<option value=2>تماني</option>
<option value=3>سادس عشري</option>
</select>
<input type="button" value=send onclick=check_form><br>
</form>
</body>
</html>

</body>

</html>

مع تحياتي

MCP

MCTS:.Net Framework 2.0: Web Applications

MCPD:Web Developer

#3

شكرا لردك جزاك الله خيرا

هذا الموضوع مغلق.

مواضيع مشابهة