***Help Needed accessing external Style Sheets***

This is a discussion on "***Help Needed accessing external Style Sheets***" within the Flash & Multimedia Forum section. This forum, and the thread "***Help Needed accessing external Style Sheets*** are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 15th, 2006, 20:22
New Member
Join Date: Nov 2006
Location: Palo Alto
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation ***Help Needed accessing external Style Sheets***

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 !
Reply With Quote

  #2 (permalink)  
Old Nov 15th, 2006, 22:32
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: ***Help Needed accessing external Style Sheets***

Try using full URL links, make sure the script is within you head tag. Umm, other than that the only thing I can suggest is for you to use a different CSS sheet detector. I have an ideal, I know would work, but it might evolve more work on your part. Let me know if you still are looking for suggestions!!
Reply With Quote
Reply

Tags
css, external css, flash, link, url

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Style sheets Oak Web Page Design 4 Mar 3rd, 2008 16:49
switching between style sheets cwjones Web Page Design 4 Jul 4th, 2007 17:06
Problems with external style sheets ronb Web Page Design 7 May 16th, 2007 19:18
CSS Style Sheets ronb Starting Out 3 May 10th, 2007 13:02
change style sheets screamer2k Web Page Design 5 Aug 6th, 2004 11:19


All times are GMT. The time now is 07:19.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43