PDA

View Full Version : rss ticker target in blank



Jennie
02-09-2007, 03:39 PM
1) Script Title: rsstickerajax

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/rsstickerajax/index.htm

3) Describe problem:
Hello,

1-I want to have target link in blank. target=_blank for each link on rss news.
Currently the target of the news open in the same window.

How to modify that ?

2- How to display more than 1 news by website. I want to display the 5 news of CNN for exemple.

Thank you

jscheuer1
02-09-2007, 03:55 PM
The easiest method would be to set the base target for the page in the head:


<base target="_blank">

But, any other links on the page that you don't want opening new windows would need to have their targets specified as _self:


<a href="whatever.htm" target="_self">Link Text or image tag</a>

Jennie
02-09-2007, 08:21 PM
Thank you jscheuer It's working nice :)

Do you know how to add more news ?

I have cnn.xml for exemple. It's display only 1 news.
I want to add more news on the same table from cnn


cnn news
This is the first news
date
the first news is...
This is the second news
date
the second news is...

jscheuer1
02-10-2007, 05:13 AM
I don't understand. Could you please explain in more detail what you want?

Jennie
02-10-2007, 06:22 PM
Sorry,

I want to display more than one news from the same website.

jscheuer1
02-10-2007, 06:51 PM
The demo page does that, doesn't it? One at a time but, more than one. Anyways, I thought about this some more since my last post. I think you want several at once. Does it matter how many? I have some ideas but no PHP enabled server where I would feel comfortable testing them out. Before I get into coding anything specifically, let's get your requirements as narrowly defined as possible, OK?