jquery.ui.progressbar 중국어 문서


<?xml version="1.0" encoding="UTF-8" ?>
<!--
:
1. , , ,
2. , , .
3. XML , , ( , , ), <![CDATA[ ]]>
4. , <translate /> .
5. .
-->
<project>
<translate item="progressbar" version="7.1">
<translators>
<translator nickname="selfimpr" name=" " mail="[email protected]" homepage="http://blog.csdn.net/lgg201" qq="285821471" />
</translators>
<relatives>
<depend isitem="false">
<name><![CDATA[jquery]]></name>
<description><![CDATA[jquery ]]></description>
<url><![CDATA[http://docs.jquery.com]]></url>
</depend>
<depend isitem="false">
<name><![CDATA[jquery.ui.core]]></name>
<description><![CDATA[jquery.ui ]]></description>
<url><![CDATA[http://jqueryui.com/demos]]></url>
</depend>
</relatives>
<overview>
<original><![CDATA[
. CSS .
, . , ( ) spinner animation
]]></original>
</overview>
<options>
<option name="value" default="0">
<types>
<type name=" ">
</type>
</types>
<description><![CDATA[ .]]></description>
<demos>
<demo>
<comment><![CDATA[ ]]></comment>
<code><![CDATA[$('.selector').progressbar({value: 37});]]></code>
</demo>
<demo>
<comment><![CDATA[ ]]></comment>
<code><![CDATA[var value = $('.selector').progressbar('option', 'value');
]]></code>
</demo>
<demo>
<comment><![CDATA[ ]]></comment>
<code><![CDATA[$('.selector').progressbar('option', 'value', 37);]]></code>
</demo>
</demos>
</option>
</options>
<events>
<event name="change">
<trigger><![CDATA[processbar value ]]></trigger>
<arguments>
<argument name="event">
<![CDATA[ .]]>
</argument>
<argument name="ui">
<![CDATA[JQuery ui ]]>
</argument>
</arguments>
<description><![CDATA[ : progressbarchange]]></description>
<demos>
<demo>
<comment><![CDATA[ ]]></comment>
<code><![CDATA[
$("#progressbar").progressbar({
change: function(event, ui) {
//this event.target
alert(' 1%');
}
});
]]></code>
</demo>
<demo>
<comment><![CDATA[ . , .]]></comment>
<code><![CDATA[
$("#progressbar").bind('progressbarchange', function(event, ui) {
//this event.target
alert(' 1%');
});
]]></code>
</demo>
</demos>
</event>
</events>
<methods>
<method name="destroy">
<description><![CDATA[ , .]]></description>
<demos>
<demo>
<code><![CDATA[$("#progressbar").progressbar('destroy');]]></code>
</demo>
</demos>
</method>
<method name="disable">
<description><![CDATA[ , enable .]]></description>
<demos>
<demo>
<code><![CDATA[$(".selector").progressbar('disable');]]></code>
</demo>
</demos>
</method>
<method name="enable">
<description><![CDATA[ , disable .]]></description>
<demos>
<demo>
<code><![CDATA[$(".selector").progressbar('enable');]]></code>
</demo>
</demos>
</method>
<method name="option">
<arguments>
<argument name="optionName " type=" "><![CDATA[ ]]></argument>
<argument name="value" type=" "><![CDATA[ .]]></argument>
</arguments>
<description><![CDATA[ , , . , , , . ]]></description>
<demos>
<demo>
<code><![CDATA[$(".selector").progressbar('option', optionName[, value]);]]></code>
</demo>
</demos>
</method>
<method name="value">
<description><![CDATA[ value ]]></description>
<demos>
<demo>
<code><![CDATA[$(".selector").progressbar('value'[, value]);]]></code>
</demo>
</demos>
</method>
</methods>
<theme><![CDATA[
JQuery .
:ui.progressbar.css
ui-progressbar:
ui-progressbar-value: .
]]></theme>
<demos>
<demo>
<description><![CDATA[
: HTML , .
]]></description>
<code><![CDATA[
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Progressbar - Default functionality</title>
<link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.3.2.js"></script>
<script type="text/javascript" src="../../ui/ui.core.js"></script>
<script type="text/javascript" src="../../ui/ui.progressbar.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<script type="text/javascript">
$(function() {
var current_value = 0;
change = function() {
$("#progressbar").progressbar('option', 'value', current_value);
current_value ++;
if(current_value <= 100) {
setTimeout('change()', 200);
}
};
progressbar_dynamic = function() {
progressbar_init();
change();
};
progressbar_init = function() {
$("#progressbar").progressbar({
value: current_value,
change: function(event, ui) {
$('#number').text($(this).progressbar('option', 'value'));
document.getElementById('number').style.position = 'relative';
document.getElementById('number').style.left = $(this).progressbar('option', 'value') * ($('.ui-progressbar').width() / 100) - 5;
}
});
};
progressbar_destroy = function() {
$("#progressbar").progressbar('destroy');
};
progressbar_disable = function() {
$("#progressbar").progressbar('disable');
};
progressbar_enable = function() {
$("#progressbar").progressbar('enable');
};
progressbar_option = function() {
var option_name = $('#option_name').val();
var option_value = $('#option_value').val();
if(option_value) {
$("#progressbar").progressbar('option', option_name, option_value);
} else {
$('#option_value').val($("#progressbar").progressbar('option', option_name));
}
};
progressbar_value = function() {
var value_value = $('#value_value').val();
if(value_value) {
$("#progressbar").progressbar('value', value_value);
} else {
$('#value_value').val($("#progressbar").progressbar('option', 'value'));
}
};
});
</script>
<style type="text/css">
input{height: 22px; margin: 1px 2px;}
input[type=button]{border: none; width: 80px;}
input[type=text]{border: 1px solid #BBBBBB; line-height: 20px;}
#number{width: 5px;}
</style>
</head>
<body>
<br /><br />
<div id="number">&nbsp;</div>
<div id="progressbar"></div>
<br /><br />
<input type="button" value="init" onclick="progressbar_init();" />
&nbsp;&nbsp;
<input type="button" value="destroy" onclick="progressbar_destroy();" />
&nbsp;&nbsp;
<input type="button" value="disable" onclick="progressbar_disable();" />
&nbsp;&nbsp;
<input type="button" value="enable" onclick="progressbar_enable();" />
&nbsp;&nbsp;
<input type="button" value="dynamic" onclick="progressbar_dynamic();" />
<br />
<input type="button" value="option" onclick="progressbar_option();" />
: <input type="text" id="option_name" />
: <input type="text" id="option_value" />
<br />
<input type="button" value="value" onclick="progressbar_value();" />
: <input type="text" id="value_value" />
<br />
<hr />
init:
destroy:
disable:
enable:
dynamic:
option: option
value: value
</body>
</html>
]]></code>
</demo>
</demos>
<summarize><![CDATA[
progressbar value , value value . value ..
]]></summarize>
</translate>
</project>
xml 형식 파일 로 저장 합 니 다.인 코딩 변환 에 주의 하 세 요.

좋은 웹페이지 즐겨찾기