English 中文(简体)
Slider Loads 每一次滑坡,然后正确处理
原标题:Slider Loads each slide before rendering correctly

如果你看一下我下面的URL,看上去可能无法真正迅速的联系。 您注意到了上层的梯子,把每个个体的滑坡装在垂直清单中(带上约1 000帕x空间),然后推敲它本应做些什么——这同标准梯子一样;在某个时候显示和消化一个滑坡。

是否有任何人就如何使我的梯子能够正确装载提出建议?

Livesite at >>

纽约总部 由于有点人,我想,我需要找到一个能够隐藏幻灯片的文字,直到电梯/页面在提交之前完全装满。

<><>><>Relevant j Query:<>>>>

<script type="text/javascript">

jQuery(document).ready(function($){
    $("#photo-rotator").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 6000);
});

</script>

<>Relevant Mark-Up:<>>>。

<!-- Top of Page Slider FRAGILE -->

<div style="min-height: 280px;">

<div id="photo-rotator" style="">
<?php $slide_id=1; ?>
<?php
 $featuredPosts = new WP_Query();
 $featuredPosts->query("showposts=3");
 while ($featuredPosts->have_posts()) : $featuredPosts->the_post();
 ?>

    <div id="slide-<?php echo $slide_id; $slide_id++;?>">
     <a href="<?php the_permalink() ?>" class="post-image">
         <?php the_post_thumbnail(  rotator-post-image  ); ?>
         <span class="title" style="font-style:italic; color:#999;"><?php the_title(); ?></span>
     </a>
     </div>

    <?php endwhile; ?><!--/close loop-->

    <ul id="slide-nav">
        <?php $nav_id=1; ?>
        <?php while ($featuredPosts->have_posts()) : $featuredPosts->the_post(); ?>
            <li>
                <a href="#slide-<?php echo $nav_id; ?>">
                    <span class="thumbnail" style="display:none;">
                    </span>
                    <p style="color:#F93; font-family:Georgia,  Times New Roman , Times, serif; font-size: 18px;"><? the_title(); $nav_id++;?></p>

                    <div style="">

                    <!--<?php the_excerpt(); ?>-->

                    <?php if($text= get_post_meta($post->ID, "slidetext", true)) { ?>
                         <div class="">

                         <p style="font-weight: normal; color: #333; font-family: Arial, Helvetica, sans-serif; font-size: 14px;"><?php echo $text; ?></p> 

                         </div>
                        <?php } //else { print"<div>"; } ?>  

                    </div>   

                </a>
            </li>
        <?php endwhile; ?><!--/close loop-->
        </ul>
        </div>

</div>        

<!-- End Top page Slider FRAGILE -->
最佳回答

你的法典是一线大事,问题无助于你的问题,但与你的问题有关:

ou d 注意上层的梯度,在绘制垂直清单(约1 000px空间)之前,将每一方的滑坡装入一个垂直清单。

wrap the all slider content with a div and given overflow:hidden; to prevent the high of +/-1000px on the pageload:

<>CSS

#photo-rotatorWrapper {
    width: 960px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
}

<><><><>>><>>>>><>>>>>>>

<div id="photo-rotatorWrapper">
  <div id="photo-rotator">
    ...
  </div>
</div>

Note: You may need to set other CSS declarations for that wrapper in order to stay positioned correctly within your current HTML structure.

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.