Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
html marquee read external file?
Hi,
I'm trying to do a news highlight in marquee scroll up, but i do not want to use Java script (its annoying Allow AxtiveX Script Yellow stripes appear on top)
So is there any other way i can use in HTML to read external txt file into a marquee?
2 Answers
- Anonymous1 decade agoFavorite Answer
you could use php to do the trick
example:.
<?php
echo "<marquee>" . include("YourExternalFile.html") . "</marquee>";
?>
or you could use mysql and periodical update the field in the table
<?php
$con = mysql_connect("MysqlHost","Username","Password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("my_db", $con);
$result = mysql_query("SELECT * FROM news");
while($row = mysql_fetch_array($result))
{
echo "<marquee>" . $row['marqueetext'] . "</marquee>";
echo "<br />";
}
mysql_close($con);
?>
Source(s): http://www.strangebutfunny.net/