Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: Incorporating fade in/out of rss items - gajaxrssticker

  1. #11
    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 figured out why the one that fades in and out just the title doesn't work in IE 8. It's because IE 8 requires that the element have "layout" (a proprietary use of the term, with special rules required for the element to use filters). For that it must be display: block (well inline-block will do, but IE 7 cannot render that properly). So for IE 8 and less we can add a conditional stylesheet to the head of the page:

    Code:
    <!--[if lt IE 9]>
    <style type="text/css">
    .titlefield{ /*CSS for RSS title link in general*/
    display: block;
    float: left;
    }
    
    .labelfield{ /*CSS for label field in general*/
    display: block;
    float: left;
    margin-right: 0.5em;
    }
    </style>
    <![endif]-->
    But, since other browsers can do it this way as well, we could simply add these rules to the existing selectors for those elements. One way or another, IE 8 and less need those styles in order to do the fading out and in of the title.

    I also developed the script a little further:

    gajaxtickerfade3a.js

    In this version it acts as before fading the title out and then in for each transition unless there's a new label. Then it fades out everything, then fades in the new label, and then fades in the new title.

    Just a reminder here, this will only work if the ticker is showing only one item at a time. I know you probably already knew that, and that's what the ticker you're using does, but just in case you are thinking of changing that, or for others reading this post. If there are more than one item at a time, you can use the version 2 or 2a scripts from earlier in this thread.
    Last edited by jscheuer1; 09-19-2013 at 11:20 AM. Reason: Code Improvement
    - John
    ________________________

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

Similar Threads

  1. Help with incorporating link within an onmouseover image
    By MartinKearns in forum JavaScript
    Replies: 3
    Last Post: 03-10-2013, 12:10 AM
  2. Problems incorporating Ultimate Fade-in slideshow (v2.4)
    By ellenjones6 in forum Dynamic Drive scripts help
    Replies: 12
    Last Post: 08-14-2012, 05:56 PM
  3. Incorporating DD scripts into wordpress
    By matt8088 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 01-05-2011, 11:01 PM
  4. Replies: 3
    Last Post: 01-28-2010, 09:24 AM
  5. Incorporating PHP
    By Medyman in forum PHP
    Replies: 11
    Last Post: 07-12-2007, 04:04 PM

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
  •