Hackerboard Wiki HaboBlog
Hackerboard bei Facebook Hackerboard bei Google+ Hackerboard bei Twitter

[HaBo]

 
(Web-) Design und webbasierte Sprachen Tipps & Tricks, Designabgleich, HTML & Javascript, Flash, ASP, PHP, Perl/CGI...

javascript prob.!!!!!

Diskussion: javascript prob.!!!!! im Forum (Web-) Design und webbasierte Sprachen, in der Kategorie Web, Network & Multimedia Palace; Anzeige HI hier ist mein problem. ich finde den fehler nicht kann mir einer bitte den fehler suche ???? hier ...

Antwort
Alt 20.12.03, 13:39   #1 (permalink)
 
Registriert seit: 18.05.03
crazyevil Leistung: Facit NTK
crazyevil eine Nachricht über ICQ schicken
Likes: 0
Standard javascript prob.!!!!!

Anzeige

HI

hier ist mein problem. ich finde den fehler nicht
kann mir einer bitte den fehler suche ????

hier ist der fehler



CODE:

PHP-Code:

<html>
        <
head>
                <
title>Smiley Generator</title>
               </
head

<
body bgcolor=#444444 leftmargin="2" topmargin="2" text="#FFFFFF">

<script>
function 
findtyp() {
var 
szReturn;
for (var 
i=0;i<document.schild.typ.length;i++) {
 if (
document.schild.typ[i].checked) {
  
szReturn document.schild.typ[i].value;
  break;
 }
}
return 
szReturn;
}

var 
vtyp findtyp();
</script>
<br>
<center>
<form name="schild">
<table border="0" cellspacing="0" cellpadding="0" width="400" align="center">
                        <tr>
                                <td bgcolor="#333333">
                                        <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                                    <tr>
              <td align="center" bgcolor="#555555">Smilie wählen</td>
            </tr>
            <tr>
              <td><table bgcolor="#000000" width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
                  <tr>
                    <td width="99%" valign="top"> <table width="100%" border="0" cellpadding="1" cellspacing="1">
                        <tr bgcolor="#333333">
                          <td width="33%"> <input name="typ" type="radio" value="1" checked>
                            <img src="schilder/vorlage1.png" alt="" width="29" height="22" border="0"></td>
                          <td width="33%"> <input type="radio" name="typ" value="6">
                            <img src="schilder/vorlage6.png" alt="" width="29" height="22" border="0"></td>
                          <td width="33%"> <input type="radio" name="typ" value="11">
                            <img src="schilder/vorlage11.png" alt="" width="29" height="22" border="0"></td>
                        </tr>
                        <tr bgcolor="#3333333">
                          <td><input type="radio" name="typ" value="2">
                            <img src="schilder/vorlage2.png" alt="" width="29" height="22" border="0"></td>
                          <td><input type="radio" name="typ" value="7">
                            <img src="schilder/vorlage7.png" alt="" width="29" height="22" border="0"></td>
                          <td><input type="radio" name="typ" value="12">
                            <img src="schilder/vorlage12.png" alt="" width="29" height="22" border="0"></td>
                        </tr>
                        <tr bgcolor="#3333333">
                          <td><input type="radio" name="typ" value="3">
                            <img src="schilder/vorlage3.png" alt="" width="29" height="22" border="0"></td>
                          <td><input type="radio" name="typ" value="8">
                            <img src="schilder/vorlage8.png" alt="" width="29" height="22" border="0"></td>
                          <td><input type="radio" name="typ" value="13">
                            <img src="schilder/vorlage13.png" alt="" width="29" height="22" border="0"></td>
                        </tr>
                        <tr bgcolor="#3333333">
                          <td><input type="radio" name="typ" value="4">
                            <img src="schilder/vorlage4.png" alt="" width="29" height="22" border="0"></td>
                          <td><input type="radio" name="typ" value="9">
                            <img src="schilder/vorlage9.png" alt="" width="29" height="22" border="0"></td>
                          <td><input type="radio" name="typ" value="14">
                            <img src="schilder/vorlage14.png" alt="" width="29" height="22" border="0"></td>
                        </tr>
                        <tr bgcolor="#333333">
                          <td><input type="radio" name="typ" value="5">
                            <img src="schilder/vorlage5.png" alt="" width="29" height="22" border="0"></td>
                          <td><input type="radio" name="typ" value="10">
                            <img src="schilder/vorlage10.png" alt="" width="29" height="22" border="0"></td>
                          <td><input type="radio" name="typ" value="15">
                            <img src="schilder/vorlage15.png" alt="" width="29" height="22" border="0"></td>
                        </tr>
               <tr bgcolor="#333333">
                          <td><input type="radio" name="typ" value="16">
                            <img src="schilder/vorlage16.png" alt="" width="29" height="22" border="0"></td>
                          <td><input type="radio" name="typ" value="17">
                            <img src="schilder/vorlage17.png" alt="" width="29" height="22" border="0"></td>
                          <td><input type="radio" name="typ" value="18">
                            <img src="schilder/vorlage18.png" alt="" width="29" height="22" border="0"></td>
                        </tr>
                      </table>
                      <table border="0" width="100%" cellpadding="3" cellspacing="1">
                        <tr bgcolor="#333333">
                          <td class="subject"><smallfont><strong>Dein text:
                            </strong></smallfont></td>
                          <td class="subject"><strong>
                            <input name="text" type="text" onFocus="this.value='';" onBlur="if (this.value=='') {this.value='';}" value="" size="35" maxlength="15">
                            </strong></td>
                        </tr>
                        <tr bgcolor="#333333">
                          <td class="subject"><smallfont><strong>Schrift Farbe:</strong></smallfont></td>
                          <td><select name="col">
                              <option value="0,0,0" selected style="background-color:#000000; color:#FFFFFF">Schwarz</option>
                              <option value="0,0,255" style="background-color:#0000FF">Blau</option>
                              <option value="185,207,232" style="background-color:#B9CFE8">Hell Blau</option>
                              <option value="255,153,0" style="background-color:#FF9900">Orange</option>
                              <option value="255,210,0" style="background-color:#FFD200">Gelb</option>
                              <option value="0,255,0" style="background-color:#00FF00">Grün</option>
                              <option value="197,248,163" style="background-color:#C5F8A3">Hell Grün</option>
                              <option value="13,105,3" style="background-color:#0D6900; color:#FFFFFF">Dunkel Grün</option>
                              <option value="147,81,3" style="background-color:#935103; color:#FFFFFF">Braun</option>
                              <option value="255,255,255">Weiß</option>
                            </select> </td>
                        </tr>
                        <tr bgcolor="#333333">
                          <td class="subject">Hintergrund Farbe:</td>
                          <td><select name="shcol">
                  <option value="255,255,255" selected>Weiß</option>
                              <option value="0,0,255" style="background-color:#0000FF">Blau</option>
                              <option value="185,207,232" style="background-color:#B9CFE8">Hell Blau</option>
                              <option value="255,153,0" style="background-color:#FF9900">Orange</option>
                              <option value="255,210,0" style="background-color:#FFD200">Gelb</option>
                              <option value="0,255,0" style="background-color:#00FF00">Grün</option>
                              <option value="197,248,163" style="background-color:#C5F8A3">Hell Grün</option>
                              <option value="13,105,3" style="background-color:#0D6900; color:#FFFFFF">Dunkel Grün</option>
                              <option value="147,81,3" style="background-color:#935103; color:#FFFFFF">Braun</option>
                              <option value="0,0,0"  style="background-color:#000000; color:#FFFFFF">Schwarz</option>
                            </select> </td>
                        </tr>
                        <tr valign="middle" bgcolor=#333333>
                          <td height="30" colspan="2" align="center" class="header">
                            
<input type="button" value="smiley generieren" onclick="window.open('text2schild.php?text='+document.schild.text.value+'&typ='+findtyp()+'&col='+document.schild.col.value+'&shcol='+document.schild.shcol.value);">

                          </td>
                        </tr>
                      </table></td>
                </table></td>
            </tr>
          </table></td>
      </tr>
    </table>
  </form></td>
</center>

                                </td>
                        </tr>
                </table>
        </body>
</html> 
crazyevil ist offline   Mit Zitat antworten
Alt 20.12.03, 15:24   #2 (permalink)
 
Registriert seit: 05.08.03
Sneaker Leistung: Facit NTK
Likes: 0
Standard

Code:
<html>
       <head>


<script language="JavaScript">
<!--

function findtyp() {
var szReturn;


var Knoten = document.getElementsByName("typ")[0]; //.firstChild;


while (Knoten!=null) {
  if (Knoten.checked) {
      szReturn = Knoten.value;
  break
  Knoten = Knoten.nextSibling;
}


}
return szReturn;
}
var vtyp = findtyp();

//-->
</script>
<noscript></noscript>
                <title>Smiley Generator</title>
               </head>
so kommt der Feher nicht mehr... konnte nicht ganz nachvollziehen was das script machen soll deswegen übernehm ich für die funktion keine garantie kannst ja nochmal posten wenn´s nich funzt wie du möchtest...

greetz,
Sneaker
Sneaker ist offline   Mit Zitat antworten
   
HaBOT
 
- Anzeige -

Werbung ist gerade online    
Alt 20.12.03, 17:18   #3 (permalink)
Themenstarter
 
Registriert seit: 18.05.03
crazyevil Leistung: Facit NTK
crazyevil eine Nachricht über ICQ schicken
Likes: 0
Standard

thx es klappt
crazyevil ist offline   Mit Zitat antworten
Antwort
   
- Anzeige -

Werbung ist gerade online    

[HaBo] » Web, Network & Multimedia Palace » (Web-) Design und webbasierte Sprachen » javascript prob.!!!!!
Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind aus
Pingbacks sind aus
Refbacks sind aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
HTML Javascript mastermix252 Code Kitchen 1 29.01.08 16:33
javascript zickt Sniffa Die Problemzone 3 29.04.05 12:47
Kodiertes JavaScript boppy (Web-) Design und webbasierte Sprachen 1 13.01.03 19:47
JavaScript Chris Programmiersprachen 0 17.12.02 18:59
JavaScript RedAngel (Web-) Design und webbasierte Sprachen 2 27.11.01 13:39


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61