var tickerSpeed = 30 ; // speed control for ticker var tickerNextMsgDelay = 3000 ; var max = 0 ; var pauseTicker = true ; var newContentAvailable = false ; var content ; var x = 0 ; var pos = 0 ; var l = 0 ; var tl = new textlist ( " Please send us feedback on the ticker!]]]http://www.blogstudio.com]]]Blog Studio", " Welcome to the Blog Studio Ticker!]]]http://www.blogstudio.com]]]Blog Studio" ) ; function displayBlog ( ) { this.location.href = tl [ x ].substring ( tl [ x ].indexOf ( "]]]" ) + 3 ) ; } function pauseTheTicker ( pause ) { pauseTicker = pause ; } function startUsingNewContent ( ) { if ( newContentAvailable == true ) { indexOfDelimiter = content.indexOf ( "|||" ) ; i = 0 ; while ( indexOfDelimiter > -1 ) { tl [ i ] = ' ' + content.substring ( 0, indexOfDelimiter ) ; title = tl [ i ].substring ( 0 , tl [ i ].indexOf ( "]]]" ) ) ; url = tl [ i ].substring ( tl [ i ].indexOf ( "]]]" ) + 3, tl [ i ].lastIndexOf ( "]]]" ) ) ; blogtitle = tl [ i ].substring ( tl [ i ].lastIndexOf ( "]]]" ) + 3 ) ; if ( blogtitle.length > 1 ) { tl [ i ] = title + " --- " + blogtitle + "]]]" + url ; } else { tl [ i ] = title + "]]]" + url ; } // tl [ i ] = title + " --- " + blogtitle + "]]]" + url ; content = content.substring ( indexOfDelimiter + 3 ) ; indexOfDelimiter = content.indexOf ( "|||" ) ; i++ ; } tl [ i ] = ' ' + content ; title = tl [ i ].substring ( 0 , tl [ i ].indexOf ( "]]]" ) ) ; url = tl [ i ].substring ( tl [ i ].indexOf ( "]]]" ) + 3, tl [ i ].lastIndexOf ( "]]]" ) ) ; blogtitle = tl [ i ].substring ( tl [ i ].lastIndexOf ( "]]]" ) + 3 ) ; if ( blogtitle.length > 1 ) { tl [ i ] = title + " --- " + blogtitle + "]]]" + url ; } else { tl [ i ] = title + "]]]" + url ; } // tl [ i ] = title + " --- " + blogtitle + "]]]" + url ; max = i ; x = 0 ; pos = 0 ; l = tl [ 0 ].length ; newContentAvailable = false ; } } function textlist ( ) { max = textlist.arguments.length ; for ( i = 0 ; i < max ; i++ ) this [ i ] = textlist.arguments [ i ] ; } function textticker ( ) { if ( pauseTicker == true ) { document.tickform.tickfield.value = tl[x].substring(0, pos) + "_" ; if ( pos++ == l ) { pos = 0 ; setTimeout ( "textticker ( )", tickerNextMsgDelay ) ; x++ ; if ( x == max ) { x = 0 ; // Start using new content if available // startUsingNewContent ( ) ; } l = tl [ x ].indexOf ( "]]]" ) ; // l = tl[x].length ; } else setTimeout ( "textticker ( )", tickerSpeed ) ; } else setTimeout ( "textticker ( )", tickerSpeed ) ; } var serviceName = "" ; var methodName = "" ; function serverGet ( result ) { if ( result.indexOf ( ']]]' ) > -1 ) { content = result ; if ( methodName == "SVC_getTickerContent" ) { newContentAvailable = true ; } else { tl [ 0 ] = " Welcome to the Blog Studio Ticker!]]]http://www.blogstudio.com]]]Blog Studio" } } return true ; } function windowLoad ( ) { // Set default colors to green on black text // document.tickform.tickfield.style.color='#E0E0E0' ; document.tickform.tickfield.style.background='#006587' ; document.tickform.tickfield.style.fontFamily='Verdana, Arial, Helvetica, sans-serif' ; document.tickform.tickfield.style.fontSize='10pt' ; // Get the most recent ticker content every 10 seconds // setInterval ( "serverPut('HT_BL_Utils','SVC_getTickerContent')", 60000 ) ; serverPut ( 'HT_BL_Utils', 'SVC_getTickerContent' ) ; textticker ( ) ; } // document.write ( '' ) ; document.write ( '' ) ; document.write ( '
' ) ; document.write ( '' ) ; document.write ( '' ) ; windowLoad () ;