0
我正在尋找像這樣的http://jsfiddle.net/theimaginative/gA63t/添加到WordPress的文章。我一直在試圖創建一個短代碼插入到帖子中,但一直在努力。我可以得到一個基本的簡短代碼,只需使用基本功能即可添加文本,但在Google搜索幾個小時後,我無法弄清楚如何將html和javascript作爲短代碼內容的一部分。使用簡碼將內容添加到wordpress文章
任何幫助將不勝感激。謝謝!
<div id="sliderone">
<div id="nav">
<div id="navone" style="text-align: center;">This is a clickable title</div>
</div>
<div id="title"></div>
</div>
<script type="text/javascript">
$('#navone').click(function() {
$('#title').html("<img src='http://placehold.it/350x350' alt='' />");
$('#sliderone').animate({
height: '450'
});
});
</script>
對於所有選項,OP應該是指[WordPress的食品法典委員會(http://codex.wordpress.org/Function_Reference/add_shortcode) – Gant
是,以上只是碼轉儲字符串到頁面上,它不不接受任何論據。 –