Forum Moderators: open
I have found some code and modified it to my needs but am stuck at this point. I want to get the values of the small boxes so that I can pass them to a form for email.
I cannot find the variable responsible for the dynamic values(hex codes for colors in boxes) that change when using the sliding bar.
I wanted to get these values and create some dynamic input fields with the values in them but cannot get the variable responsible.
The ph() function is giving me nothing more than a static #FFFFFF
I thought I was getting somewhere with javascript until I tried to work this one out.
Any takers? I would be extremely greatful.
[edited by: korkus2000 at 1:43 pm (utc) on Oct. 31, 2003]
[edit reason] No code reviews please [/edit]
if you use <SCRIPT>ph(0);ph(1);ph(2);ph(3);ph(4);ph(5);</SCRIPT> in the body it generates the hex values for the colors above each color box(which are by default obviously #FFFFFF)
Whats got me baffled though is that when you use the slider bar these values change
and if I try putting in <script>ph(0)</script> all it gives me is a static #FFFFFF and makes all the others static too.
Can I post the script here?