当“产品图像”(又名heroImg
)首次显示在我的ProductTemplate
TVML 布局中时,背景会自动设置为图像的模糊副本。
当我要求它时,图像本身正在更新:
function changeHeroImage(incomingString) {
if (incomingString) {
var theHero = myDoc.getElementsByTagName("heroImg").item(0);
theHero.setAttribute('src', incomingString);
}
}
..但不是背景;布局保留原始图像的背景。关于如何强制背景更新以反映当前图像的任何想法?