Results 1 to 10 of 10

Thread: One Stop Slide Show

  1. #1
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default One Stop Slide Show

    1) CODE TITLE: One Stop Slide Show

    2) AUTHOR NAME/NOTES: see Link

    3) DESCRIPTION:

    A slide show with eighteen modes of execution
    plus 'random' to randomly change the mode.
    0 = opacity,
    1 = slide in/out right,
    2 = slide in/out left,
    3 =slide in/out down,
    4 = slide in/out up,
    5 = slide in right,
    6 = slide in left,
    7 = slide in down,
    8 = slide in up,
    9 = left top,
    10 = right top,
    11 = right bottom,
    12 = left bottom,
    13 = horizontal blind,
    14 = vertical blind,
    15 = square in,
    16 = square out,
    17 = Simple Swap,
    100 = random.
    The slide show content may be defined by the HTML code or if images by an array during initialisation.
    With optional Pagination, slide in panels, add event calls and persistance to remember the last frame.

    The script utilises my animator script 'zxcAnimate' (http://www.vicsjavascripts.org.uk/Animate/Animate.htm)
    4) URL TO CODE: http://www.vicsjavascripts.org.uk/On...pSlideShow.htm

    or, ATTACHED BELOW (see #3 in guidelines below):
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Very nice in non-IE. Not very smooth in IE.
    ===
    Arie Molendijk

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Lots of options. Impressive.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  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

    Quote Originally Posted by molendijk View Post
    Very nice in non-IE. Not very smooth in IE.
    ===
    Arie Molendijk
    In IE 8, I agree. I wouldn't want it. However, in compatibility mode (more like IE 7) it's fine. Though not an ideal solution, a meta tag or PHP header may be used to force compatibility mode.

    If when coding this Vic you made certain special considerations for IE 7 to get it to work right in it (other than alpha opacity filter for fading, if any), perhaps removing these for IE 8 and above would solve this jerkiness issue in those browsers.

    I often find that, other than filter for fading, IE 8 behaves more like other browsers (Opera, Safari, Firefox) than it does like IE 7.
    - John
    ________________________

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

  5. #5
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    I have updated the script to limit the animation calls to those required for the effect in stead of all five

    I do not use IE8

    will this resolve resolve the opacity issue?

    Code:
    function zxcOpacity(obj,opc){
     if (opc<0||opc>100) return;
     if (document.defaultView&&document.defaultView.getComputedStyle){
      obj.style.opacity=obj.style.MozOpacity=obj.style.WebkitOpacity=obj.style.KhtmlOpacity=opc/100-.001;
     }
     else {
      obj.style.filter='alpha(opacity='+opc+')';
     }
    }
    Last edited by vwphillips; 09-22-2010 at 12:15 PM.
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  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

    I never said there was an opacity issue. If there was, it's fine now.

    Also, the jerkiness in IE 8 is reduced. Before it always happened. Now only when two or more shows are transitioning at the same time. This is regardless of the transition type.
    - John
    ________________________

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

  7. #7
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    thanks for the feedback
    I guess it is alot to expect six examples to change at once, I will stagger the Auto Hold duration of my examples.
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  8. #8
    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

    The funny thing is that it transitions fine in IE 8 when IE 7 compatibility mode is used.

    This leads me to believe (as is often the case with IE 7 and earlier, but perhaps not in your code) that you needed to branch for IE to get it to work right, like probably in your zxcAnimate unit. If so, these branches (except for those dealing with opacity) should be closed to IE 8, as it behaves in most other respects more like Firefox and others than like earlier IE browsers do.

    For example, I have a code (snippet only here):

    Code:
    	var isPaused = false, overflow, ie7 = 0, removeFilter;
    	/*@cc_on @*/
    		/*@if(@_jscript_version >= 5)
    			ie7 = $.browser.version < 8? 16 : 0;
    		@end @*/
    This allows me later to apply a fudge for the extra offset IE 7 and earlier render in their box model for, in this case the li element. IE 8 doesn't have this problem, so it will have the same value as all others here, 0.

    Full code:

    http://home.comcast.net/~jscheuer1/s..._ticker/up.htm
    - John
    ________________________

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

  9. #9
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Quote Originally Posted by vwphillips View Post
    Will this resolve resolve the opacity issue?
    Code:
    function zxcOpacity(obj,opc){
     if (opc<0||opc>100) return;
     if (document.defaultView&&document.defaultView.getComputedStyle){
      obj.style.opacity=obj.style.MozOpacity=obj.style.WebkitOpacity=obj.style.KhtmlOpacity=opc/100-.001;
     }
     else {
      obj.style.filter='alpha(opacity='+opc+')';
     }
    }
    On my machine using IE8, the animation still a bit jerky.
    ===
    Arie.

  10. #10
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    again thank you for the feedback

    It looks as if I am forced to upgrade??? to IE8 to see what is going on

    my animator is so simple, why does only IE find it so difficult?
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

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
  •