1. Text box Focus problem OnBlur: This event occurs when the input focus is lost OnFocus: When the input gets focus, the file is generated Onchange: This event occurs when the literal value changes Onselect: When the text is highlighted, the file is generated <input type= "text" value= "Qiang" onfocus= "if (value== ' Qiang ') {value= '}" onblur= "if (value== ') {value= ' qiang '} ' > Text disappears when clicked, and text appears when you lose focus
2. The special color of the Web button <input Type=button name= "Submit1" value= Qiang "size=10" Class=s02 Style= "Background-color:rgb (235,207,22)" > 3. Color change when mouse is moved <input type= "Submit" value= "Find It" name= "B1" onmouseout=this.style.color= "Blue" Onmouseover=this.style.color= "Red" class= "button" > 4. Flat button <input type=submit value= Subscription style= "border:1px Solid: #666666; height:17px; width:25pt; font-size:9pt; Background-color: #E8E8FF; Color: #666666 "Name=" >
7. Change the window to a specified size <script> Window.resizeto (300,283); </script> 8. Make text scroll up and down <marquee direction=up scrollamount=1 scrolldelay=100 onmouseover= ' this.stop () ' onmouseout= ' This.start () '
9. Status bar shows the page status <base onmouseover= "window.status= ' website construction http://www.admin5.cn/'; return true" > 10. You can click on the text to implement the selection of radio option <br> <input type= "Radio" name= "Regtype" value= "A03" id= "A03" > <label for= "A03" > Couple: Register two accounts at a time </label> <br> 11. You can write the onclick event in a text field 12. Print </a> Print web pages <a href= ' javascript:window.print () ' > 13. Line Type input Box <input type= "text" name= "key" size= "value=" keyword Onfocus=this.select () onmouseover=this.focus ()
class= "line" > 14. Display document last Modified date <script language=javascript> function Hi (str) { document.write (document.lastmodified)
alert ("HI" +str+ "!") } </script> 15. You can trigger an event when you move the mouse over text <html> <head> <script language= LiveScript <!--hiding function hello () { alert ( "Hello!"); } </script> </head> <body> <a href= "onmouseover=" Hello () >link</a> </body> </html> 16. You can determine the page color based on the options on the page <html> <head> <title >background.html</title> </head> <script> <!--
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.