1

在 vBulletin 4.1.4 版中,要打开带有附件的窗口,我使用 jQuery 插件Boxy。它在模板中,threadbit并且工作正常。但是当盒子正在加载时,我想显示正在发生的事情的图像。加载过程后,应删除此图像。对于这个过程,我修改了模板代码。

这有效:

<code class="html">
    <div class="myThemaRating" style="cursor:pointer;">
        <span onclick='new Boxy.load( "{vb:raw vboptions.bburl}/misc.php?{vb:raw session.sessionurl}do=showattachments&amp;t={vb:raw thread.threadid}", {title:"Anhang-Dateien im Forum:", closeText:"schliessen", cache:true} )'>
            <i m g s_c="{vb:stylevar i m g dir_icons}/Icon_6 . png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw thread.attach}}" />&nbsp;
        </span>
    </div>
</code>

但这不会:

<code>    
    <div class="myThemaRating" style="cursor:pointer;">
        <span onclick='new Boxy.load( "{vb:raw vboptions.bburl}/misc.php?{vb:raw session.sessionurl}do=showattachments&amp;t={vb:raw thread.threadid}", {title:"Anhang-Dateien im Forum:", closeText:"schliessen", cache:true }, behaviours:function(r) { $(r).click( $("# myImagesLoad _{vb:raw thread.threadid}").attr({ src: "{vb:stylevar i m g dir_icons}/ajax-loader . gif", alt: "Fenster wird geladen" }) ); } }  ' >
            <i m g s_c="{vb:stylevar imgdir_icons}/1pixel . png" id="myImagesLoad_{vb:raw thread.threadid}" width="10" border="1"> <!-- load image -->
            <i m g s_c="{vb:stylevar imgdir_icons}/Icon_6 . png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw thread.attach}}" />&nbsp;
        </span>
    </div>
</code>

有人知道我该如何解决这个问题吗?

4

0 回答 0