嗨朋友我在使用jQuery Colorpicker
工具时遇到了一些问题。它工作正常,但根据我的要求,我不想在用户点击altField's
时打开彩色托盘,也希望当用户点击altField
时打开的color-pallet
关闭。我正在添加所有包含在head部分的文件,请告诉我何时在这些文件中修改以实现目标
主管部分
<script src="script/jquery.js" type="text/javascript" language="javascript"></script>
<script src="script/jquery-ui.js"></script>
<link href="css/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="script/jquery.colorpicker.js"></script>
<link href="css/jquery.colorpicker.css" rel="stylesheet" type="text/css"/>
HTML
<div id="name">
<input type="hidden" class="cp-basic-name" value="000000"/>
<img src="images/colou-pallet.png" id="cp-hidden-input-open-name" alt="" />
<script>
$(function() {
var dialogHidden = $('.cp-basic-name').colorpicker({
altField: '.col,foc',
altProperties: 'color',
altAlpha: true,
alpha: true
});
$('#cp-hidden-input-open-name').click(function(e) {
e.stopPropagation();
dialogHidden.colorpicker('open');
});
});
</script>
</div>
请帮帮我们
提前致谢...:)