Web design common JavaScript Classic code

Source: Internet
Author: User
Keywords Web Design JavaScript

Intermediary transaction SEO diagnosis Taobao guest Cloud host technology Hall

1. Add to Favorites

2. Let hyperlinks not appear underlined

3. Disable right mouse button action

4. Set this page as the homepage

!--http://your website-->
onclick= "this.style.behavior= ' url (#default #homepage)";
This.sethomepage (' Your website name '); > Set homepage

5. Keep the text rolling

scrolling Text

6. Record and display the last modified time of a Web page

7. Close the current window

8. Close the current page in 5 seconds

9. Load the specified Web page in 2 seconds



10. Holiday Countdown

11. Reflection effect in water

12. Slowly getting bigger window

& nbsp;

enter  

13. ie icon change IE address bar

We have to make a 16*16 icon (image file), Save as Index.ico. Upload this icon file to the root directory and add the following code to the home page :

14. Click the button to print out the current page

15. Click the button ' Save as ' current page

onclick= "Document.all.button.ExecWB (4,1)" "
Width=0
Height=0
Classid= "CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"

16. Show System Current date

17. Show different greetings in different time periods

 
Reprint please indicate the source: HTTP://WWW.CODE-123.COM/WL bc/asp/list_1.html, thank you!

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.