【发布时间】:2013-01-16 15:54:19
【问题描述】:
我想在我的时事通讯 (HTML) 中插入一个典型链接“阅读更多...”,该链接在我的电子邮件中展开/隐藏我的新闻,并提供更多信息(更多文本)。对于邮件平台(gmail、outlook..)上的作品,我该如何做到这一点?
我知道如何使用这样的 javascript 在网页上执行此操作,但在电子邮件中这不起作用。
< html>
...
< script type='text/JavaScript'>
function verocultar(cual) {
var c=cual.nextSibling;
if(c.style.display=='none') {
c.style.display='block';
} else {
c.style.display='none'; }
return false;
}
</ script>
...
< p>Fusce tempor ....< / p>
< a onclick="return verocultar(this);" href="javascript:void(0);">< img src="images/read-more-btn.gif" alt="Read More" width="102" height="27" border="0">< / a> < p>As you look out on that coupon- and candy-trimmed future, we're sure you're reflecting on all that has gone by this year: All the milestones and memories. All the mistakes and monstrosities.
Cloth.< / p>
....
< / html>
【问题讨论】:
-
你不能。它不会在全球范围内得到支持。无论如何你都应该放弃这个想法
-
查看 mailchimp.com 或 salesforce
-
我必须同意上面的 2 个答案。我花了很多时间玩电子邮件...不要试图变得太复杂,因为一旦你这样做,它就会开始在不同的邮件客户端中产生不同的结果。
-
大多数电子邮件客户端不支持头部部分中的标签,如 、
-
是的,但我需要显示隐藏的文本...它是针对公司的,所以我无法打开弹出式浏览器,我需要显示电子邮件通讯中的内容。
标签: javascript html gmail newsletter mhtml