Results 1 to 3 of 3

Thread: Featured Content Slider script AND CSS

  1. #1
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Featured Content Slider script AND CSS

    1) Script Title:
    Featured Content Slider script

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...tentslider.htm

    3) Describe problem:
    Having an issue with my CSS drop down menu and this featured content slider script. It appears that the .js file "contentslider.js" is adding 1 to the z.index propperty of each one of the divs when it rotates to the next image automatically.

    Trying to set the z.index of the css menu is proving to be impossible, so i was wondering if there is a way to reset the z.index propperty of the layer once its been viewed.

    In FireBug i can see that the z.index is constantly increasing in value when the image rotates. Im guessing that it is something to do with this line of code:

    [CODE]turnpage:function(setting, thepage, autocall){
    var currentpage=setting.currentpage //current page # before change
    var totalpages=setting.contentdivs.length
    var turntopage=(/prev/i.test(thepage))? currentpage-1 : (/next/i.test(thepage))? currentpage+1 : parseInt(thepage)
    turntopage=(turntopage<1)? totalpages : (turntopage>totalpages)? 1 : turntopage //test for out of bound and adjust
    if (turntopage==setting.currentpage && typeof autocall=="undefined") //if a pagination link is clicked on repeatedly
    return
    setting.currentpage=turntopage
    setting.contentdivs[turntopage-1].style.zIndex=++setting.topzindex
    this.cleartimer(setting, window["fcsfade"+setting.id])
    setting.cacheprevpage=setting.prevpage
    if (setting.enablefade[0]==true){
    setting.curopacity=0
    this.fadeup(setting)
    }x[ICODE]

    Looking at this is seems that its adding 1 to the z.index propperty. Is it possible to -1 from this once the image has rotated?

    Im so close to finishing the design of my website, and this is 1 thing that is holding me back.

    Any help would be greatly appreciated.

    Many thanks in advance
    eKKo

    http://loxtech-gaming.co.uk
    Site in question: http://loxtech-gaming.co.uk/dev/dev2

  2. #2
    Join Date
    Aug 2004
    Posts
    9,889
    Thanks
    3
    Thanked 964 Times in 953 Posts
    Blog Entries
    15

    Default

    As long as your CSS menu has a higher z-index than the FCS's main DIV (by default the DIV with class="sliderwrapper"), it shouldn't matter that the z-index value increases within the FCS's inner DIVs actually...
    DD Admin

  3. #3
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    We tried putting the z.index value of the css menu to 999, with no effect.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •