הרשם שאלות ותשובות רשימת חברים לוח שנה הודעות מהיום

חזור   הוסטס - פורום אחסון האתרים הגדול בישראל > עיצוב גראפי, תכנות על כל שפותיו וקידום ושיווק אתרים > פורום תיכנות

   
|!|

השב
 
כלים לאשכול תצורת הצגה
ישן 26-06-06, 12:28   # 1
-roee-
חבר על
 
מיני פרופיל
תאריך הצטרפות: Nov 2005
מיקום: IL
הודעות: 864

-roee- לא מחובר  

תיבות INPUT ו JS

שלום,
רציתי לדעת איך אפשר לעשות משהו כזה בערך:
יש 2 RAIDO BOTTOM ויש מתחתיהם 2 INPUT BOTTOM
אם לוחצים על הכפתור רדיו הראשון הוא חוסם את הINPUT השני ואם לוחצים על הכפתור רדיו השני הוא חוסם את הINPUT הראשון...
חוסם: לא מאפשר כתיבה בתוכו..

תודה
  Reply With Quote
ישן 26-06-06, 20:41   # 2
Distortion
חבר חדש
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 35
הודעות: 40

Distortion לא מחובר  

ציטוט:
נכתב במקור על ידי bigsmoke
שלום,
רציתי לדעת איך אפשר לעשות משהו כזה בערך:
יש 2 RAIDO BOTTOM ויש מתחתיהם 2 INPUT BOTTOM
אם לוחצים על הכפתור רדיו הראשון הוא חוסם את הINPUT השני ואם לוחצים על הכפתור רדיו השני הוא חוסם את הINPUT הראשון...
חוסם: לא מאפשר כתיבה בתוכו..

תודה
משהו כזה:
HTML קוד:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-8-i" />
<title>Untitled Document</title>
<script type="text/javascript">
    function disableInput(x)
        {
        if(x==1)
            {
            document.getElementById("input2").disabled=true;
            document.getElementById("input1").disabled=false;
            }
                else
                    {
                    document.getElementById("input1").disabled=true;
                    document.getElementById("input2").disabled=false;
                    }
        }
</script>
</head>
<body>
<form id="bla" method="post" action="">
    <div><input type="radio" name="rButton" value="1" onclick="disableInput(1);" /> 1</div>
    <div><input type="radio" name="rButton" value="2" onclick="disableInput(2);" /> 2</div>
    <div><input type="text" id="input1" name="1" /></div><div><input type="text" id="input2" name="2" /></div>
</form>
  <p>
    <a href="http://validator.w3.org/check?uri=referer"><img
        src="http://www.w3.org/Icons/valid-xhtml10"
        alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
  </p>
</body>
</html>
  Reply With Quote
ישן 27-06-06, 06:25   # 3
forils
Permanently Banned
 
מיני פרופיל
תאריך הצטרפות: Apr 2006
הודעות: 368

forils לא מחובר  

אתה יכול להשתמש בפונקציה IF
  Reply With Quote
ישן 27-06-06, 13:37   # 4
-roee-
חבר על
 
מיני פרופיל
תאריך הצטרפות: Nov 2005
מיקום: IL
הודעות: 864

-roee- לא מחובר  

ציטוט:
נכתב במקור על ידי Distortion
משהו כזה:
HTML קוד:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-8-i" />
<title>Untitled Document</title>
<script type="text/javascript">
    function disableInput(x)
        {
        if(x==1)
            {
            document.getElementById("input2").disabled=true;
            document.getElementById("input1").disabled=false;
            }
                else
                    {
                    document.getElementById("input1").disabled=true;
                    document.getElementById("input2").disabled=false;
                    }
        }
</script>
</head>
<body>
<form id="bla" method="post" action="">
    <div><input type="radio" name="rButton" value="1" onclick="disableInput(1);" /> 1</div>
    <div><input type="radio" name="rButton" value="2" onclick="disableInput(2);" /> 2</div>
    <div><input type="text" id="input1" name="1" /></div><div><input type="text" id="input2" name="2" /></div>
</form>
  <p>
    <a href="http://validator.w3.org/check?uri=referer"><img
        src="http://www.w3.org/Icons/valid-xhtml10"
        alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
  </p>
</body>
</html>
סוס אחי תודה רבה יש לי שאלה,
אפשר שכאשר תיבה מסויימת נחסמת אז הרקע שלה הופך לאפור?

תודה
  Reply With Quote
ישן 27-06-06, 13:53   # 5
RS324
תודה על תרומתך.
 
מיני פרופיל
תאריך הצטרפות: May 2006
הודעות: 3,173

RS324 לא מחובר  

עקרונית כן ב FIREFOX זה הופך לאפור ב IE פשוט אי אפשר ללחוץ עליו.
  Reply With Quote
השב

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 


חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 19:05.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ