嗨朋友们,我在使用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>
请帮帮我
提前致谢 ...:)