1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Stock Ticker Code?

Discussion in 'Content Management' started by Swordfish, Feb 16, 2006.

  1. #1
    Anyone know of any free stock tickers that I can add to a site?

    Thanks,
    Mike
     
    Swordfish, Feb 16, 2006 IP
  2. sentosoft

    sentosoft Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try barchart.com
     
    sentosoft, May 10, 2006 IP
  3. SFOD_D223

    SFOD_D223 Peon

    Messages:
    4,512
    Likes Received:
    174
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <APPLET ID="TickerX" NAME="TickerX" Note the addition of the ID attribute!
    CODE="Ticker.class"
    ARCHIVE="Ticker.jar"
    CODEBASE="http://java.barchart.com/ticker"
    HEIGHT="40"
    WIDTH="450"
    >
    <PARAM NAME="panels" VALUE="1">

    <PARAM NAME="1:symbols" VALUE="'Indices,$NASX:Nasdaq Comp,'Stocks,IBM,GE,EBAY,YHOO:Yahoo!">
    <PARAM NAME="1:scroll" VALUE="-1, 50">
    <PARAM NAME="1:bgcolor" VALUE="#000000">
    <PARAM NAME="1:fgcolor" VALUE="#FFFFFF">
    <PARAM NAME="1:pscolor" VALUE="#00CC00">
    <PARAM NAME="1:ngcolor" VALUE="#FF3333">
    <PARAM NAME="1:hilight" VALUE="#FFFF00">
    <PARAM NAME="1:font" VALUE="Arial, Bold, 12">
    <PARAM NAME="1:multiline" VALUE="true">
    </APPLET>

    <SCRIPT LANGUAGE="JavaScript">
    // Set the initDelay and initDIrection to be the same as the values defined in the params
    var initDelay = 50;
    var initDirection = -1;

    var curDelay = initDelay;
    var curDirection = initDirection;

    function changeScroll(dir) {
    // Calling changeScroll with the same dir makes the ticker go faster
    if (dir == 0) {
    curDelay = 0;
    curDirection = 0;
    }
    else if (dir == curDirection)
    curDelay -= 10;
    else {
    curDirection = dir;
    curDelay = initDelay;
    }

    // You can't have a negative delay. And some rational limit must be set
    if (curDelay < 5)
    curDelay = 5;

    var a = document.getElementById('TickerX');
    if (a) {
    a.setScroll(1, curDirection, curDelay);
    }
    }
    </SCRIPT>

    <A HREF="javascript:changeScroll(-1);"> &lt</A> • <A HREF="javascript:changeScroll(0);">0</A> • <A HREF="javascript:changeScroll(1);">&gt</A>
     
    SFOD_D223, May 31, 2006 IP
  4. dean1122

    dean1122 Member

    Messages:
    458
    Likes Received:
    24
    Best Answers:
    2
    Trophy Points:
    45
    #4
    hi,
    can we see its live demo so that we can decide to use it or not?
     
    dean1122, Dec 6, 2012 IP
  5. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #5
    You can't spend 5 seconds to copy it, paste it into a blank document and see how it works?
     
    Rukbat, Dec 9, 2012 IP