Devrama / Devrama-Slider

jQuery Image/HTML Slider Plugin
57 stars 32 forks source link

make a plugin and have a background problem #3

Closed kukki15344 closed 10 years ago

kukki15344 commented 10 years ago

At first I was very happy to find this slider, with an absolutely simple type of configuration - very nice. I have created some plugins of sliders, with more or less problems.

I copied their HTML code using copy&paste into HTML content part in our currently CMS (phpwcms 1.7.4) I have your long JScript code optimized - all without problems!

But now- when I start the CMS content HTML (http://spielwiese.strausberg-nord.de/devrama-slider.html), then the second image background is lost after the second slide content is loaded. I don't understand the rison.

I use now our special replacement tag {SHOW_CONTENT...} to load some other HTML-Parts from our CMS - the same reaction!

The code of my contentpart HTML:

<div id="my-slide" style="border: 2px solid;">

      <div style="background-color:#fff;">
                {SHOW_CONTENT:CP,534}
            </div>

      <div data-lazy-background="/picture/DrBackgr.jpg">
                {SHOW_CONTENT:CP,43}
      </div>
</div>
Devrama commented 10 years ago

In you cms, Your right block(#mainBlock) has position:absolute value in css. This makes some element of devrama slider are hidden. Give z-index value to #my-slide(your slider block).

kukki15344 commented 10 years ago

Well, it works - please do write this little feature in your documentations?

I will rework this plugin for all our content parts (more than 30 standard CPs) And I see only one problem with use of multimedia/ video part. Do you have/ can make a callback for these:

Click on video - slider must stopping in this moment and play the film- after click again or when the video on end the slider must go on - you can upgrade these feature wish?

Devrama commented 10 years ago

This zindex issue is not a bug. zindex with position absolute and relative for outer block is what you need to do depending on your outer html tag and css conditions. So, I would not add it on my documentation. Video is not supported and not planned at this moment.