2011-01-16 10 views
3

こんにちは私は、ボタンにjqueryuiボタンのプロパティを与えるコードを持っていますが、ページを開いたときには表示されません。ここ はjqueryののコードである:ここでボタンはjquery UIボタンの効果を受け取りません

function main(){ 
$("#showhid").button({ 
    icons:{primary:'ui-icon-disk'}, 
    text:false}); 

$("#showhid").click(function(event){ 
    alert(1); 
}); } 

は、ページのコードです:

<HEAD> 
<LINK href="http://dev.karinapp.com/modules/appgen/css/batute.css" id="css_batute_4" rel="stylesheet" type="text/css"/> 
<LINK href="http://dev.karinapp.com/modules/batute/css/main.css" id="css_batute_22" rel="stylesheet" type="text/css"/> 
<LINK father="*head" href="/modules/appgen/css/batute.css" id="moveSel_css" rel="stylesheet" type="text/css"/><LINK father="*head" href="/modules/appgen/css/batute.css" id="moveSel_css" rel="stylesheet" type="text/css"/> 
<SCRIPT id="script0" src="http://dev.karinapp.com/modules/general/scripts/jQuery.js" type="text/javascript"><!--empty--></SCRIPT> 
<SCRIPT id="script1" src="http://dev.karinapp.com/modules/general/scripts/ui/jquery.ui.core.js" type="text/javascript"><!--empty--></SCRIPT> 
<SCRIPT id="script2" src="http://dev.karinapp.com/modules/general/scripts/ui/jquery.ui.widget.js" type="text/javascript"><!--empty--></SCRIPT> 
<SCRIPT id="script3" src="http://dev.karinapp.com/modules/general/scripts/ui/jquery.ui.button.js" type="text/javascript"><!--empty--></SCRIPT> 
<SCRIPT id="script4" src="http://www.karinapp.com/modules/appgen/scripts/batute.js" type="text/javascript"><!--empty--></SCRIPT> 
<SCRIPT id="script5" type="text/javascript">window.onload=function(){ 
     main();}</SCRIPT> 
</HEAD> 

答えて

関連する問題