早上好,
我无法弄清楚如何将我的表单脚本嵌入到我的FancyBox中。
我是新手,所以请提前道歉。我到处都看,但似乎无法找到正确的答案。
我创建了一个非常简单的测试页面,所以我可以用它来弄清楚这一切是如何工作的。
基本上,我需要替换弹出窗体的图像。
这是我需要嵌入的表单脚本:
<script charset="utf-8" src="//js.hubspot.com/forms/current.js"></script>
<script>
hbspt.forms.create({
portalId: '206683',
formId: 'ecaa931c-1fc4-4b96-8aea-b040169f449d'
});
</script>
这是我的测试页面:
http://online.saintleo.edu/FancyBox2/FancyBox2.html
提前谢谢你。非常感谢您的时间和指导。
答案 0 :(得分:-1)
回答获取格式
主页:
<table width="1264px" height="100" border="0" bgcolor="#0A3D32">
<tr>
<td><img src="http://online.saintleo.edu/main-logo.png" width="334" height="94" /></td>
<td><a class="iframe" href="#form"><img src="http://online.saintleo.edu/RequestInfoButton-Test.jpg" width="127" height="36" /></a></td>
</tr>
</table>
<div id="form" style="display:none">
<iframe height="500" src="form.html"></iframe>
</div>
form.html
<script charset="utf-8" src="http://js.hubspot.com/forms/current.js"></script>
<script>
hbspt.forms.create({
portalId: '206683',
formId: 'ecaa931c-1fc4-4b96-8aea-b040169f449d'
});
</script>