JavaScript Bible, Gold Edition part 204

JavaScript Bible, Gold Edition part 204. This book will bring programmers and non-technical professionals, including casual programmers and scripters, painlessly up to speed on all aspects of mastering JavaScript. Key topics include programming fundamentals, JavaScript language elements and how to use them effectively, and how to easily and efficiently add powerful new functionality to HTML documents and Java applets. | CD-522 Part VI Appendixes Listing 27-5 continued SCRIPT LANGUAGE JavaScript var timeoutID var rulesValues all cols groups none rows function rotateBorder i myTABLE .rules rulesValues i myCAPTION .innerHTML rulesValues i i i 0 i timeoutID setTimeout rotateBorder i 2000 function stopRotate clearTimeout timeoutID myTABLE .rules all myCAPTION .innerHTML all SCRIPT HEAD BODY H1 Property H1 HR FORM NAME controls FIELDSET LEGEND Cycle Table Rule Visibility LEGEND TABLE WIDTH 100 CELLSPACING 20 TR TD INPUT TYPE button VALUE Cycle onClick rotateBorder 0 TD TD INPUT TYPE button VALUE Stop onClick stopRotate TD TR TABLE FIELDSET TABLE FIELDSET FORM HR TABLE ID myTABLE CELLPADDING 5 BORDER 3 ALIGN center CAPTION ID myCAPTION Default CAPTION COLGROUP SPAN 1 COLGROUP SPAN 3 THEAD ID myTHEAD TR TH River TH Outflow TH Miles TH Kilometers TR THEAD TBODY TR TD Nile TD Mediterranean TD 4160 TD 6700 TR TR TD Congo TD Atlantic Ocean TD 2900 TD 4670 Appendix F Examples from Parts III and IV CD-523 TR TR TD Niger TD Atlantic Ocean TD 2600 TD 4180 TR TR TD Zambezi TD Indian Ocean TD 1700 TD 2740 TR TABLE BODY HTML tBodies NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example Use The Evaluator Chapter 13 to access the tBodies array and reveal the number of rows in the one TBODY segment of the demonstrator table. Enter the following statement into the top text box myTable .tBodies 0 . Methods moveRow sourceRowIndex destinationRowIndex NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example If you want to shift the bottom row of a table to the top you can use the shortcut reference to the last item s index value -1 for the first parameter var movedRow -1 0 CD-524 Part VI Appendixes TBODY TFOOT and THEAD Element Objects Properties vAlign NN2 NN3 NN4 NN6 .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
84    200    1    31-05-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.