Hi Leute,
ich habe meine comments.php mit folgendem code "getuned" :P
PHP
<p><label for="author"><?php if ($req) echo ""; ?></label><input type="text" class="input" onFocus="if(this.value=='Name*'){this.value=''}" onBlur="if(this.value==''){this.value='Name*'}" name="author" id="author" value="<?php echo $comment_author; ?>Name*" style="color:#999" size="22" tabindex="1" /></p>
<p><label for="email"><?php if ($req) echo ""; ?></label><input type="text" class="input" onFocus="if(this.value=='Mail*'){this.value=''}" onBlur="if(this.value==''){this.value='Mail*'}" name="email" id="email" value="<?php echo $comment_author_email; ?>Mail*" style="color:#999" size="22" tabindex="2" /></p>
<p><label for="url"></label><input type="text" class="input" onFocus="if(this.value=='URL'){this.value=''}" onBlur="if(this.value==''){this.value='URL'}" name="url" id="url" value="<?php echo $comment_author_url; ?>URL" style="color:#999" size="22" tabindex="3" /></p>
Das sieht dann so aus http://cl.ly/1e3u1X3F2Z172e2y0O0e und wenn man auf Name*, Mail* bzw. URL klickt, verschwindet der Inhalt und man kann seinen Namen reinschreiben.
Allerdings "merkt" sich Wordpress den eingegebenen Namen und die Mailadresse und wenn man sich danach das Eingabefeld anschaut sieht es so aus http://cl.ly/2u260y1C0f0q1s3h3H0K
Jemand ne Idee, wie ich Wordpress nun sagen kann, er soll dann auch "Name*", ... nichtmehr in die Felder schreiben?