Solved

Populate Marquee tag with text file contents

Posted on 2002-07-10
3
479 Views
Last Modified: 2008-03-04
I've got a client who I've built a site for.  The index page has a marquee on it which they would like to update daily/weekly.  However, they don't have any editors or tools to update it.  I would like to just pull the text in from a text file that they can upload whenever they want the marquee changed.  I have a style set up for the marquee so formatting is accomplished that way.

Is there any way to do an 'include' or some similar html/javascript to pull a text file's contents in?

Here's the marquee:
        <p align="center"><marquee scrollamount="4" width="600" style="font-size: 7pt; font-family: Arial; color: #000000; font-weight: bold">Words Here that should be pulled in from an external text file</marquee></p>

Thanks,
Doug
0
Comment
Question by:sluggo050499
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
bruno earned 50 total points
ID: 7145183
sure, if the server supports Server Side Includes...


make sure the file is named something that will get parsed by the server, .shtml, .asp or something similar.


have your marquee text in a file called "marquee.txt"


then do this in code..


<p align="center"><marquee scrollamount="4" width="600" style="font-size: 7pt; font-family: Arial; color: #000000; font-weight: bold">
<!--#include file="marquee.txt"-->
</marquee></p>

for more on SSI check here:
www.bignosebird.com/ssi.shtml


BRUNO
0
 

Author Comment

by:sluggo050499
ID: 7146682
Worked great... the host site supported asp.
0
 
LVL 18

Expert Comment

by:bruno
ID: 7147319
great, glad it worked for you!  Thanks for the A.  :-)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to calculate height of a text using jquery 3 51
Html split(text) 2 44
CSS for Popup in ASP.NET 4 39
aria difference 2 22
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

742 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question