我想爲我的Tumblr頁面實現一個非常基本的照片滑塊。我有一些關於HTML和Tumblr編碼的基本知識,所有這些都是自學的,直到現在,一切都已經膨脹起來。但與{Photoset}塊合作被證明有點令人困惑。真的很簡單的照片滑塊與Tumblr
我正在嘗試使用{Photos}塊,它使用ReallySimple滑塊呈現photoset的每張照片,就像它們本身一樣。 {PhotoURL-HiRes}等都來自Tumblr。這是我到目前爲止有:
JQuery的:
$(document).ready(function() {
$('#slideshow-div').rsfSlideshow();
});
HTML:
<div id="slideshow-div">
<!--
Set up an initial slide -- this provides an image for users without JavaScript.
Notice that we've also added the caption for the first slide.
-->
<div class="slide-container">
<img src="{PhotoURL-HighRes}"
{block:Caption}alt="{Caption}"{/block:caption}
title="This is a caption for the first slide" />
<span class="slide-caption">{block:Caption}{Caption}{/block:Caption}</span>
</div>
有一些CSS,太。這是全部在{block:Photos} {/ block:Photos}之間呈現的。我究竟做錯了什麼?
編輯:一張圖片勝過千言萬語,所以一個網頁必須值得像百萬或東西。下面是我可憐的理解笑結果:http://ko-51.tumblr.com/
下面是滑塊一個鏈接,它應該如何發揮作用:http://reallysimpleworks.com/slideshow
你有什麼問題? – Ally
嗨,夥計,檢查我剛剛發佈的鏈接。 – Matthew