Results 1 to 6 of 6

Thread: Disable images ajax rss ticker

  1. #1
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Disable images ajax rss ticker

    1) Script Title: Ajax RSS ticker

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...rssticker.html

    3) Describe problem:
    I'd like to get rid of images into descriptions. And this, completely, so if the image is offline, there's still the box, I want to get rid of it too.


    THX in advance.

  2. #2
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    So yes, to make simple: I just want the text into descriptions.

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

    Default

    You can hide the images inside the ticker by using CSS, speficially, by targeting the "img" element of your RSS ticker containers based on the laters' ID attributes. For example, lets say this is your first ticker:

    Code:
    var cssfeed=new gfeedrssticker("example1", "example1class", 2000, "_new")
    cssfeed.addFeed("CSS Drive", "http://www.cssdrive.com/index.php/news/rss_2.0/") //Specify "label" plus URL to RSS feed
    cssfeed.displayoptions("date") //show the specified additional fields
    cssfeed.setentrycontainer("div") //Wrap each entry with a DIV tag
    cssfeed.filterfeed(10, "date") //Show 10 entries, sort by date
    cssfeed.entries_per_page(1)
    cssfeed.init()
    It has an ID attribute of "example1", so in your CSS, you can hide the images with a CSS rule such as:

    Code:
    <style>
    #example1 img{
    display:none;
    }
    </style>
    DD Admin

  4. #4
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah! That works perfectly!
    Fast answers, straight to the point, this forum is ace.

    Thx a lot!

  5. #5
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh well.. I got another issue now.

    Flash is coming with feeds.

    How can I remove them ?

  6. #6
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok I opened a new thread for this issue

    http://www.dynamicdrive.com/forums/s...ad.php?t=61647

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
  •