הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   שאלה בכל לכפתורי רדיו (https://hosts.co.il/forums/showthread.php?t=60284)

sbarbz 22-02-08 22:16

שאלה בכל לכפתורי רדיו
 
אני מחפש את הקוד שלדוגמא אם תבחר בכפתור רדיו מספר 1 זה יוביל אותך לקישור X

דוגמא :
( ) בלה בלה בלה-1
( ) בלה בלה בלה-2
( ) בלה בלה בלה-3

|הבא| |אפס טופס|

אם תבחר בכפתור השלישי וילחץ הבא תועבר ללינק www.www.co.il
אם תבחר בכפתור השני וילחץ הבא תועבר ללינק http://htpp://.co.il
אם תבחר בכפתור הראשון וילחץ הבא תועבר ללינק http://www.co.il

הבנת למה אני מתכוון ?
לא שהשמות יובילו, אלה שכל בחירה תובלי ללינק אחר .

תודה רבה לכם

pirsomet 22-02-08 22:38

http://javascript.internet.com/navig...ton-links.html

sbarbz 23-02-08 01:10

זה אכן הכוונה, אך אני צריך שזה לא יעביר ישר בבחירה, אלה רק בלחיצה על ה submit .
תודה רבה

DavidBD 23-02-08 01:17

בשילוב עם PHP, אתה שולח VALUE לכל כתובת...

pirsomet 23-02-08 01:22

קוד:


<!-- TWO STEPS TO INSTALL RADIO BUTTON LINKS:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original:  Wayne Nolting (w.nolting@home.com) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
togo='http://hosts.co.il'
function go(loc) {
togo=loc;
 //window.location.href = loc;
}
function do_go()
{
window.location.href = togo;   
}   
//  End -->
</script>

</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->

<BODY>

<form name="form" >
<input type="radio" name="loc" onClick="go('http://javascript.internet.com/');"> JavaScript Source<br>
<input type="radio" name="loc" onClick="go('http://javascript.internet.com/toc.html');"> JSS Table of Contents<br>
<input type="radio" name="loc" onClick="go('mailto:anyone@mailserver.com');"> Contact Anyone<br>
<br>
<input type=button onClick="do_go()" value='submit'>
</form>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size:  1.14 KB -->

שיניתי את הסקריפט כדי שזה יעבוד כמו שאתה רוצה

sbarbz 23-02-08 02:22

תודה רבה, הנושא יכול להנעל .


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

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