Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,
I have a slider div as

HTML
<div><div id="simplegallery2" style="  width:202px;height:160px; display:block;z-index:-1;"></div></div>    


JavaScript
    <script type="text/javascript" src="Banner/js/jquery.min.js"></script>
    <script type="text/javascript" src="Banner/js/simplegallery.js"></script>
    
      <script type="text/javascript">
          var mygallery2 = new simpleGallery({
              wrapperid: "simplegallery2",
              dimensions: [202, 160],
              imagearray: [

                  ["Images/Division/CircularMagnet/lmr_x.png"],
                  ["Images/Division/CircularMagnet/lmr1_x.png"]
              

              ],
              autoplay: [true, 2500, 100],
              persist: true,
              fadeduration: 2000,
              oninit: function () {
              },
              onslide: function (curslide, i) {

              }
          })

</script> 


The problem is when i am scrolling the page the slider div is coming upward of the other element
Posted
Updated 6-May-13 23:24pm
v2

1 solution

Typically you must provide a "position" attribute for the div you wish to apply the "z-index" value to. Try that and see if that will get it fixed for you. position: absolute|relative|fixed etc.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900