August 1999
Intermediate to advanced
1488 pages
72h 53m
English
@_mac
The @_mac variable is used in conditional compilation to determine if an Apple Macintosh system is being used. When the variable is not true, it is defined as NaN.
Listing 9.5 alerts the user when an Apple Macintosh system is used.
<script language="JScript">
<!-- Hide
@if (@_mac)
alert("You are using an Apple Macintosh system.");
@else
alert("You are NOT using an Apple Macintosh system.");
@end
//Hide End -->
</script>
|
Read now
Unlock full access