html - jQuery Rotator making page jump when the first quote shows up. -


hello working on page http://rcmhosting.com/accounts/production/fortner/

i installed quote rotator in footer of page, when quotes rotate appears space took first, or "current" quote still leaves space there , 2nd quote jumps place first quote (or "current") quote disappears.

<script type="text/javascript"> $(document).ready(function() { //quotes rotator var divs = $('.cbp-qtcontent');  function fade() { var current = $('.current'); var currentindex = divs.index(current), nextindex = currentindex + 1;  if (nextindex >= divs.length) { nextindex = 0; }  var next = divs.eq(nextindex);  next.stop().fadein(1500, function() { $(this).addclass('current'); });  current.stop().fadeout(1500, function() { $(this).removeclass('current'); _startprogress() settimeout(fade, 1500); }); }  function _startprogress(){ $(".cbp-qtprogress").removeattr('style'); $(".cbp-qtprogress").animate({ } , 8000); }  _startprogress() settimeout(fade, 8000); }); </script> 

and here css!

.cbp-qtrotator { float: left; margin: 0; padding-top: 11px } .cbp-qtcontent { height: auto; top: 0; z-index: 2; display: none } .cbp-qtrotator .cbp-qtcontent.current { display: block } .cbp-qtrotator blockquote1 { margin: 40px 0 0 0; padding: 0 } .cbp-qtrotator blockquote1 p { color: #888; font-weight: 300; margin: 0.4em 0 1em } .cbp-qtrotator blockquote1 footer { } .cbp-qtrotator blockquote1 footer:before { content: '― ' } .cbp-qtrotator .cbp-qtcontent img { float: right; margin: 50px 0 0 50px } .cbp-qtprogress { position: absolute; background: #47a3da; height: 1px; width: 0%; z-index: 1000 } 

and html!

<div class="cbp-qtcontent current"> <blockquote1> <p>"our relationship fortner insurance services has been wonderful! know     fortner insurances can , well! have our business, home, workman's comp, auto, health, life, , boat - , important!"</p> <footer>karl jones, owner</footer> </blockquote1> </div> 

you try css "hack"

#cbp-qtrotator > div { position: absolute; top: 43px; left: 0; } 

i using absolutely positioned elements can overlay themselves.

also <blockquote1> not valid html element.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -