astralaaron Posted September 6, 2014 Share Posted September 6, 2014 I am having a weird issue where the text-shadow will not take effect on an html marquee (IE7 / IE8) The marquee is created dynamically, and appended to the document... ive tried adding the style before and after the element is appended. all other style's work fine. Any common reason why maybe it is not working? Link to comment Share on other sites More sharing options...
niche Posted September 6, 2014 Share Posted September 6, 2014 Please post the relevant code. Link to comment Share on other sites More sharing options...
astralaaron Posted September 6, 2014 Author Share Posted September 6, 2014 (edited) Here is the area of the code with an issue... " x.oldMarquee.style.textShadow = '3px 3px 1px #0000ff'; " is not working x.oldMarquee = document.createElement('marquee'); e.canvasId = settings.parent + '_marquee'; //IE7 x.oldMarquee.trueSpeed = 'truespeed'; x.oldMarquee.scrollAmount = ((settings.velocity) ? settings.velocity : 1); x.oldMarquee.scrollDelay = '18'; // > IE7 x.oldMarquee.setAttribute("truespeed","truespeed"); x.oldMarquee.setAttribute("scrollamount", ((settings.velocity) ? settings.velocity : 1)); x.oldMarquee.setAttribute("scrolldelay","18"); x.oldMarquee.style.position = "relative"; x.oldMarquee.stylx.overflow = "hidden"; var weight, style, family, color, size, hover; x.oldMarquee.style.paddingTop = ((settings.height - ((settings.fontSize) ? (settings.fontSize) : 14)) / 2) + "px"; x.oldMarquee.style.size = size = (settings.fontSize) ? (settings.fontSize + "px") : '14px'; x.oldMarquee.style.fontWeight = weight = (settings.fontWeight) ? settings.fontWeight : 'normal'; x.oldMarquee.style.fontStyle = style = (settings.fontStyle) ? settings.fontStyle : 'normal'; x.oldMarquee.style.fontFamily = family = (settings.fontFamily) ? settings.fontFamily : 'Times New Roman'; x.oldMarquee.style.color = color = (settings.fontColor) ? settings.fontColor : '#000'; x.oldMarquee.style.textShadow = '3px 3px 1px #0000ff'; x.oldMarquee.id = x.canvasId; x.oldMarquee.width = settings.width; x.oldMarquee.height = settings.height; x.parentNode.appendChild(x.oldMarquee); Edited September 6, 2014 by astralaaron Link to comment Share on other sites More sharing options...
dsonesuk Posted September 6, 2014 Share Posted September 6, 2014 text-shadow not supported on IE lower than version 10. Link to comment Share on other sites More sharing options...
niche Posted September 6, 2014 Share Posted September 6, 2014 You might consider this: Â IE has their own proprietary text shadow : Â http://stackoverflow.com/questions/6905658/css3-text-shadow-in-ie9 Link to comment Share on other sites More sharing options...
astralaaron Posted September 7, 2014 Author Share Posted September 7, 2014 which filters work in IE7 and IE8?? I've been trying every one I can find and none of them work... Link to comment Share on other sites More sharing options...
astralaaron Posted September 7, 2014 Author Share Posted September 7, 2014 do any of the filters text shadow filters work lower than IE9? I'm still having no luck... Link to comment Share on other sites More sharing options...
astralaaron Posted September 7, 2014 Author Share Posted September 7, 2014 filter:progid:DXImageTransform.Microsoft.DropShadow(enabled=true, offX=1, offY=1, color=#00ff00); Where am I going wrong? Doesn't work.... Link to comment Share on other sites More sharing options...
dsonesuk Posted September 7, 2014 Share Posted September 7, 2014 try it with zoom: 1; zoom:1; filter:progid:DXImageTransform.Microsoft.Shadow(color=#0000ff,direction=155,strength=3); note it does not work in IE11, compatibility modes, but it works in IE tester, but! it looks really really CR@P, I would just leave it, Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now