Hi All,
I am need a bit of help, if not a whole lot
Synopsis:
I am trying to access a URL via a Flash button. The
html page it points to has a script which determins the browser version and loads the external style sheet. The Browser should load based on the browser version (such as IE or Netscape).
Problem:
When the page loads via the flash button, it brings up the
html page without processing any external style sheet.
Question:
How do I get a URL accessed through Flash to load a browser specific Style Sheet?
Below is the code I am using in flash.
B1.onPress = function () {
getURL ("http://www.domainname.com/page.html/");
}
Below is the
JS code I am using on my
HTML page to determine the broser type and load the stle sheet.
<script type="text/javascript">
var browserName=navigator.appName;
if (browserName=="Microsoft Internet Explorer")
{
document.write('<link rel="stylesheet" href="styles/stylesheet.css" type="text/css">')
}
else {
document.write('<link rel="stylesheet" href="styles/stylesheet_ns.css" type="text/css">')
}
</script>
All help is appreciated !
