Interface test:
Slide your cursor over the bars to change the value in the text field.
Click field to restore default value.
One 'while' php statement of 305 characters (including the javascript) produces
the box below you. (Including the CSS, just over 1,000 characters...
As you can see by looking at the page source, this is real clunky, in
that it writes out a fairly complex javascript for each iteration
of the php statement. (14,707 characters, 16kb) I guess the whole
thing could be done in javascript, except for the data point of the default
size, which is a php variable set in the site's config file. Better
would be to have an ouside function for the rollovers that is called
on each iteration?
1 percent increments. Click text field to restore default
value
I'm trying to get a file to break into two chunks, before and after an id#
(Split ID is not the split line)
Split at ID#1219642800 (Line # 12)
Split at Line #8
Line 0 - Id# 1218606000 and the text is: aaaa
Line 1 - Id# 1218692400 and the text is: bbbb
Line 2 - Id# 1218778800 and the text is: cccc
Line 3 - Id# 1218865200 and the text is: dddd
Line 4 - Id# 1218951600 and the text is: eeee
Line 5 - Id# 1219038000 and the text is: ffff
Line 6 - Id# 1219124400 and the text is: gggg
Line 7 - Id# 1219210800 and the text is: hhhh
Line 8 - Id# 1219297200 and the text is: iiii
Line 9 - Id# 1219383600 and the text is: jjjj
Line 10 - Id# 1219470000 and the text is: kkkk
Line 11 - Id# 1219556400 and the text is: llll
Line 12 - Id# 1219642800 and the text is: mmmm
Line 13 - Id# 1219729200 and the text is: nnnn
Line 14 - Id# 1219815600 and the text is: oooo
Line 15 - Id# 1219902000 and the text is: pppp
Line 16 - Id# 1219988400 and the text is: qqqq
Line 17 - Id# 1220074800 and the text is: rrrr
Line 18 - Id# 1220161200 and the text is: ssss
Line 19 - Id# 1220247600 and the text is: tttt
Line 20 - Id# 1220334000 and the text is: uuuu
Line 21 - Id# 1220420400 and the text is: vvvv
Line 22 - Id# 1220506800 and the text is: wwww
Line 23 - Id# 1220593200 and the text is: xxxx
Line 24 - Id# 1220679600 and the text is: yyyy
Line 25 - Id# 1220766000 and the text is: zzzz
Simply taking the line number to split the data
Data Before:
1218606000 aaaa
1218692400 bbbb
1218778800 cccc
1218865200 dddd
1218951600 eeee
1219038000 ffff
1219124400 gggg
1219210800 hhhh
Chosen Data:
1219297200 iiii
Data After:
1219383600 jjjj
1219470000 kkkk
1219556400 llll
1219642800 mmmm
1219729200 nnnn
1219815600 oooo
1219902000 pppp
1219988400 qqqq
1220074800 rrrr
1220161200 ssss
1220247600 tttt
1220334000 uuuu
1220420400 vvvv
1220506800 wwww
1220593200 xxxx
1220679600 yyyy
1220766000 zzzz
With an extra foreach to match the ID to the line number
Data Before:
1218606000 aaaa
1218692400 bbbb
1218778800 cccc
1218865200 dddd
1218951600 eeee
1219038000 ffff
1219124400 gggg
1219210800 hhhh
1219297200 iiii
1219383600 jjjj
1219470000 kkkk
1219556400 llll
Chosen Data:
1219642800 mmmm
Data After:
1219729200 nnnn
1219815600 oooo
1219902000 pppp
1219988400 qqqq
1220074800 rrrr
1220161200 ssss
1220247600 tttt
1220334000 uuuu
1220420400 vvvv
1220506800 wwww
1220593200 xxxx
1220679600 yyyy
1220766000 zzzz
Old Split line: 8
New Split line: 12