Solved

Populate Marquee tag with text file contents

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

728 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