Does anyone have guidance as to how BBC News (http://news.bbc.co.uk/) generates its news ticker "Latest" that appears at the top of the screen? I am interested in creating something like this for my site.
I have a news ticker in my site, which is using prototype. It works good in all browsers, but the problem is while loading the news ticker content is rendering outside the div.
Is there any ways to hide the content while loading or any other ideas to prevent it loading outside the div.
how to change basic settings etc.But I have a problem changing the height of the following "news-ticker"
[URL]
You can see that I have different length of text in the testimonials and they appear now with fixed height. Where can I change the height so it's flexible to the amount of text. I've tried to changed it in the <li> and the <ul> but that didn't worked for me.
I am writing my own vertical scrolling news ticker as I can't find one I like. The basic functionality is:
Get the first item in a container (like a UL) and store it temporarily Remove it. Add the removed item to the bottom of the list. Slide the rest of the list upwards. In the example below, a UL is the target container. Each LI in the UL is removed in turn, added to the bottom and the whole thing works pretty good.Except in Internet Explorer 7 (IE7). I'm not even trying to get this working in IE6. In IE7, when the item is removed, there is no sliding animation at all.
I have been looking for rss scrollers/tickers which go horizontally, I have found one which goes vertically and is very good, but I have no idea how to change this to go hoirzontally.
Does anyone know of a script I can use to solve my problem.
Obviously it is impossible to show the script I am using for the vertical one as it is made up of several files.
// Ticker Messages ( HTML Tags supported) var qiksearch_ticker_text = new Array ("Qiksearch.com", "FREE JavaScripts by Premshree Pillai", "Articles by Premshree Pillai", "Intellisearch Bar FREE Download");
// Ticker Message URLs var qiksearch_ticker_URL = new Array ("http://www.qiksearch.com", "http://www.qiksearch.com/javascripts.htm", "http://www.qiksearch.com/articles.htm", "http://www.qiksearch.com/intellisearch.htm");
// Ticker Message URLs' Target (1 for NEW WINDOW, 0 for SAME WINDOW) var qiksearch_ticker_target = new Array ("0", "0", "0", "1");
var qiksearch_ticker_width = 390; // The width of the Ticker var qiksearch_ticker_height = 25; // The height of the Ticker var qiksearch_ticker_borderw=1; // Border width var qiksearch_ticker_borderc="#808080"; // Border Color var timeOutVal=200; // Delay in milliseconds var isPause=false; // true if you want pause on mouseover, else false // setting to true is a bit buggy
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1; var ns6=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1; var ns4=document.layers; var qiksearch_tickerObj; var ticker_left_ns4=(screen.width/2-20)-Math.round(qiksearch_ticker_width/2);
// Setting qiksearch_tickerObj depending on Browser function setTickerObj() { if(ie4) { qiksearch_tickerObj=document.all.qiksearch_js_ticker; } if(ns6) { qiksearch_tickerObj=document.getElementById("qiksearch_js_ticker"); } }
// Generating Final Hex Color function joinColor(getColor) { return (getColor + Ɔ' + getColor + Ɔ' + getColor + Ɔ'); }
// Reset function resetAll() { div_count=0; colorVal=15; }
// URL Navigation function function goURL() { if(qiksearch_ticker_target[div_count]=="0") { location.href=qiksearch_ticker_URL[div_count]; } else { if(qiksearch_ticker_target[div_count]=="1") { window.open(qiksearch_ticker_URL[div_count]); } } }
// Setting Delay on MouseOver and MouseOut var temp_timeOutVal=timeOutVal; function delay_timeOutVal() { timeOutVal=100000000000000; setTimeout("writeDiv()",timeOutVal); }
function resume_timeOutVal() { timeOutVal=temp_timeOutVal; setTimeout("writeDiv()",timeOutVal); }
<!-- ******************************** Message Center 4.0 Designed for older browsers. By Skyzyx Genesis ******************************** -->
<html> <head> <title> Message Center 4.0 </title> <script language="javascript"> <!--
// Basic Configuration var zDelay=4000; var zCurrMsg=0; var zContents=new Array;
// Site Switcher var site=1;
if (site==1) { // Messages zContents[0]="This is site 1 message 1"; zContents[1]="This is site 1 message 2"; zContents[2]="This is site 1 message 3"; zContents[3]="This is site 1 message 4"; zContents[4]="This is site 1 message 5"; } else if (site==2) { // Messages zContents[0]="This is site 2 message 1"; zContents[1]="This is site 2 message 2"; zContents[2]="This is site 2 message 3"; zContents[3]="This is site 2 message 4"; zContents[4]="This is site 2 message 5"; } else if (site==3) { // Messages zContents[0]="This is site 3 message 1"; zContents[1]="This is site 3 message 2"; zContents[2]="This is site 3 message 3"; zContents[3]="This is site 3 message 4"; zContents[4]="This is site 3 message 5"; } else if (site==4) { // Messages zContents[0]="This is site 4 message 1"; zContents[1]="This is site 4 message 2"; zContents[2]="This is site 4 message 3"; zContents[3]="This is site 4 message 4"; zContents[4]="This is site 4 message 5"; }
function zMessageCenter() { var zMessages=zContents.length;
if (document.getElementById) { zMCID=document.getElementById("ShowMessageCenter"); zMCID.innerHTML=zContents[zCurrMsg]; }
// MESSAGE COUNTER if (zCurrMsg == (zMessages-1)) zCurrMsg=0; else zCurrMsg++;
I would like to have a box in which to loop several html files (every 5 seconds or more)or to change the file by pointing buttons at the bottom at the box(without making click, just mouseover)I don't know if this is only based on JavaScript.I don't know if the terms (box / loop / html / buttons) describe exactly what I want to have.I Googled it for hours.To be more specific, you could see the well known radio site URL... and on the left there is Today's Top Stories.
Does anyone know of a good Javascript typewriter ticker that allows you to insert HTML into the ticker. I have found lots but when HTML is inserted, the ticker pauses at the point it reaches the HTML as well as applying the formatting. I need one whose character timer ignores characters in tags. I need to apply font color and weight styling to different words.
Ive created a ticker that reads my RSS files by loading the xml in an Ajax function.
To refresh the content, Ive used a settimeout that reloads the xml, through ajax calls, and refresh the portion of the page with the rss content.
It works fine in Firefox , where the content is always updated, while i have problems in IE since it seems that the RSS is cached at the first page opening and so all the automatical refreshes just dont work(the xml received is always the old one).
I have a question about this scroller/ticker script (http://www.dynamicdrive.com/dynamicindex2/mikescroll.htm) I'm working with. I'm able to get the script working on it's own page, but when I put into my HTML I'm having an issue where all the test lays on-top of each other and the scrolling is broken (see attached image).
I need to be able to import news feeds from various web sites.I only want to display the title and the first line or two from the source, with a link back to the source. I guessing it's JavaScript, but I really don't know where to start.
I'm trying to make a news slider for a website in js. This is what I currently have:
<script type="text/javascript"> var refresh = setInterval("refresh()", 5000); function refresh()[code]....
The id #top_news is an empty div, in which the news are shown, and the file top_ten.php gets top 10 news from the database, and outputs a random one. The script is working fine, but what I want is, for news to slide in and when a new article slides in, the old one slides out. It would be even better, if there is an excistant script, for news or divs (a small image and text).ALSO, when I refresh/load the site, it takes the time from setInterval, to load the news.
Does anyone know of a tutorial for how I can do what google news does for "Personalize this page" It seems like it is moveable divs, that lock into position?
1. I have code to show tip like: <a class="notvisible" onclick="mytip.disable();" href="javascript:void(0);">Close</a> How is correct Javascript code to Close this tip when clicked?
2. How to move next news feed with click on arror icon and back icon? <a onclick="mynews.previous();" href="javascript:void(0);">Previous</a> <a onclick="mynews.next();" href="javascript:void(0);">Next</a>
How is correct Javascript code to move news item next and prevoius news? when clicked? PHP Code: <script type="text/javascript"> mynews.init(); mytip.init(); </script>
[URL] The ticker below the navbar works fine in FF and Safari, does not work in IE8 (and mostly likely other IE version as well). In IE, the live page will not even load; will load locally but the ticker doesn't work (remains static). Here is the .js: