Hi,
On one of the pages of my site i use two javascripts, one makes transparency of png's work in IE, and the other embeds a flash player.
Now use one of the scripts it works fine, use both and the transparency script stops working. So for example, use just the png transparency script and it displays the png's correctly in IE, as soon as i add the SWFobject (flash embedding) script the transparency script stops working!!?? :S...
User Profile
Collapse
-
SWFobject - is breaking the .PNG transparency script in IE!!
-
Hmm, thanks for ur post pbmod im afraid though i couldnt get it to work. I am somewhat of a newb when it come to javascripting, the script i use to change the stylesheets isnt mine it is one i found on the web.
Not exactly sure where you wanted me to make the changes but i played around for awile trying what you said but no luck, im obviously doing something wrong cause every change i made to the script just broke it. Heres what i... -
Hi Tom, well if all you want to do is load the same html but just apply a different stylesheet you can do this easily through a javascript. I am currently working on a project where i want the user to be able to select the stylesheet i.e. the look of the webpage from a menu box. See this thread http://www.thescripts.com/forum/thread648365.html, this thread includes the javascript used to change stylesheet, also the script creates a cookie and saves...Leave a comment:
-
Hi pbmods, yeah kinda missed the code tag button lol. well here is the javascript it also saves the users selected choice in a cookie so that the chosen stylesheet is used throughout the session. Hope you can shed some light on my problem?
Code:function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style")
Leave a comment:
-
dragze started a topic onclick function not working with IE, load selected stylesheet from a menu box!in Javascriptonclick function not working with IE, load selected stylesheet from a menu box!
Hi, right i have a menu box wich allows the user to change what stylesheet the website uses. Now this all works just the way it shud in FF, but not in safari or IE, when u select ur option from the box in safari or IE it does nothing. I have tested the same method but with hyperlinks rather than the menu box, this works with all three browsers, just wont wrk on the menu box for some reason. For all i know there could be a simple explanation to why...
No activity results to display
Show More
Leave a comment: