Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 31st, 2002, 08:22 PM
MRK's Avatar
MRK MRK is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 191 MRK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 36 sec
Reputation Power: 8
Input text feild erasure :)

Ok, here is my problem. I have an email subscription form on my site. It is a simple script that takes the input from the input text feild on the page and then puts it into email and says basically "Subscribe $email_Address to List@domain.com."

Well, in the text field its default value is "Type E-Mail Here." Well, my stupid *** users dont understand that they need to erase this before they type in their email. So instead of erasing this, i end up getting a subscription notice like "Subscribe someone@stupidassidiots.comType E-mail Here to list@domain.com"

Basically what i need is a script that when they click in the text feild it erases the default value. I have seen this before, but i'm not sure how to do this. Thanks!!!!!!!!!!!!!!!!

p.s. This is not meant to offend any "Stupid *** users". lol. :P


Code:
<FORM name=hmspin action=hmspin.php method=post>
<INPUT maxLength=45 value="Type E-Mail Here" name=email>
<br>
<INPUT type=submit value=Subscribe name=submit>

Reply With Quote
  #2  
Old February 12th, 2002, 03:21 AM
afabsy afabsy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 36 afabsy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Lightbulb

Hi,

try smth like this:

<FORM name=hmspin action=hmspin.php method=post>
<INPUT maxLength=45 value="Type E-Mail Here" name=email onFocus=" if (document.hmspin.email.value==''Type E-Mail Here") document.hmspin.email.value='' >
<br>
<INPUT type=submit value=Subscribe name=submit>

it should work,
Ciao

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Input text feild erasure :)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway