shev: Kontaktformularfelder

Beitrag lesen

hey bin nit sicher was du genau brauchst, evtl is dir damit geholfn

  • javascript:

<SCRIPT LANGUAGE="JavaScript" type="text/javascript">

function FCol(obj)
      {
        if (document.getElementById || document.all)
        {
        obj.style.color="yellow";
        obj.style.backgroundColor="black";
        obj.style.fontWeight="normal";
        }
      }
      function BlurCol(obj)
      {
        if (document.getElementById || document.all)
        {
        obj.style.color="#343845";
        obj.style.backgroundColor="#FFFFCC";
        obj.style.fontWeight="normal";
        }
      }
-->

CSS:

<style type="text/css">
<!--
label,input {display: block;width:350px;float:left;margin-bottom:8px;}
label       {text-align:left;width:275px; padding-right: 10px; }
br {clear: left;}
--> </style>

und in der html page is dann z bsp:

<div class="Contact">
Contact:
<form action="EMAIL.php" method="post">
<label for="UserName"><B>Dein Name</b>:</label>
<input id="UserName" name="UserName" class="blur" OnFocus="FCol(this)" OnBlur="BlurCol(this)">
<label for="UserEmail"><B>Deine e-mail Addresse(optional)</b>:</label>
 <input id="UserEmail" name="UserEmail" class="blur" OnFocus="FCol(this)" OnBlur="BlurCol(this)">
 <label for="UserURL"><B>Die URL deiner Homepage(optional)</b>:</label>
 <input id="UserURL" name="UserURL" class="blur" OnFocus="FCol(this)" OnBlur="BlurCol(this)" value="http://">
 <label for="UserBusinessLocation"><b>In welcher Stadt wohnst du(optional)</b>:</label>
 <input id="UserBusinessLocation" name="UserBusinessLocation" class="blur" OnFocus="FCol(this)" OnBlur="BlurCol(this)">
 <label for="UserComments"><B>Dein Kommentar</b>: </label>
    <textarea id="UserComments" name="UserComments" cols=50 rows=8 class="FWBB Black"></textarea>
    <input type="submit" value="Inhalt Senden">
    </form>
    </div>