Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Ultimate Fade-in slideshow

  1. #1
    Join Date
    Nov 2010
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ultimate Fade-in slideshow

    1) Script Title: Ultimate Fade-in slideshow (v2.4)

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

    3) Describe problem:
    Hi guys! The problem is that I have several popup windows on the website and the slideshow that I've created using scripts that I mentioned always appears on top of the all popup windows. The popup windows that I've created, I've used this very small tutorial .
    U can see this problem in the example that I've created and uploaded on server. irakli-k.com/xara/index.htm
    Last edited by upf; 11-08-2010 at 08:39 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The script gives the slideshow container a very high CSS z-index value (1000). To get your popup DIVs to show up above the slideshow, try giving them an even higher z-index value, for example, 2000:

    Code:
    <div id="popup" style="z-index:2000">pop up here</div>
    DD Admin

  3. #3
    Join Date
    Nov 2010
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for reply.
    Code:
    <div id="popup" style="z-index:2000">pop up here</div>
    "Pop up here" you mean name of popup or entire code of popup? Like
    Code:
    <div id="fadeshow2"></div>
    How do I know which is my popup?

    Sorry for noob questions, it's first time that I'm using web programming.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    What ddadmin is suggesting is to find the popup element and give it a z-index style of 2000.

    Because you don't appear to know what code makes or governs the style of the popup, it would be hard for us to guess. It should be easy enough to see if we could see the live page though:

    Please post a link to a page on your site that contains the problematic code so we can check it out.

    Or if you just cut and paste the popup code from somewhere on the web, perhaps a link to where you got the popup code would be sufficient. A link to your live page would be better. It can just be an orphan page somewhere on your site/the web, doesn't have to be linked to or from your other pages. It just has to demonstrate the problem.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Nov 2010
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    jscheuer1
    Thank you for reply.
    Here is an example of the problem http://irakli-k.com/xara/index.htm If you click on the click me button the window pops up but the slideshow appears on top of the popup, there should be close button but it's behind of the slideshow. This is only example, because the original is still in production , but basicly it will do the same thing - pupup window with close button and HTML placeholder.
    Also you can download this example packed with win-rar form here http://irakli-k.com/xara/xara.rar

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    OK, see the notes below for some explanation. What you need to do is add a class to the close button and one to the button that opens the pop up. If in your finished version you have more than one button to open the pop up with various contents, you may add the opener class to each of them (from your demo's source code, additions highlighted):

    Code:
     <a class="opener" href="javascript:xr_cpu(2)" onclick="return(xr_nn());">
      <img class="xr_ap" src="index_htm_files/2.png" alt="" title="" onmousemove="xr_mo(this,0,event)" style="left: 39px; top: 471px; width: 147px; height: 87px;"/>
     </a>
    and:

    Code:
     <a class="close" href="javascript:xr_ppc(%27xr_xp2%27);" onclick="return(xr_nn());">
      <img class="xr_ap" src="index_htm_files/10.png" alt="" title="" onmousemove="xr_mo(this,2,event)" style="left: 302px; top: 75px; width: 60px; height: 19px;"/>
     </a>
    Then add this highlighted script near the end as shown:

    Code:
    <!--[if lt IE 7]><script type="text/javascript" src="index_htm_files/png.js"></script><![endif]-->
    <script type="text/javascript">xr_aeh()</script>
    <script type="text/javascript">
    (function($){
    	var fs = $('#fadeshow1');
    	$('a.opener').click(function(){
    		fs.css({zIndex: -1}).mouseenter();
    	});
    	$('a.close').live('mousedown', function(){
    		fs.css({zIndex: 'auto'}).mouseleave();
    	});
    })(jQuery);
    </script>
    </center>
    </body>
    </html>
    Notes: That's an old, old pop up script, or at least is based upon one without much done to update it to modern practices. I'd suggest finding another more modern one like:

    fancyBox

    it also uses jQuery, so you would only need one external script tag to jQuery.

    But there's a way as noted above, using the antiquated pop up script that you have. It's difficult to work with because it requires a visible stub in the markup from which it's launched. So we can't boost its z-index without obscuring the slideshow from the very beginning. It also uses mousedown and mouseup instead of the usual click events to work, and does so in such a way that makes modifying/adding to these events problematic.

    It has other drawbacks - It uses browser sniffing, a couple of strategically placed initialization commands, and a lot of global variables. But these don't present problems integrating it with the slideshow. They could if other scripts are employed on the same page with it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Nov 2010
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    jscheuer1
    Thank you very much for your help. It works now! But I'll try to use fancyBox script.

  8. #8
    Join Date
    Nov 2010
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    jscheuer1
    Just one question. Is it possible to assign to open button close command? I mean in my website, using this code.

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If the open button were to become a close button, what button will become the open button?

    I realize this is probably not what you meant. But there are a number of possibilities. Could you be more specific?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. #10
    Join Date
    Nov 2010
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I mean, if this button opens one layer :
    Code:
    <a class="opener" href="javascript:xr_cpu(2)" onclick="return(xr_nn());">
      <img class="xr_ap" src="index_htm_files/2.png" alt="" title="" onmousemove="xr_mo(this,0,event)" style="left: 39px; top: 471px; width: 147px; height: 87px;"/>
     </a>
    how do I assign to the same button command that will close some other layer.
    e.g. By clicking on button "A", will close "Layer1" and at the same time will open "Layer2".

    Apologize for my bad English.
    Last edited by upf; 11-13-2010 at 09:53 AM.

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
  •