﻿
    var tWidth = '965px';                 // width (in pixels)
    var tHeight = '25px';                  // height (in pixels)
    var moPause = true;                     // pause on mouseover (true or false)
    var tSpeed = 4;                        // scroll speed (1 = slow, 5 = fast)

    // enter your ticker content here (use \/ and \' in place of / and ' respectively)
    var content = 'All new vehicles come with a free powertrain warranty for as long as you own it and with unlimited mileage.';

    // Simple Marquee / Ticker Modified Script Originally coded by S. Chapman - January 2006
    // Styles in StyleSheet
    var cps = tSpeed; 
    var aw, mq;
    function startticker() {
        if (document.getElementById) {
            var tick = '<div style=";overflow:hidden;' + '"';
            if (moPause) tick += ' onmouseover="cps=0" onmouseout="cps=tSpeed"'; 
            tick += '><div id="mq" style="left:0px;top:5px;white-space:nowrap;"><\/div><\/div>';
            document.getElementById('ticker').innerHTML = tick; mq = document.getElementById("mq");
            mq.style.left = (parseInt(tWidth) + 10) + "px"; mq.innerHTML = '<span id="tx">' + content + '<\/span>'; 
            aw = document.getElementById("tx").offsetWidth; lefttime = setInterval("scrollticker()", 50);
        } 
    }
    function scrollticker() { 
    mq.style.left = (parseInt(mq.style.left) > (-10 - aw)) ? parseInt(mq.style.left) - cps + "px" : parseInt(tWidth) + 10 + "px"; 
    } window.onload = startticker;
                  
