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/")
 
(2 intermediate revisions by one other user not shown)
Line 16: Line 16:
   <th><img src="led_blue<#LowMaxTempRecordSet>.png" alt="O" />Lowest Daily Maximum</th>
   <th><img src="led_blue<#LowMaxTempRecordSet>.png" alt="O" />Lowest Daily Maximum</th>
   <th><img src="led_red<#HighTempRangeRecordSet>.png" alt="O" >Largest Daily Range</th>
   <th><img src="led_red<#HighTempRangeRecordSet>.png" alt="O" >Largest Daily Range</th>
(again inclusion/exclusion of the slash at the end of the img element varies between HTML versions, both variants acceptable to HTML5 are shown here)
(again inclusion/exclusion of the space and slash at the end of the img element varies between HTML versions, both variants acceptable to HTML5 are shown here)


== Current Weather Conditions ==
== Current Weather Conditions ==
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