Đang chuẩn bị liên kết để tải về tài liệu:
jQuery UI 1.6 The User Interface Library for jQuery phần 5

Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG

Để làm nổi bật tính cách ích gọi là luận án, chúng tôi có thể mở rộng Quốc tế ví dụ trước để cho phép người thăm để chọn Bất cứ ngôn ngữ có sẵn của bảng chọn ngày. Trong một trang mới trong trình soạn thảo văn bản của bạn, thêm các luật sau: | Chapter 6 To highlight how useful these callback properties are we can extend the previous internationalization examples to allow visitors to choose any available language of the date picker. In a new page in your text editor add the following code DOCTYPE HTML PUBLIC - W3C DTD HTML 4.01 EN http www.w3.org TR html4 strict.dtd html lang en head link rel stylesheet type text css href jquery.ui-1.5b4 themes flora flora.datepicker.css link rel stylesheet type text css href styles intlPicker.css meta http-equiv Content-Type content text html charset utf-8 title jQuery UI Date Picker Example 8 title head body a id uk href title English a a id france href title Frangais a div class row label Enter a date label input id date div script type text javascript src jqueryui1.6rc2 jquery-1.2.6.js script script type text javascript src jqueryui1.6rc2 ui ui.core.js script script type text javascript src jqueryui1.6rc2 ui ui.datepicker.js script script type text javascript src jqueryui1.6rc2 ui i18n ui.datepicker-fr.js script script type text javascript define function to be executed on document ready function flag variable var locale en a .click function this.id france locale en locale fr function setLocale return locale fr .datepicker.regional fr .datepicker.regional create the date picker date .datepicker beforeShow setLocale script body html 157 Date Picker This can be saved as datePicker8.html. We have wrapped the label and input elements from the previous examples for styling purposes. We also added two new link elements which will be used as buttons to select the language of the date picker. We ve also linked to the French language pack as we did before. The first thing we do in the code in this example is set the locale variable that will be used to tell the date picker which language it should display. We set it to en as the default value. Next we set a click handler which will react to either of the buttons being clicked. The anonymous function looks at the id attribute .

Đã 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.