Forum Moderators: open

Message Too Old, No Replies

Cannot find this variable

Modifying code and am now stuck!

         

stevenjm

5:30 am on Oct 31, 2003 (gmt 0)

10+ Year Member



Hi all,
not sure if I can put links here but it will make things a lot easier. <snip>

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]

korkus2000

1:44 pm on Oct 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you do a search through your code and post the function that has #ffffff or white in it?

stevenjm

11:17 pm on Oct 31, 2003 (gmt 0)

10+ Year Member



function ph(x){document.write('<td><div class=t id="hc'+x+'">#FFFFFF</div></td>');

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?