 |
 |
 |
 |
#199536 - 03/11/03 07:13 AM
[6.4 - 6.5] Display Times Without JavaScript
|
Admin / Code Breaker
Registered: 03/24/01
Posts: 7396
|
Very simple script, suggested by gero: Open ubb_lib_time.cgi. Find: return qq~
<script language="JavaScript1.3" type="text/javascript">
document.writeln(timestamp(new Date($datestring), $dfrm, $tfrm, $dclass, $tclass, $rev, $noadj));
</script>~; Replace with: my $noscript = $dfrm eq 'dfrm' && $tfrm eq 'tfrm'
? &DateFormat($_[0]) . " " . &TimeFormat($_[1]) :
$dfrm eq 'dfrm' ? &DateFormat($_[0]) :
$tfrm eq 'tfrm' ? &TimeFormat($_[1]) : '';
return qq~
<script language="JavaScript1.3" type="text/javascript">
document.writeln(timestamp(new Date($datestring), $dfrm, $tfrm, $dclass, $tclass, $rev, $noadj));
</script><noscript>$noscript</noscript>~;
_________________________
My Hacks Page (will be back with UBB 7!) UBBDev - We put the class into UBB.classic!
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|