Click here to Skip to main content
15,891,607 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Default TextBox Text..... Pin
greendragons3-Nov-09 12:08
greendragons3-Nov-09 12:08 
GeneralRe: Default TextBox Text..... Pin
Not Active3-Nov-09 12:27
mentorNot Active3-Nov-09 12:27 
GeneralRe: Default TextBox Text..... Pin
Oakman3-Nov-09 13:26
Oakman3-Nov-09 13:26 
GeneralRe: Default TextBox Text..... Pin
greendragons3-Nov-09 12:11
greendragons3-Nov-09 12:11 
GeneralRe: Default TextBox Text..... Pin
Oakman3-Nov-09 14:58
Oakman3-Nov-09 14:58 
GeneralRe: Default TextBox Text..... Pin
Not Active3-Nov-09 12:29
mentorNot Active3-Nov-09 12:29 
GeneralRe: Default TextBox Text..... Pin
Oakman3-Nov-09 13:26
Oakman3-Nov-09 13:26 
AnswerRe: Default TextBox Text..... Pin
Aman Bhullar3-Nov-09 21:32
Aman Bhullar3-Nov-09 21:32 
Use

<html>
<head>
      <style>
       
          .hint{color:blue;}
          .real{color:black;}
         
      </style>
     <script type="text/javascript">
          window.onload = onchange;
          function foc(){
               if(this.value.length==0 || this.className=="hint"){
                    this.value="";
                    document.getElementById('textbox1').className = 'real';
                    //this.className=="real";
               }
              
          }
          function blur(){
               if(this.value.length==0){
                   document.getElementById('textbox1').className = 'hint';
                    //this.className = "";
                    this.value="Enter";
               }
              
          }
          function onchange(){
               var text = document.getElementById("textbox1");
                        
                    text.onfocus = foc;
                    text.onblur = blur;
         
            }         
     </script>
</head>
<body>
        <input type="text" id="textbox1" class="hint" value="Enter"/>
</body>
</html>     


Regards
Aman Bhullar
www.arlivesupport.com[^]

GeneralRe: Default TextBox Text..... Pin
greendragons4-Nov-09 0:57
greendragons4-Nov-09 0:57 
Questionhow to develop blog websites in joomla Pin
Amit Spadez3-Nov-09 2:31
professionalAmit Spadez3-Nov-09 2:31 
AnswerRe: how to develop blog websites in joomla Pin
Richard MacCutchan3-Nov-09 2:50
mveRichard MacCutchan3-Nov-09 2:50 
AnswerRe: how to develop blog websites in joomla Pin
Abhishek Sur3-Nov-09 4:51
professionalAbhishek Sur3-Nov-09 4:51 
GeneralRe: how to develop blog websites in joomla Pin
Amit Spadez3-Nov-09 23:08
professionalAmit Spadez3-Nov-09 23:08 
QuestionIs it possible to download a media (video or images) files from server and run it on client machine ! Pin
divyesh14322-Nov-09 17:52
divyesh14322-Nov-09 17:52 
AnswerRe: Is it possible to download a media (video or images) files from server and run it on client machine ! Pin
Christian Graus2-Nov-09 18:27
protectorChristian Graus2-Nov-09 18:27 
AnswerRe: Is it possible to download a media (video or images) files from server and run it on client machine ! Pin
Abhishek Sur2-Nov-09 20:41
professionalAbhishek Sur2-Nov-09 20:41 
GeneralRe: Is it possible to download a media (video or images) files from server and run it on client machine ! Pin
Jayapal Chandran12-Nov-09 7:48
Jayapal Chandran12-Nov-09 7:48 
GeneralRe: Is it possible to download a media (video or images) files from server and run it on client machine ! Pin
Abhishek Sur12-Nov-09 8:42
professionalAbhishek Sur12-Nov-09 8:42 
QuestionComprehensive comparison of document.all and document.getElementById? Pin
DigiFaith2-Nov-09 6:51
DigiFaith2-Nov-09 6:51 
AnswerRe: Comprehensive comparison of document.all and document.getElementById? Pin
Oakman3-Nov-09 12:08
Oakman3-Nov-09 12:08 
QuestionHow to change a title of javascript alert Pin
kKamel2-Nov-09 5:56
kKamel2-Nov-09 5:56 
AnswerRe: How to change a title of javascript alert Pin
Abhishek Sur2-Nov-09 6:13
professionalAbhishek Sur2-Nov-09 6:13 
GeneralRe: How to change a title of javascript alert Pin
kKamel2-Nov-09 6:19
kKamel2-Nov-09 6:19 
GeneralRe: How to change a title of javascript alert Pin
Abhishek Sur2-Nov-09 6:20
professionalAbhishek Sur2-Nov-09 6:20 
GeneralRe: How to change a title of javascript alert Pin
kKamel2-Nov-09 6:22
kKamel2-Nov-09 6:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.