快捷登录,享 免费下载
首页 > 教程资讯 > 教程详情

Absolute Color Picker的教程

补充锦囊 完美下载小客服 2021-03-30
文章分享
软件首页

完美者(wmzhe.com)网站以软件下载为基础,改版后的网站对功能性板块进行扩充,以期能够解决用户在软件使用过程中遇见的所有问题。网站新增了“软件百科”、“锦囊妙技”等频道,可以更好地对用户的软件使用全周期进行更加专业地服务。

Absolute Color Picker一个国外出品的免费取色器,它能够把你见到的所有颜色都转换成16进制表示。这个对于网页设计师和网页管理员来说非常有用。毕竟采集颜色往往比自己调色容易的多。而这个软件最突出的地方是带有超多数量的不同调色板。

"锦囊妙技"栏目是聚合全网软件使用的技巧或者软件使用过程中各种问题的解答类文章,栏目设立伊始,小编欢迎各路软件大神朋友们踊跃投稿,在完美者平台分享大家的独门技巧。

本站文章素材来源于网络,大部分文章作者名称佚失,为了更利于用户阅读和使用,根据需要进行了重新排版和部分改编,本站收录文章只是以帮助用户解决实际问题为目的,如有版权问题请联系小编修改或删除,谢谢合作。

Absolute Color Picker

Absolute Color Picker

软件大小:1.28 MB

高速下载

相关问答

更多
  • 有谁能给我做个京东商城右侧的那种选项卡切换的Javascript效果~

    详细请看压缩包Demo。样式和结构是直接复制的,所以看起来应该一样。样式有部分手工调整。样式部分可以删减那些属于页面其它元素的内容,这个我没做。离线版可以离线查看在线版需联网。是用心做的,请采纳。

  • 关于position:absolute!!

    margin-left是相对于上一个div进行定位的。position:absolute是绝对定位,一般用left,right,top等进行控制。你用了绝对,又用了margin-left,也就是说3的位置会相对于2绝对定位,因为4是绝对定位,4是相对定位,所以4不受3的影响,而是会跟着2,但是4前面的元素3是绝对的,所以4的margin-top:100px不起作用。我把你3的margin-top改为了50px,你可以看出3就是被抽出来的的一层,相对高度又按2计算了,优先级高于下面的4,所以它挡住了4。我是这么理解的,不知道对不对,但是一般相对和绝对是不混用的,很不好理解。

  • FreeTextBox的问题 高手来

    一、使用方法1.先把freetextbox.dll添加到项目中2.把 - ftb.colorpicker.aspx - ftb.imagegallery.aspx - ftb.inserttable.aspx从文件夹HelperScripts复制出来,放到外面与 - test.aspx (测试)同等级目录,(不这么做,插入背景色,图片,表格就不好使)3.把images文件夹放到test.aspx (测试)同等级目录下,来存放上传的图片.4.在test.aspx 中,加图片的路径<FTB:FreeTextBox id="FreeTextBox1" runat="server" Width="700" ButtonPath="\images\ftb\office2003\"/>this.FreeTextBox1.Text 这个就是FTB中你输入的文本的内容,这是带HTML标记的this.FreeTextBox1.HtmlStrippedText 这个是将HTML标记去掉的文本5.写入数据库在CSDN上看到朋友们说怎么把FreeTextBox内容写入数据库中我做了一下.就是把所有产生的HTML代码都插入数据库的一个字段中可以做一个新闻表news字段ID(自增) content addtime(getdate)private void Page_Load(object sender, System.EventArgs e){// Put user code to initialize the page hereif (!IsPostBack){SqlConnection myConn = new SqlConnection("server=(local);database=mm;uid=sa;pwd=123");SqlCommand myCmd = new SqlCommand("select * from test where id=2",myConn);myConn.Open();SqlDataReader myDr;myDr=myCmd.ExecuteReader();myDr.Read();Response.Write(myDr["content"].ToString());myDr.Close();myConn.Close();}}private void Button1_Click(object sender, System.EventArgs e){SqlConnection myConn = new SqlConnection("server=(local);database=mm;uid=sa;pwd=123");SqlCommand myCmd = new SqlCommand("insert into test (content) values('"+FreeTextBox1.Text+"')",myConn);myConn.Open();myCmd.ExecuteNonQuery();myConn.Close();} 二、注意1、在web.config中system.web节加入: <pages validateRequest="false"/>否则会出现如下错误:从客户端(Content="<FORM language=javas...")中检测到有潜在危险的 Request.Form 值。说明: 请求验证过程检测到有潜在危险的客户端输入值,对请求的处理已经中止。该值可能指示危及应用程序安全的尝试,如跨站点的脚本攻击。通过在 Page 指令或 配置节中设置 validateRequest=false 可以禁用请求验证。但是,在这种情况下,强烈建议应用程序显式检查所有输入。异常详细信息: System.Web.HttpRequestValidationException: 从客户端(Content="<FORM language=javas...")中检测到有潜在危险的 Request.Form 值。2、如果你想对其他页面要进行从客户端(Content="<FORM language=javas...")中检测,你就麻烦一点,在调用freetextbox的页面上添加 validateRequest="false" ,如:<%@ Page language="c#" validateRequest="false" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="bizflat.WebForm1" %>三、实现机制刚开始试用FTB2.0的时候,感觉FTB真的很神,居然可以在网页状态实现编辑过程的What you see is what you get。看完FTB的文档(其实也不是很多的东西,估计就是用个NDOC或者什么类似的工具生成的SDK文档)又仔细试做了几个程序,觉得FTB的实现思路不复杂,但十分巧妙。它通过FTB这个中间部件将客户端(浏览器)的程序(javascript代码)和后台程序(C#写的aspx等ASP.NET代码)紧密结合,从而实现了这种所见即所得的效果。FTB的结构主要有三个命名空间组成:FreeTextBoxControls,FreeTextBoxControls.Design和FreeTextBoxControls.Support。 使用得最多的是FreeTextBoxControls,基本上用到的界面部件都来自于这里,例如ToolBar上每个功能Button可以在这里找到映射,而每个Button又对应着javascrip中的一个函数功能。例如:下划线这个功能,有个Underline的类(继承于ToolbarButton)实现,而这个类实际调用客户端的一段javascript代码FTB_Underline(在FreeTextBox-ToolbarItemsSrcipt.js中)。function FTB_Underline(ftbName) { FTB_Format(ftbName,'underline'); 如果再深究下去,仔细跟踪下这段js的代码又可以它调用FTB_Format这段代码(在FreeTextBox-MainScript.js中)。function FTB_Format(ftbName,commandName) { editor = FTB_GetIFrame(ftbName); if (FTB_IsHtmlMode(ftbName)) return; editor.focus(); editor.document.execCommand(commandName,'',null);}它正是通过document的execCommand方法来实现效果的,查MSDN文挡可以发现它对应执行的正是Underline的命令参数。execCommand可以执行的命令参数:Command Identifiers2D-PositionAllows absolutely positioned elements to be moved by dragging.AbsolutePositionSets an element's position property to "absolute."BackColorSets or retrieves the background color of the current selection.BlockDirLTRNot currently supported.BlockDirRTLNot currently supported.BoldToggles the current selection between bold and nonbold.BrowseModeNot currently supported.ClearAuthenticationCacheClears all authentication credentials from the cache. Applies only to execCommand.CopyCopies the current selection to the clipboard.CreateBookmarkCreates a bookmark anchor or retrieves the name of a bookmark anchor for the current selection or insertion point.CreateLinkInserts a hyperlink on the current selection, or displays a dialog box enabling the user to specify a URL to insert as a hyperlink on the current selection.CutCopies the current selection to the clipboard and then deletes it.DeleteDeletes the current selection.DirLTRNot currently supported.DirRTLNot currently supported.EditModeNot currently supported.FontNameSets or retrieves the font for the current selection.FontSizeSets or retrieves the font size for the current selection.ForeColorSets or retrieves the foreground (text) color of the current selection.FormatBlockSets the current block format tag.IndentIncreases the indent of the selected text by one indentation increment.InlineDirLTRNot currently supported.InlineDirRTLNot currently supported.InsertButtonOverwrites a button control on the text selection.InsertFieldsetOverwrites a box on the text selection.InsertHorizontalRuleOverwrites a horizontal line on the text selection.InsertIFrameOverwrites an inline frame on the text selection.InsertImageOverwrites an image on the text selection.InsertInputButtonOverwrites a button control on the text selection.InsertInputCheckboxOverwrites a check box control on the text selection.InsertInputFileUploadOverwrites a file upload control on the text selection.InsertInputHiddenInserts a hidden control on the text selection.InsertInputImageOverwrites an image control on the text selection.InsertInputPasswordOverwrites a password control on the text selection.InsertInputRadioOverwrites a radio control on the text selection.InsertInputResetOverwrites a reset control on the text selection.InsertInputSubmitOverwrites a submit control on the text selection.InsertInputTextOverwrites a text control on the text selection.InsertMarqueeOverwrites an empty marquee on the text selection.InsertOrderedListToggles the text selection between an ordered list and a normal format block.InsertParagraphOverwrites a line break on the text selection.InsertSelectDropdownOverwrites a drop-down selection control on the text selection.InsertSelectListboxOverwrites a list box selection control on the text selection.InsertTextAreaOverwrites a multiline text input control on the text selection.InsertUnorderedListToggles the text selection between an ordered list and a normal format block.ItalicToggles the current selection between italic and nonitalic.JustifyCenterCenters the format block in which the current selection is located.JustifyFullNot currently supported.JustifyLeftLeft-justifies the format block in which the current selection is located.JustifyNoneNot currently supported.JustifyRightRight-justifies the format block in which the current selection is located.LiveResizeCauses the MSHTML Editor to update an element's appearance continuously during a resizing or moving operation, rather than updating only at the completion of the move or resize.MultipleSelectionAllows for the selection of more than one site selectable element at a time when the user holds down the SHIFT or CTRL keys.OpenNot currently supported.OutdentDecreases by one increment the indentation of the format block in which the current selection is located.OverWriteToggles the text-entry mode between insert and overwrite.PasteOverwrites the contents of the clipboard on the current selection.PlayImageNot currently supported.PrintOpens the print dialog box so the user can print the current page.RedoNot currently supported.RefreshRefreshes the current document.RemoveFormatRemoves the formatting tags from the current selection.RemoveParaFormatNot currently supported.SaveAsSaves the current Web page to a file.SelectAllSelects the entire document.SizeToControlNot currently supported.SizeToControlHeightNot currently supported.SizeToControlWidthNot currently supported.StopNot currently supported.StopImageNot currently supported.StrikeThroughNot currently supported.SubscriptNot currently supported.SuperscriptNot currently supported.UnBookmarkRemoves any bookmark from the current selection.UnderlineToggles the current selection between underlined and not underlined.UndoNot currently supported.UnlinkRemoves any hyperlink from the current selection.UnselectClears the current selection. 基本上每个命令参数都可以在FTB的FreeTextBoxControls中找到对应的实现类,如果觉得有些没有实现,自己参照已经实现的功能来增加也十分简单和方便。 FTB还提供了公开的接口,例如继承于ToolbarButton可以实现对应的工具按钮,继承于ToolbarDropDownList则实现下拉式选择(如选择字体那种),对应javascript的方法只须传递对应的方法名字符串给类即可,自己写的javascript可以放在js中,也可以放在 ScriptBlock的字符串参数里面,前者前端查看源码看不到,后者则将整个函数源码传回,一切都十分公开和方便。 这种思路是否也和ASP.NET的思路类似? 由于javascript可以被多种浏览器支持(估计有些小兼容问题,可以通过javascript来兼容),因此FTB可以在多种环境下正常工作。现在用的这个blog系统(.Text)也用了FTB,但版本是1.6.3.26037(汉化版),有兴趣可以在发表文章的地方查看网页源代码看看,就会发现好多的FTB_XXX的javascript函数。这些在2.0已经全部集中放到FreeTextBox-ToolbarItemsSrcipt.js和 FreeTextBox-MainScript.js中了,应该说这样比较归一些。 如果担心FTB的免费协议对商业用途有些影响的话,自己根据这个思路来开发一个适合自己产品用的所见即所得编辑器控件应该也不是难事。

  • JavaScript实现的日期控件具体代码

    复制代码 代码如下:<html> <head> <style> <!-- .wr{font-size: 12pt; line-height: 22px} .wr1 {  FONT-SIZE: 12px; LINE-HEIGHT: 200%} .wr2 {  FONT-SIZE: 14px; LINE-HEIGHT: 200%} .wr3 {  FONT-SIZE: 12px} .wr4 {  FONT-SIZE: 12px; LINE-HEIGHT: 150%} // --> </style> <title>日期自动输入控件</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <style type="text/css"> .date-picker-wp { display: none; position: absolute; background: #f1f1f1; left: 40px; top: 40px; border-top: 4px solid #3879d9; } .date-picker-wp table { border: 1px solid #ddd; } .date-picker-wp td { background: #fafafa; width: 22px; height: 18px; border: 1px solid #ccc; font-size: 12px; text-align: center; } .date-picker-wp td.noborder { border: none; background: none; } .date-picker-wp td a { color: #1c93c4; text-decoration: none; } .strong {font-weight: bold} .hand {cursor: pointer; color: #3879d9} </style> <script type="text/javascript"> var DatePicker = function () { var $ = function (i)  {    return document.getElementById(i) }, addEvent = function (o, e, f) {o.addEventListener ? o.addEventListener(e, f, false) : o.attachEvent('on'+e, function(){f.call(o)})}, getPos = function (el) { for (var pos = {x:0, y:0}; el; el = el.offsetParent) { pos.x += el.offsetLeft; pos.y += el.offsetTop; } return pos; }; var init = function (n, config) { window[n] = this; Date.prototype._fd = function () {var d = new Date(this); d.setDate(1); return d.getDay()}; Date.prototype._fc = function () {var d1 = new Date(this), d2 = new Date(this); d1.setDate(1); d2.setDate(1); d2.setMonth(d2.getMonth()+1); return (d2-d1)/86400000;}; this.n = n; this.config = config; this.D = new Date; this.el = $(config.inputId); this.el.title = this.n+'DatePicker'; this.update(); this.bind(); }; init.prototype = { update : function (y, m) { var con = [], week = ['Su','Mo','Tu','We','Th','Fr','Sa'], D = this.D, _this = this; fn = function (a, b) {return '<td title="'+_this.n+'DatePicker" class="noborder hand" onclick="'+_this.n+'.update('+a+')">'+b+'</td>'}, _html = '<table cellpadding=0 cellspacing=2>'; y && D.setYear(D.getFullYear() + y); m && D.setMonth(D.getMonth() + m); var year = D.getFullYear(), month = D.getMonth() + 1, date = D.getDate(); for (var i=0; i<week.length; i++) con.push('<td title="'+this.n+'DatePicker" class="noborder">'+week[i]+'</td>'); for (var i=0; i<D._fd(); i++ ) con.push('<td title="'+this.n+'DatePicker" class="noborder"> </td>'); for (var i=0; i<D._fc(); i++ ) con.push('<td class="hand" onclick="'+this.n+'.fillInput('+year+', '+month+', '+(i+1)+')">'+(i+1)+'</td>'); var toend = con.length%7; if (toend != 0) for (var i=0; i<7-toend; i++) con.push('<td class="noborder"> </td>'); _html += '<tr>'+fn("-1, null", "<<")+fn("null, -1", "<")+'<td title="'+this.n+'DatePicker" colspan=3 class="strong">'+year+'/'+month+'/'+date+'</td>'+fn("null, 1", ">")+fn("1, null", ">>")+'</tr>'; for (var i=0; i<con.length; i++) _html += (i==0 ? '<tr>' : i%7==0 ? '</tr><tr>' : '') + con[i] + (i == con.length-1 ? '</tr>' : ''); !!this.box ? this.box.innerHTML = _html : this.createBox(_html); }, fillInput : function (y, m, d) { var s = this.config.seprator || '/'; this.el.value = y + s + m + s + d; this.box.style.display = 'none'; }, show : function () { var s = this.box.style, is = this.mask.style; s['left'] = is['left'] = getPos(this.el).x + 'px'; s['top'] = is['top'] = getPos(this.el).y + this.el.offsetHeight + 'px'; s['display'] = is['display'] = 'block'; is['width'] = this.box.offsetWidth - 2 + 'px'; is['height'] = this.box.offsetHeight - 2 + 'px'; }, hide : function () { this.box.style.display = 'none'; this.mask.style.display = 'none'; }, bind : function () { var _this = this; addEvent(document, 'click', function (e) { e = e || window.event; var t = e.target || e.srcElement; if (t.title != _this.n+'DatePicker') {_this.hide()} else {_this.show()} }); }, createBox : function (html) { var box = this.box = document.createElement('div'), mask = this.mask = document.createElement('iframe'); box.className = this.config.className || 'datepicker'; mask.src = 'javascript:false'; mask.frameBorder = 0; box.style.cssText = 'position:absolute;display:none;z-index:9999'; mask.style.cssText = 'position:absolute;display:none;z-index:9998'; box.title = this.n+'DatePicker'; box.innerHTML = html; document.body.appendChild(box); document.body.appendChild(mask); return box; } }; return init; }(); onload = function () { new DatePicker('_DatePicker_demo', { inputId: 'date-input', className: 'date-picker-wp', seprator: '-' }); } </script> <body bgcolor="#FFFFDB" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <form >   <table border="0" width="60%" align="center">    <tr>      <td width="45%" class="wr4" align="right"> 生日:</td>      <td width="55%" class="wr4">          <input type="text" name="mtime" id="date-input">  <font color="RED">*</font>              </td>    </tr>   <tr>       <td width="45%" align="right"><input type = "submit" value = "确定"/></td>       <td width="55%"><input type = "reset" value = "重置"/></td>    </tr> </table> </form> </body> </html>