我尝试过使用:
的backgroundColor:#00000,
和
背景色:#00000,
颜色:#e5fbff,
这就是我所拥有的:
<script type="text/javascript">
//<![CDATA[
var IsSubscribed;
<?php
$IsSubscribed='false';
if (Mage::getSingleton( 'customer/session' )->isLoggedIn())
{
if (Mage::getModel('newsletter/subscriber')->loadByCustomer(Mage::getSingleton('customer/session')->getCustomer()) -> isSubscribed())
{
$IsSubscribed='true';
}
}
?>
IsSubscribed=<?php echo($IsSubscribed); ?>;
if (!IsSubscribed&&document.body.offsetWidth!=320)
{
var expireAt = Mage.Cookies.expires;
expireAt = new Date();
expireAt.setTime(expireAt.getTime() + 3600000);
if (!Mage.Cookies.get('auto_pop_newsletter'))
{
Dialog.info($('newsletter_sign_up').innerHTML,
{
draggable:true,
resizable:false,
closable:true,
className:'magento',
windowClassName:'video-window',
title:'Video Window',
top:100,
width:680,
height:400,
zIndex:20000,
"background-color":"#e5fbff",
recenterAuto:true,
hideEffect:Element.hide,
showEffect:Element.show,
id:'video_window',
onClose: function () { }
});
$$('#modal_dialog_message form')[0].id='pop_newsletter';
$$('#modal_dialog_message form .pop_newsletter_source')[0].value=1;
pop_newsletter = new VarienForm('pop_newsletter', true);
Mage.Cookies.set('auto_pop_newsletter', 1,expireAt);
}
}
function web_pop_newsletter(){
Dialog.info($('newsletter_sign_up').innerHTML,
{
draggable:true,
resizable:false,
closable:true,
className:'magento',
windowClassName:'video-window',
title:'Video Window',
top:100,
width:320,
height:400,
zIndex:20000,
recenterAuto:true,
hideEffect:Element.hide,
showEffect:Element.show,
id:'video_window',
onClose: function () { }
});
$$('#modal_dialog_message form')[0].id='pop_newsletter';
$$('#modal_dialog_message form .pop_newsletter_source')[0].value=3;
pop_newsletter = new VarienForm('pop_newsletter', true);
}
//]]>
</script>
我已经做了一些搜索,但似乎无法弄清楚正确的语法。似乎没有什么工作..
任何帮助将不胜感激。谢谢。
更新:我尝试了以下两个步骤。