PDA

View Full Version : Featured Content Slider script AND CSS



_eKKo_
07-20-2009, 01:02 PM
1) Script Title:
Featured Content Slider script

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.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

ddadmin
07-20-2009, 05:36 PM
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...

_eKKo_
07-20-2009, 08:45 PM
We tried putting the z.index value of the css menu to 999, with no effect. :(