JavaScript classic effect highlights _ javascript skills

Source: Internet
Author: User
Some classic special effects collected on the Internet. Because of the long length, you can click textarea to copy all the code you want to run. A practical and necessary small script code
The prompt message next to the second mouse, similar to the prompt effect on the page after logon to 163
3. If the text is too long, the excessive text will be displayed as a ellipsis.
Four-scroll Images
5. scripts for receiving keyboard commands
6. gradually fade your text link
Seven tree menus similar to QQ's friends/blacklists ----- recommended
More than eight scripts page flip ------ recommended
Implementation of the transparent layer of divs
Ten JSP pages automatically generate html pages/or any format page ----- recommended

Eleven super powerful form verification-Recommendation
12 beautiful script calendar
Enter 13th and exit the page for various effects!
14. The table is selected to change the color.
15. Effect of the pop-up prompt
Switch between sixteen Images
Implementation of 17 DIV _ circular edges and rounded corners
18-hop menu
19 capture photos on the page
20 client Static Page play pages

21. Good Stuff similar to google's personalized page ------ netizen 155120
22nd beautiful table
23th classic shadow float layer ------ user marvellous -------- recommended
Code for Running code twenty-four ------ User: Lenvo
25th sunken text ------------ netizen: Lenvo
26 beautiful imitation flash menu --- User: Lenvo
17th custom container and font size --- User: greengnn
28th super REAL video player --- User: leaf52
On the website forum, the shortcut key used to submit the form --- User: greengnn
Thirty accesskey submitted --- User: greengnn
News advertisement image switching effect + description --- User: greengnn
Menu special effects --- netizen: greengnn
The drop-down menu using CSS and JS in --- User: greengnn

A practical and necessary small script code:

Script 1: automatically play audio after entering the home page

Script 2: Enter the homepage and click

Script
Self. moveTo (0, 0)
Self. resizeTo (screen. availWidth, screen. availHeight)
Script

Script 3: displays the current time script

3YearMonth 4

13. Various effects of exiting the page:

Go to the page
Launch page
This is some special effects of page loading and calling. Duration indicates the duration of the special effect, in seconds. Transition indicates which special effect is used. The value ranges from 1 to 23:
0 rectangular narrowing
1. rectangular enlargement
2 rounded down
3. Circular Expansion
4. Refresh from bottom to top
Refresh from top to bottom
6-left-right refresh
7. right-to-left refresh
8 vertical blinds
9 horizontal blinds
10 misplaced horizontal blinds
11 misplaced vertical blinds
Spread
Refresh from around 13 to the center
14. Refresh from center to left
15.
16 up to the middle
17 bottom right to top left
18 top right to bottom left
19 upper left to lower right
20 bottom left to top right
21 horizontal bars
22 vertical bars
23 or more 22 types of random selection

14. The table is selected to change the color:

Run code box
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312 "> <ptml> <pead> </pead> <title> unlimited Mapabc Map </title> <script language =" JavaScript "> var searchResult = new Array (); // when the mouse slides, the background color is displayed. function borderize (what, color, color2) {what. style. borderColor = color what. style. backgroundColor = color2} function borderize_on (e) {if (document. all) soure3 = event. srcElement else if (document. getElementById) sou Rce32.16e.tar get if (source3.className = "zuo22") {borderize (soure3, "#999999", "# F6F6F8")} else {while (source3.tagName! = "TABLE") {soure3 = document. getElementById? Source3.parentNode: source3.parentElement if (source3.className = "zuo22") borderize (soure3, "#999999", "# F6F6F8") }}function borderize_off (e) {if (document. all) source4 = event. srcElement else if (document. getElementById) source4=e.tar get if (source4.className = "zuo22") borderize (source4, "white", "white") else {while (source4.tagName! = "TABLE") {source4 = document. getElementById? Source4.parentNode: source4.parentElement if (source4.className = "zuo22") borderize (source4, "white", "white ")}}} script <body> <table width = "96%" border = "0" onMouseOver = "borderize_on (event)" onMouseOut = "borderize_off (event) "class =" zuo22 "onclick =" javascript: clickfun ('000000 ') "> <TR> <TD> move the mouse over </TD> </TR> <TD> move the mouse over come over </TD> <TD> move the mouse over </TD> </TR> <TD> move the mouse over </TD> <TD> move the mouse over come over </TD> </TR> <TD> move the mouse over </TD> </TR> </ table> </body> </ptml>

15. Effects of the pop-up prompt:

Run code box
<Html xmlns =" http://www.w3.org/1999/xhtml "> <Head> <meta http-equiv =" Content-Type "content =" text/html; charset = gb2312 "/> <title> cao888 --- tip </title> </pead> <body> <script language = javascript> var cao_x, cao_y; function cao888 () {this. display = display;} function display () {document. write ("<table align = center> <tr> <td> <button style = 'width: 100px; height: 30px; font-size: 12px; border: 1px solid # A4B3C8; background-color: green; 'Type = button onclick = document. getElementById ('cao1 '). style. display = 'block' onfocus = this. blur ()> CAO message </button> </td> </tr> </table> "); document. write ("<p id = 'cao1 'style = 'font-size: 12px; position: absolute; display: none; text-align: center; overflow: visible '> "); document. write ("<p style = 'position: absolute; top: expression (body. clientHeight-300)/2); left: expression (body. clientWidth-200)/2); width: 200px; height: 180px; background-color: # dbdbdb; border: 1px solid # cccccccc; '> "); document. write ("<table width = 200 height = 20 bgcolor = green onmousedown = 'cao _ x = event. A x-parentNode.style.pixelLeft; cao_y = event. y-parentNode.style.pixelTop; setCapture (); 'onmouseup = 'releasecapture (); 'onmousemove = 'caomove (this. parentNode) 'style = 'cursor: move; '> "); document. write ("<tr align = center>"); document. write ("<td align = left> prompt: CAO888 </td>"); document. write ("</tr>"); document. write ("</table>"); document. write ("<br> CAO, error... <br> [OK] "); document. write ("</p>"); document. write ("</p>");} function caoMove (obj) // drag the Implementation Layer {if (event. button = 1) {var caoX = obj. clientLeft; var caoY = obj. clientTop; obj. style. pixelLeft = caoX + (event. A x-cao_x); obj. style. pixelTop = caoY + (event. y-cao_y);} the script <script language = javascript> var mycao = new cao888 (); mycao. display (); script </body> </ptml>

Switch between sixteen images:

Run code box
<Script language = JavaScript> <! -- Var imgUrl = new Array (); var imgLink = new Array (); var adNum = 0; var jumpUrl =" http://sports.tom.com/ "; ImgLink [1] =" http://sports.tom.com/ Gnzt/2005yg/"; imgLink [2] =" http://sports.tom.com/ Zhty/"; imgUrl [1] =" http://img.sports.tom.com/img/assets/200509/050927071818sportsgnzt200592701.jpg "; ImgUrl [2] =" http://img.sports.tom.com/img/assets/200509/050927075953zt20050926107.jpg "; Var imuple = new Array (); var j = 0; for (I = 1; I <= imgUrl. length-1; I ++) {if (imgLink [I]! = "") {J ++;} else {break;} function playTran () {if (document. all) imgInit. filters. revealTrans. play () ;}var key = 0; function nextAd () {if (adNum <j) adNum ++; else adNum = 1; if (key = 0) {key = 1;} else if (document. all) {imgInit. filters. revealTrans. transition = 6; imgInit. filters. revealTrans. apply (); playTran ();} document. images. imgInit. src = imgUrl [adNum]; jumpUrl = imgLink [adNum]; theTimer = setTimeout ("nextA D () ", 7000);} function goUrl () {jumpTarget = '_ blank'; if (jumpUrl! = '') {If (jumpTarget! = '') Window. open (jumpUrl, jumpTarget); else location. href = jumpUrl; }}// --> script </body> </ptml>

17 DIV _ rounded corner:

Run code box

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.