Coder Social home page Coder Social logo

cxcolor's Introduction

#jQuery cxColor

cxColor 是基于 jQuery 的颜色选择器插件,输出值为 HEX 格式的颜色值。

版本:

  • jQuery v1.4.4+
  • jQuery cxColor v1.2

文档:http://code.ciaoca.com/jquery/cxcolor/

示例:http://code.ciaoca.com/jquery/cxcolor/demo/

##【使用方法】

###载入 CSS 文件

<link rel="stylesheet" href="jquery.cxcolor.css">

###载入 JavaScript 文件

<script src="jquery.js"></script> 
<script src="jquery.cxcolor.js"></script>

###调用 cxColor

// 直接调用
$("#element_id").cxColor();

// 自定义参数调用 
$("#element_id").cxColor({
    color:"#009900"
});

##【options 参数说明】

名称 默认值 说明
color "#000000" 默认颜色
※ input 中的 value 值优先级要高级此值。

##【API 接口】

<
名称 说明
show() 显示面板
hide() 隐藏面板
color(hex) 设置/获取颜色值,参数值为 HEX 格式,例:
color() // 获取当前颜色值
color("#ff0000") // 设置颜色值为 #ff0000
reset() 设置默认颜色
clear() 清除颜色

cxcolor's People

Contributors

ciaoca avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.