document.writeln(""); document.writeln("Loading Bollywood News flash..."); function NewsPopup(url) { popupHandle = open(url, 'BollywoodSamachar', 'width=700,top=0,left=0,directories=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,copyhistory=no,status=no'); } // Ticker startup function startTicker() { // Define run time values theCurrentStory = -1; theCurrentLength = 0; // Locate base objects if (document.getElementById) { theAnchorObject = document.getElementById("tickerAnchor"); runTheTicker(); } else { document.write(""); return true; } } // Ticker main run loop function runTheTicker() { var myTimeout; // Go for the next story data block if(theCurrentLength == 0) { theCurrentStory++; theCurrentStory = theCurrentStory % theItemCount; theStorySummary = theSummaries[theCurrentStory].replace(/"/g,'"'); theTargetLink = theSiteLinks[theCurrentStory]; theAnchorObject.href = theTargetLink; thePrefix = ""; //" + theLeadString + " } // Stuff the current ticker text into the anchor theAnchorObject.innerHTML = theStorySummary.substring(0,theCurrentLength) + whatWidget(); // Modify the length for the substring and define the timer if(theCurrentLength != theStorySummary.length) { theCurrentLength++; myTimeout = theCharacterTimeout; } else { theCurrentLength = 0; myTimeout = theStoryTimeout; } // Call up the next cycle of the ticker setTimeout("runTheTicker()", myTimeout); } // Widget generator function whatWidget() { if(theCurrentLength == theStorySummary.length) { return theWidgetNone; } if((theCurrentLength % 2) == 1) { return theWidgetOne; } else { return theWidgetTwo; } } // Main starts here. var theCharacterTimeout = 50; var theStoryTimeout = 2000; var theWidgetOne = ''; var theWidgetTwo = '-'; var theWidgetNone = ''; var theLeadString = 'Newsbar:   '; var theSummaries = new Array(); var theSiteLinks = new Array(); var theItemCount = 25;theSiteLinks[0]='Javascript:NewsPopup("http://www.BollywoodSamachar.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.santabanta.com/bollywood/127919/how-deepika--ranveer-wedding-is-killing-bollywood/");'; theSummaries[0]='How Deepika - Ranveer wedding is killing Bollywood? - SantaBanta.com'; theSiteLinks[1]='Javascript:NewsPopup("http://www.BollywoodSamachar.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.santabanta.com/bollywood/127916/how-prabhas-is-making-millions/");'; theSummaries[1]='How Prabhas is making millions? - SantaBanta.com'; theSiteLinks[2]='Javascript:NewsPopup("http://www.BollywoodSamachar.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.santabanta.com/bollywood/127912/ankita-lokhande-starts-manikarnika-dub-goes-gaga-about-kangana-ranaut/");'; theSummaries[2]='Ankita Lokhande starts Manikarnika dub, goes gaga about Kangana Ranaut! - SantaBanta.com'; theSiteLinks[3]='Javascript:NewsPopup("http://www.BollywoodSamachar.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.santabanta.com/bollywood/127913/do-you-know-what-is-kgf/");'; theSummaries[3]='Do you know what is KGF? - SantaBanta.com'; theSiteLinks[4]='Javascript:NewsPopup("http://www.BollywoodSamachar.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.santabanta.com/bollywood/127917/singham-goes-punjabi/");'; theSummaries[4]='Singham goes Punjabi! - SantaBanta.com'; theSiteLinks[5]='Javascript:NewsPopup("http://www.BollywoodSamachar.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.santabanta.com/bollywood/127915/mirzapurs-cast-and-crew-come-together-for-a-star-studded-event/");'; theSummaries[5]='Mirzapur's cast and crew come together for a star-studded event! - SantaBanta.com'; theSiteLinks[6]='Javascript:NewsPopup("http://www.BollywoodSamachar.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.santabanta.com/bollywood/127910/mika-singh-has-us-chanting-with-northern-warriors-anthem/");'; theSummaries[6]='Mika Singh has us chanting with Northern Warriors anthem - SantaBanta.com'; theSiteLinks[7]='Javascript:NewsPopup("http://www.BollywoodSamachar.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.santabanta.com/bollywood/127911/a-roar-for-change--a-new-poster-of-emraan-hashmis-tigers-out-now/");'; theSummaries[7]='A roar for change, a new poster of Emraan Hashmi's Tigers out now! - SantaBanta.com'; theSiteLinks[8]='Javascript:NewsPopup("http://www.BollywoodSamachar.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.santabanta.com/bollywood/127909/bigg-boss-12-shivashish-mishra-kicked-out-of-the-house/");'; theSummaries[8]='Bigg Boss 12: Shivashish Mishra kicked out of the house? - SantaBanta.com'; theSiteLinks[9]='Javascript:NewsPopup("http://www.BollywoodSamachar.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.santabanta.com/bollywood/127918/find-what-kriti-sanon-is-learning-for-her-next-movie/");'; theSummaries[9]='Find what Kriti Sanon is learning for her next movie? - SantaBanta.com'; theSiteLinks[10]='Javascript:NewsPopup("http://www.BollywoodSamachar.com/ShowNews.asp?NewsSite=&NewsUrl=http://www.santabanta.com/bollywood/127914/102-not-out-is-heading-to-china/");'; theSummaries[10]=''102 Not Out' is heading to China! - SantaBanta.com'; startTicker();