First, the test cases (Yes I know, that's the only thing a log about, but I like testing stuff) for checking if flash exists. I have made 2 test cases. One is valid HTML4.01 Strict, the other is valid XHTML1.0 Strict and will be send as
application/xhtml+xml to the following browsers: Opera 6 and & 7, the validators (although that doesn't matter) and any browser that 'accepts'
application/xhtml+xml. I think I should exclude Opera, 'cause that browser is having some trouble, but for these tests, it is in:
Note that I did not create the Flash detect script myself. I only combined two existing scripts into one that is in my opinion more solid. The whole script is the same as Flash detect from Peter-Paul Koch, but writes the VBS away the same as this script does: Flash Detection Only. This has the advantage that you only need one file instead of two for the detection itself. The only disadvantage I have now is that you need to specify within the VBScript until which version you want to check. I made that version 8, but a better option might be 10 er something. It should not be too high, 'cause then IE will not handle it I think.
I did some browser testing myself on Windows XP. Here an unordered list of the results:
application/xhtml+xml. They only pass html-401.
Both scripts work fine in IE5 for Win98se and (no surprise) Mozilla Firebird 0.6.1 for WinXP
FYI, VBS stands for VisualBasic Script, not Virtual Basic Script.
Werkt hij alweer? Iemand hier had een mailbox vol laten lopen, waardoor alle accounts werden geblocked (inmiddels al 50MB extra serverruimte ingekocht). Ik dacht ook al: wat krijg ik verdacht weinig mail binnen... ;)