範例: 如何讓DOM element 不要按照預設行為模式被觸發
tagtoo_jQuery(".get_embed_code").live('click', function(e){
var trace_code = tagtoo_jQuery(this).parent().attr('name');
var id_code = "{{secret}};" + trace_code;
var embed_code = "\<script id='tagtoo_plugin_seed' class='edit_auth' name='"+id_code+"' src='"+TagtooRequestSite+"/site_media/plugin/tagtoo_plugin.js'\>\<\/script\>";
//alert(embed_code);
if (!e)
e = window.event;
if (e.cancelBubble)
e.cancelBubble = true;
else
e.stopPropagation();
});
留言
張貼留言