Technical Help & Discussion > Website Design & Programming
HTML5 Primer: How To Use the Audio Tag
Simon:
:laugh:
Rodders:
Any idea of the syntax for the 'controls' attribute, Sam? Is it simply matter of leaving it out of the code if the control isn't required?
Each Christmas I like to have a good quality festive midi toon playing softly in the background on pageload (no-repeat). Obviously, the appearance of a control bar instead of the desired page would be pretty jolly silly. It's a shame HTML5 is still quite some way off, as it does indeed appear to represent "the future". It's also likely to kill me having to manually update 200+ pages from a primordial version of HTML. :ack:
sam:
--- Quote from: Rodders on January 19, 2011, 23:42 ---Any idea of the syntax for the 'controls' attribute, Sam? Is it simply matter of leaving it out of the code if the control isn't required?
Each Christmas I like to have a good quality festive midi toon playing softly in the background on pageload (no-repeat). Obviously, the appearance of a control bar instead of the desired page would be pretty jolly silly. It's a shame HTML5 is still quite some way off, as it does indeed appear to represent "the future". It's also likely to kill me having to manually update 200+ pages from a primordial version of HTML. :ack:
--- End quote ---
yes, that is the case - have a go at it: http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_audio_autoplay
Update 200+ - that's what php include helps fantastically with.
Rodders:
Dead brill! Bookmarked, thanks. 8-)
Navigation
[0] Message Index
[*] Previous page
Go to full version