PDA

View Full Version : How to make news bar?


Xtremee
10-22-2006, 08:11 PM
Hi all,

i wanna to make newsbar that move automatically and the informattion on it don't linked (i.e. can't click on it to go to link) just wanna news.
HOw i can do this?



Regards,
Xtremee

Grobulous
10-22-2006, 10:30 PM
do you want marquee text? if so, all you have to do is add something like this:

<marquee>news news news</marquee>

and it should scroll across the page. a list of marquee settings can be found here: http://www.htmlcodetutorial.com/_MARQUEE.html

if you mean from a source like a forum, that would include php and I don't really know php.

Xtremee
10-22-2006, 10:38 PM
@Grobulous ,
1st thanks for your reply.
thanks for ur code. That what i'm looking for

Xtremee
01-28-2007, 01:30 AM
Hi
Thanks for all who try to help
i wanna newsbar like this one in the top of http://www.soft32.com
i check the source of the page and i don't think that it is marquee. I think they use some java scripts!!
if it java can any one tell me what is the script that i need?
Thanks in advance

Regards,
Xtremee

FullMetal_Ed
01-28-2007, 04:05 PM
they might have used javascript, but it can be done without it. try this
<marquee height="10" width="100%" amount="4" onmouseover=this.scrollAmount="0" onmouseout=this.scrollAmount="4" bgcolor="#CCFFFF">This is where you put your information.</marquee>

Edit the values accordingly.:)

Xtremee
01-29-2007, 08:46 AM
1st thanks for your reply
Your code is good. but what about the NEWS image or HOw to get the word as they have in Soft32 ?!
Thanks in advance

Xtremee
02-03-2007, 03:04 PM
Any ideas?

Shoot2Kill
02-03-2007, 04:25 PM
Do you meen something like this...



<style type="text/css">
span#news{
background-color: #FCC223;
font-weight: bold;
color: #FFFFFF;
}
</style>

<MARQUEE height="10" width="100%" amount="4" onmouseover=this.scrollAmount="0" onmouseout=this.scrollAmount="4" bgcolor="#CCFFFF">
<span id="news">
&nbsp;NEWS&nbsp;
</span>
&nbsp;&nbsp;
<a href="#">New News...</a>
&nbsp;&nbsp;
<span id="news">
&nbsp;NEWS&nbsp;
</span>
&nbsp;&nbsp;
<a href="#">More News</a>
&nbsp;&nbsp;
<span id="news">
&nbsp;NEWS&nbsp;
</span>
&nbsp;&nbsp;
<a href="#">Even More News</a>
&nbsp;&nbsp;
<span id="news">
&nbsp;NEWS&nbsp;
</span>
</MARQUEE>

Xtremee
02-07-2007, 08:18 PM
excellent
Thanks man that what i'm actullay wanna it
Thanks again

ahallicks
02-08-2007, 02:28 PM
The site you linked to actually uses an embedded iFrame that is coded in a separate page and linked into that page at the top of the table... might be easy to do it this way too?

Xtremee
02-19-2007, 03:47 PM
The site you linked to actually uses an embedded iFrame that is coded in a separate page and linked into that page at the top of the table... might be easy to do it this way too?
Thanks for this info.
Can you help me more and give me the way to make it?

ahallicks
02-19-2007, 05:05 PM
Well they have:


<iframe id='newsticker' name='newsticker' src='/siteNewsTicker.html' framespacing='0' frameborder='no' scrolling='no' marginwidth='0' marginheight='0' align='absmiddle' vspace='0' hspace='0' width='891' height='25' allowtransparency='true'></iframe>


as you can see the src is siteNewsTicker.html, a normal HTML page...

After looking at the HTML for the newsticker, it's mostly spans with links and information styled, but it looks like some javascript is used. Here is the page for the news ticker: http://www.soft32.com/siteNewsTicker.html

And the js file is:
http://www.soft32.com/js/webticker_lib.js

If you look at the javascript file it looks like they're used someones free script to make the news ticker. Follow the link for more information and the source code