Solved

Populate Marquee tag with text file contents

Posted on 2002-07-10
3
476 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now