JQuery :: Shuffling A List (Vertical News Ticker Concept)?
Jan 26, 2010
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.
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.
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 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.
I have been googleing and searching Sitepoint for a fading or vertical scroll multi browser script with no luck.
Can someone help me finding a good script that work on most popular browsers such FF, IE, Safari and Opera to scroll of fade news. The news content has an image, text and link.
I am working on a project that will involve large amounts of data. We have discussed how to summarize for the end user. Final presentation will be something like a bar chart with 15-30 bars. Each bar will be built by blocks whose height and column will be determined by formulas applied to data in the database. A static report is obviously no problem.
I want to develop a sandbox where the end user can drag and drop blocks from one column onto a different column. Others on the team think this can only be done with AJAX while I think jQuery will work and actually be better.
not sure I understand the concept behind merging two arrays together. I know that I have to make a deep copy of each array before applying the function. I know that I have to create a temp value to store the information in the arrays while I insert, but not sure how to keep in numeric order. array 1 = [3, 7, 12, 15, 22, 45, 56] and array 2 = [1, 2, 5, 17, 20] What simple code could I start with to create this.
AJAX is a rich client-side technology that makes the web pages more interactive. In practice, the same AJAX client-side code should be unchanged, regardless of what server-side web technologies we use. I guess this is same concept as traditional front-end plain html code that can work with different server-side web technologies for back-end processing.
Similarly, AJAX should be server-side independent concept, is that correct? But if this is the case, why there are different AJAX frameworks available for different server-side web technologies such as Java, PHP? We should simply just use generic AJAX server-side independent framework for our AJAX-enabled web applications.
I wonder what server-side technologies that google maps/gmail use for their AJAX front-end?? I guess google maps/gmail can be good AJAX models to follow?? What do you think?
I try to make a news slider with cycle plugin here's the structure //---------------------// <div id="myNewsDisplay"> <ul id="aContent"> <li>short text</li> <li>moderate text</li> <li>long text</li> </ul> <div id="aFooter"></div> </div> //---------------------// I want to make the #myNewsDisplay to animate height based on #aContent height the problem is that, everytime the news showing up at the beginning the height is automatically set by the last long text height. How to make the #myNewsDisplay height auto adjust the height of every news height?
I have this tweet ticker code that scrolls a live feed at the very top of the header. It runs on jQuery 1.5.0. The site I have has a vertically scrollTo div for each button pressed on the navigation. The problem I'm having is that as soon as I plug in the jQuery 1.5.0 which turns on the tweet ticker, it stops the overflow and the scrollTo. So when I click on any of the navigation buttons it jumps to the next page rather than scrolling smoothly.
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.