space_userabout.htm里也有,和上面的代碼形式相同。
{lang }有區(qū)別,取消收聽{lang follow_del},收聽{lang follow_add}TA。
space_card也有這個東西,但是代碼稍有不同,不同uid有區(qū)分,如下。
<!--{if helper_access::check_module('follow')}-->
<a href="home.php?mod=spacecp&ac=follow&op={if !empty($follow)}del{else}add{/if}&hash={FORMHASH}&fuid=$space[uid]" id="card_followmod_$space[uid]" onclick="showWindow(this.id, this.href, 'get', 0)" class="xi2"><!--{if !empty($follow)}-->{lang follow_del}<!--{else}-->{lang follow_add}TA<!--{/if}--></a>
<!--{/if}-->
<script type="text/javascript">
function succeedhandle_card_followmod_$space[uid](url, msg, values) {
var linkObj = $('card_followmod_'+values['fuid']);
if(linkObj) {
if(values['type'] == 'add') {
linkObj.innerHTML = '{lang follow_del}';
linkObj.href = 'home.php?mod=spacecp&ac=follow&op=del&fuid='+values['fuid'];
} else if(values['type'] == 'del') {
linkObj.innerHTML = '{lang follow_add}TA';
linkObj.href = 'home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid='+values['fuid'];
}
}
}
</script>
|