[英]Onclick popup of sharethis window
由於我通過以下腳本嵌入了sharethis插件,因此在鼠標懸停事件時會彈出共享窗口。 但是我只需要在Onclick事件上彈出。
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">
stLight.options({
publisher:"c7a25472-030e-48ce-b630-a71f99cc53d9"
});
</script>
<span class="st_sharethis_custom" displayText="Share">Share</span>
所以,請您提出建議,我應該如何實現這一目標。
將onhover
屬性設置為false
應該適合您:
stLight.options({
publisher:"c7a25472-030e-48ce-b630-a71f99cc53d9",
onhover: false
});
ui_click如果為true,則僅在單擊時顯示緊湊菜單。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.