Webtags as boolean operators in HTML: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
Text replacement - "http://sandaysoft.com/forum/" to "https://cumulus.hosiene.co.uk/"
m (Text replacement - "http://sandaysoft.com/forum/" to "https://cumulus.hosiene.co.uk/")
 
(One intermediate revision by one other user not shown)
Line 32: Line 32:
  }
  }
and it is then instructed not to show the table row.
and it is then instructed not to show the table row.
Conversely, if current weather has been input, the browser will look at each word and try to find a matching class, assuming it fails to match any, it will take the default action of displaying the table row. See [[http://sandaysoft.com/forum/viewtopic.php?f=14&t=9985&sid=f7ba680a73fbeccc0c18523515fac384| forum]] for more information.
Conversely, if current weather has been input, the browser will look at each word and try to find a matching class, assuming it fails to match any, it will take the default action of displaying the table row. See [[https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=9985&sid=f7ba680a73fbeccc0c18523515fac384| forum]] for more information.


== Rising/Falling ==
== Rising/Falling ==
[[Webtags#Current_Conditions | <#temptrendenglish> and <#presstrendenglish> contain one of a few predefined values. They can be treated as boolean for a modification of say [[Customised_templates | indexT.htm]] because the HTML can test for each of the pre-defined values (steady, falling, rising), suitable images for '''<#presstrendenglish>.gif''' are in the folder ''webfiles\dbimages'' and include '''Falling.gif'''.  These are already used by the javascript associated with the standard gaugesT.htm, but explaining scripting is outside the scope of an article concentrating on HTML.
[[Webtags#Current_Conditions | <#temptrendenglish> and <#presstrendenglish>]] contain one of a few predefined values. They can be treated as boolean for a modification of say [[Customised_templates | indexT.htm]] because the HTML can select a different image for each of the pre-defined values (steady, falling, rising), suitable images for '''<#presstrendenglish>.gif''' are in the folder ''webfiles\dbimages'' and include '''Falling.gif'''.  They could be used to select different CSS files so giving the whole web page a look that varies for the different predefined trend values.
 
The images mentioned are already used by the javascript associated with the standard gaugesT.htm, but explaining scripting is outside the scope of an article concentrating on HTML.


== Changing the whole web page ==
== Changing the whole web page ==

Navigation menu