I have a webpage with several text boxes.
I want to change the looks of the textboxes based on certain events.
The events happen to be hitting markers of a media file.
I would like to change the background color and/or font size of certain text boxes when corresponding markers are hit.
I figured out how the size of the text boxes, but that isn't what I want to do.
<SCRIPT language = "JScript" for = Player1 event = markerHit(mymark)>
if(mymark==1) Text.size = 5;
if(mymark==2) Text.size = 10;
if(mymark==3) Text.size = 20;
</SCRIPT>
I don't see individual properties for font and background color, only style, so I tried this:
<SCRIPT language = "JScript" for = Player1 event = markerHit(mymark)>
if(mymark==1) Text.style = "BACKGROUND-COLOR: aqua";
if(mymark==2) Text.style = "BACKGROUND-COLOR: black";
if(mymark==3) Text.style = "BACKGROUND-COLOR: blue";
</SCRIPT>
but the event throws "htmlfile: Member not found."
I thought the properties visible for objects at design time could be changed at runtime. Works for size, but not for style.
Thanks for any help.