0
我正在使用下面的代碼在我的網站左側顯示「跟着我」框。如何更改jquery片段以輸出第二個元素?
我想創建第二個按鈕,就在這個按鈕的下面,這個按鈕將點擊它的人發送到RSS鏈接。
我該怎麼做?
感謝! Azeem
<!-- by Twitter Follow Me Box v1.1 -->
<script type=\"text/javascript\">
//<![CDATA[
jQuery(document).ready(function(){
jQuery(\"body\").append(\"<div id=\\\"tfmBox\\\"></div>\");
jQuery(\"#tfmBox\").css({'position' : 'fixed', 'top' : '$top', 'width' : '30px', 'height' : '119px', 'z-index' : '1000', 'cursor' : 'pointer', 'background' : '#$color url(" . WP_PLUGIN_URL . "/twitter-follow-me-box/follow-me.png) no-repeat scroll $imagem_side top', '$side' : '0'});
jQuery(\"#tfmBox\").click(function() {
window.open('http://twitter.com/$twitter_account/');
});
});
//]]>
</script>
<!-- /by Twitter Follow Me Box -->
有沒有理由不能在HTML + CSS中做到這一點? – zzzzBov 2010-11-05 20:20:56