Click here to Skip to main content
15,790,645 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Default TextBox Text..... Pin
greendragons3-Nov-09 13:08
greendragons3-Nov-09 13:08 
GeneralRe: Default TextBox Text..... Pin
Not Active3-Nov-09 13:27
mentorNot Active3-Nov-09 13:27 
GeneralRe: Default TextBox Text..... Pin
Oakman3-Nov-09 14:26
Oakman3-Nov-09 14:26 
GeneralRe: Default TextBox Text..... Pin
greendragons3-Nov-09 13:11
greendragons3-Nov-09 13:11 
GeneralRe: Default TextBox Text..... Pin
Oakman3-Nov-09 15:58
Oakman3-Nov-09 15:58 
GeneralRe: Default TextBox Text..... Pin
Not Active3-Nov-09 13:29
mentorNot Active3-Nov-09 13:29 
GeneralRe: Default TextBox Text..... Pin
Oakman3-Nov-09 14:26
Oakman3-Nov-09 14:26 
AnswerRe: Default TextBox Text..... Pin
Aman Bhullar3-Nov-09 22:32
Aman Bhullar3-Nov-09 22: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 1:57
greendragons4-Nov-09 1:57 
Questionhow to develop blog websites in joomla Pin
Amit Spadez3-Nov-09 3:31
professionalAmit Spadez3-Nov-09 3:31 
AnswerRe: how to develop blog websites in joomla Pin
Richard MacCutchan3-Nov-09 3:50
mveRichard MacCutchan3-Nov-09 3:50 
AnswerRe: how to develop blog websites in joomla Pin
Abhishek Sur3-Nov-09 5:51
professionalAbhishek Sur3-Nov-09 5:51 
GeneralRe: how to develop blog websites in joomla Pin
Amit Spadez4-Nov-09 0:08
professionalAmit Spadez4-Nov-09 0:08 
QuestionIs it possible to download a media (video or images) files from server and run it on client machine ! Pin
divyesh14322-Nov-09 18:52
divyesh14322-Nov-09 18: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 19:27
protectorChristian Graus2-Nov-09 19: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 21:41
professionalAbhishek Sur2-Nov-09 21: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 8:48
Jayapal Chandran12-Nov-09 8: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 9:42
professionalAbhishek Sur12-Nov-09 9:42 
QuestionComprehensive comparison of document.all and document.getElementById? Pin
DigiFaith2-Nov-09 7:51
DigiFaith2-Nov-09 7:51 
AnswerRe: Comprehensive comparison of document.all and document.getElementById? Pin
Oakman3-Nov-09 13:08
Oakman3-Nov-09 13:08 
QuestionHow to change a title of javascript alert Pin
kKamel2-Nov-09 6:56
kKamel2-Nov-09 6:56 
AnswerRe: How to change a title of javascript alert Pin
Abhishek Sur2-Nov-09 7:13
professionalAbhishek Sur2-Nov-09 7:13 
GeneralRe: How to change a title of javascript alert Pin
kKamel2-Nov-09 7:19
kKamel2-Nov-09 7:19 
GeneralRe: How to change a title of javascript alert Pin
Abhishek Sur2-Nov-09 7:20
professionalAbhishek Sur2-Nov-09 7:20 
GeneralRe: How to change a title of javascript alert Pin
kKamel2-Nov-09 7:22
kKamel2-Nov-09 7: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.