troubleshooting Question

Using a simple text box (in VB) to type in a sentence and add it to a specific point in a text file.

Avatar of leonnelson
leonnelson asked on
JavaScriptVisual Basic ClassicScripting Languages
34 Comments1 Solution393 ViewsLast Modified:

First time poster so any help with this would be welcome. Windows XP user here.
I have got a very simple HTML file that reads a second file and prints the contents of each section in 'ticker tape' fashion on a webpage.
I enclose below the 'second file' i.e. the file with the information to be printed. When I run my main HTML file - using the file below as a 'data feed' it will print the following on my webpage...

Test 1 then Test 2 then Test 3 then Test 4 then Test 5

All well and good - but Im looking for a way to dynamically update these fields with information, i.e. change Test 1 to "Leon to buy present for Grandma" or something.
Im looking for a way to:

1) Have a basic 1 line/2 line textbox I can type things into then press RETURN (or a button) to have whatever I've typed go into the file below. Thinking about it - I'd be looking to have 10 'tickers', and have whatever I type go into the next available ticker. If this was over complex then maybe I would have to specify what ticker it would go into. I could live with that e.g. "1 Leon to buy present for Grandma".
2) The file's contents are shown below). Nothing else is trying to open the file other than the main HTML page via a src command.
3) Im looking for the simplest way to dynamically update this, I'm hoping there's some VB command I can use, but if there's another way I'd like to hear it.
Thanks in advance for your help here.

-------------- THIS IS THE HTML FOR THE 'DATA FEED' PAGE, I'd like to dynamically change it from the point where it says "ADD YOUR TICKER CONTENT BELOW"---------------------

<script language="JavaScript1.2">
var delay=7000

var ie4=document.all

var curindex=0
var totalcontent=0

function get_total(){
if (ie4){
while (eval("document.all.content"+totalcontent))
while (document.getElementById("content"+totalcontent))

function contract_all(){
for (y=0;y<totalcontent;y++){
if (ie4)

function expand_one(which){
if (ie4)

function rotate_content(){
curindex=(curindex<totalcontent-1)? curindex+1: 0



<BODY bgColor=#000000>

<!--ADD YOUR TICKER CONTENT BELOW, by wrapping each one inside a <DIV> as shown below.-->
<!--For each DIV, increment its ID attribute for each additional content (ie: "content1", "content2" etc)-->

<div id="content0" style="display:''">

<!—this is content#1 even though the div id is “content0”--------------------->

Test 1

<!-- END CONTENT #1----------------->


<div id="content1" style="display:none">

<!-- ADD TICKER's CONTENT #2 HERE--------------------->
Test 2

<!-- END CONTENT #2----------------->


<div id="content2" style="display:none">

<!-- ADD TICKER's CONTENT #3 HERE--------------------->
Test 3

<!-- END CONTENT #3----------------->


<div id="content3" style="display:none">

<!-- ADD TICKER's CONTENT #4 HERE--------------------->
Test 4
<div id="content4" style="display:none">

<!-- ADD TICKER's CONTENT #5 HERE--------------------->

Test 5

<!-- END CONTENT #5----------------->

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 34 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 34 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros