Because I have heard the Flash isn't transparent in Netscape, is there anyway I can have my site detect what browser the user is using and the right page show up?
I have two webpage versions one uses flash other doesn't.
If you can use SSI then do this (you don't use Javascript and it will always work on a users browser, b/c it is parsed by the server before the user sees it):
<!--#if expr="${HTTP_USER_AGENT} = /MSIE/" -->
<EMBED SRC="flash.swf" QUALITY="HIGH" WIDTH="#" HEIGHT="#" NAME="file name">
<!--#else -->
// show nothing, keep this part blank
<!--#endif -->
Hope this helps!
PS - You will need to change the file extension from .html to .shtml when using any SSI commands. NATE
That is a bad way to go about it!! You are saying that if the user is not using IE then dont show it, what about all the other browsers out there?
lmarshall,
If you want to use the server side browser check then you have 2 options, either conditionaly include the flash or redirect to a new page based on the browser.
Or to conditionally include the items, use the following:
<!--#if expr="${HTTP_USER_AGENT} = /MSIE/" -->
FLASH CONTENT HERE
<!--#set var="bver" value="IE" -->
<!--#elif expr="${HTTP_USER_AGENT} = /Mozilla/ && $bver !=/IE/" -->
NON FLASH CONTENT HERE
<!--#else -->
FLASH CONTENT HERE
<!--#endif -->
The reason that this requires 2 Flash sections is to cater for any browser that is not either IE or NS. There are other ways to go about this but this is by far the safest as it caters for all browsers and does not rely on any browser setting.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.