javascript - jQuery news ticker, tucking behind other jQuery plugins and Images -
i cannot recreate error in fiddle. here's link site (which never come down).
when arrive @ site, you'll see news ticker @ bottom of site. scroll down, you'll notice pass 1. main slider, 2. announcement slider, , 3. images military, nursing, , georgia... ticker gets tucked behind of these.
how can keep on top?
i've placed script called after dom loaded, , before slider script called...
$(function() { $('div.latest-news').jnewsbar({ position: 'bottom', effect: 'slideup', height: 25, animspeed: 600, puasetime: 4000, toggleitems: 5, theme: 's-orange' }); });
it's using jquery 1.9.1 (cdn).
first, can give css class jnewsbar
attribute z-index: 99
the reason other elements — on newsbar — on newsbar position: relative
makes them open z-index
. , newsbar position: absolute
— subject z-index
due fact, of other elements coming in dom later, getting higher "priority", newsbar.
so either use z-index: 99
or move jnewsbar
div down in html.
Comments
Post a Comment