RGB滑块/拾取器 [英] RGB Sliders/Pickers

查看:84
本文介绍了RGB滑块/拾取器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的第一篇文章,我希望显示正确的信息以发布标准。


简而言之,我使用的是本教程中使用的rgb选择器

http: //blog.paranoidferret.com/index...-color-picker/

我的主要目标是简单地提取十六进制值并从中发出警报。


---


[HTML]< input size =" 8" ID = QUOT; hexBox"平变化= QUOT; hexBoxChanged();" type =" text">


函数redBoxChanged(e)

{

currentColor.SetRGB(parseInt(document。 getElementBy Id(" redBox"。)。),currentColor.Green(),currentColor.Blue());

colorChanged(" box");

}


var HexValue = document.getElementById(hexBox).getValue;


函数TellMe()

{

提醒(+ HexValue)

}

[/ HTML]

---


giovanni

Hi this is my first post and i hope that am displaying correct information to post standards.

in short i am using a rgb picker used from this tutorial

http://blog.paranoidferret.com/index...-color-picker/

my main goal is to simply extract the hex value and make an alert out of it.

---

[HTML]<input size="8" id="hexBox" onchange="hexBoxChanged();" type="text">

function redBoxChanged(e)
{
currentColor.SetRGB(parseInt(document.getElementBy Id("redBox").value), currentColor.Green(), currentColor.Blue());
colorChanged("box");
}

var HexValue = document.getElementById(hexBox).getValue;

function TellMe()
{
alert(+HexValue)
}
[/HTML]
---

giovanni

推荐答案

欢迎来到TSDN!


尝试:
Welcome to TSDN!

Try:
展开 | 选择 | Wrap | 行号



欢迎来到TSDN!


尝试:
Welcome to TSDN!

Try:
展开 | 选择 | Wrap | 行号


替换
展开 | 选择 | Wrap | 行号


这篇关于RGB滑块/拾取器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆