marquee style web component to update from external source

P

Pieman

Does anyone know of a web component that works the same way as the marquee
web component that allows the text to be updated from an external source i.e
a text file or another web page.

I want to allow a certain user to update the text within the screen
scroller without them having to use frontpage to open the web component and
play around with the page design...?

Cheers
Si
 
T

Trevor L.

Pieman said:
Does anyone know of a web component that works the same way as the
marquee web component that allows the text to be updated from an
external source i.e a text file or another web page.

I want to allow a certain user to update the text within the screen
scroller without them having to use frontpage to open the web
component and play around with the page design...?

Cheers
Si

Hi again Si,
I hope I can help this time.

Here is a page which takes input from a textbox and uses it to write a
marquee.

If you like it, I could modify it to open another page with the marquee,
rather than putting it on the same page.

<html>
<!- marquee.html -->

<head>
<script type="text/javascript">
function getit()
{
document.getElementById("marq1").innerHTML =
'<marquee behavior="scroll" bgcolor="red" width="600" height="16"><b>'
+ document.form1.marqtxt.value
+ '</b></marquee>'
}
</script>
</head>

<body>
<div id="marq1" align="center"></div>

<div align="center">
<form name="form1" action="">
<input type="text" style="color:red;font:bold" size="58" id="marqtxt"
value="Enter details here"><br />
<button onclick="getit()">Click to set up marquee</button><br />
<input type="text" style="color:blue;" size="18" value="Copyright&copy;
Trevor L." readonly="readonly">
</form>
</div>
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top