PDA

View Full Version : Disable images ajax rss ticker



GIRLSONPOLAROID
03-28-2011, 08:32 PM
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.

GIRLSONPOLAROID
03-28-2011, 08:32 PM
So yes, to make simple: I just want the text into descriptions.

ddadmin
03-28-2011, 11:44 PM
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:


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:


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

GIRLSONPOLAROID
03-29-2011, 10:58 AM
Yeah! That works perfectly!
Fast answers, straight to the point, this forum is ace.

Thx a lot!

GIRLSONPOLAROID
03-29-2011, 10:59 AM
Oh well.. I got another issue now.

Flash is coming with feeds.

How can I remove them ?

GIRLSONPOLAROID
03-30-2011, 10:52 AM
Ok I opened a new thread for this issue

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