在创建动态会员链接以使用以下代码时我需要帮助,而“ papfield2”将传播链接所需的“用户名”。一个例子是
https://thedomain.com/papfield2 or <a href="https://thedomain.com/papfield2">Click Here</a>
因为这当然行不通。
<a href="https://thedomain.com/<span id='papfield2'></span>">Click Here</a>
当每个会员的详细信息中没有可用的用户名时,我还需要它来查看默认的“用户名”(不参加额外的计划)。
该脚本及其现在的工作方式:
`You were referred by <span id='papname'></span></div>`
<script type="text/javascript" src="https://thedomain.com/plugin/AffiliateInfo/affiliateinfo.php?param=all"></script>
<script type="text/javascript">
setTimeout(function() {showBlock();}, 2500); // we have to wait a while to make sure the process was really finished
function showBlock() {
if (document.getElementById('papname').innerHTML != '') {
document.getElementById('wrapper').style.display='block';
}
}
</script>
谢谢您的光临。我会感谢您的帮助。