Jump to content

Javascript Alter CSS text-shadow of Dynamic Element


astralaaron

Recommended Posts

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

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 by astralaaron
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...