36 |
# $gBaseURL = "http://localhost/~cricket/grapher.cgi"; |
# $gBaseURL = "http://localhost/~cricket/grapher.cgi"; |
37 |
my $hostname = `hostname -f`; |
my $hostname = `hostname -f`; |
38 |
chomp($hostname); |
chomp($hostname); |
39 |
$gBaseURL = "http://$hostname/cgi-bin/cricket/grapher.cgi"; |
$gBaseURL = "/cgi-bin/cricket/grapher.cgi"; |
40 |
|
|
41 |
# change this to destination directory |
# change this to destination directory |
42 |
$path = "/data/mon/"; |
$path = "/data/mon/"; |
242 |
if (elmref0) elmref0.bgColor = '#e0e0e0'; |
if (elmref0) elmref0.bgColor = '#e0e0e0'; |
243 |
} |
} |
244 |
} else if(elmref) { |
} else if(elmref) { |
245 |
|
// default: show all |
246 |
|
new_cookie |= 1 << links[i].name; |
247 |
if (elmref.style.display=='none') { |
if (elmref.style.display=='none') { |
248 |
elmref.style.display=''; |
elmref.style.display=''; |
|
new_cookie |= 1 << links[i].name; |
|
249 |
if (elmref0) elmref0.bgColor = '#eeeeee'; |
if (elmref0) elmref0.bgColor = '#eeeeee'; |
250 |
} else { |
} else { |
251 |
elmref.style.display = 'none'; |
// hide? no... |
252 |
//new_cookie &= !( 1 << links[i].name ); |
//elmref.style.display = 'none'; |
253 |
if (elmref0) elmref0.bgColor = '#e0e0e0'; |
//if (elmref0) elmref0.bgColor = '#e0e0e0'; |
254 |
|
if (elmref0) elmref0.bgColor = '#eeeeee'; |
255 |
} |
} |
256 |
} |
} |
257 |
} |
} |
279 |
if ($dynamic_js) { |
if ($dynamic_js) { |
280 |
my $html =<<'HTMLEND'; |
my $html =<<'HTMLEND'; |
281 |
<tr bgcolor='#e0e0e0' id=##id##_h0> |
<tr bgcolor='#e0e0e0' id=##id##_h0> |
282 |
<td><a href="#" id=DynMessLink name=##id## >##desc##</a></td> |
<td><a name="##id##"><a href="###id##" id=DynMessLink name=##id## >##desc##</a></td> |
283 |
</tr> |
</tr> |
284 |
<tr id=##id##_h1 style='' bgcolor='#ffffff' > |
<tr id=##id##_h1 style='' bgcolor='#ffffff' > |
285 |
<td><a href="##url##"><img src="##img##"</td> |
<td><a href="##url##"><img src="##img##"</td> |