PDA

View Full Version : Include data of txt file in marquee in table



TWEagle
01-28-2013, 02:01 PM
Good afternoon you all

I am trying to add a text file (the data in the textfile) into a marquee what is included in a td of a table


<body class="is_root">
<table class="splash">
<tr>
<td>
<a href="./splash/int.html" class="splash" onMouseOver="window.status='Internet WJD'; return true;" onMouseOut="window.status=''; return true;" target="_blank"><center><img src="./images/int_logo.png" title="Internet Wist Je Dat???" border="0" /></center></a>
</td>
<td>
<a href="./splash/mob.html" class="splash" onMouseOver="window.status='Mobiel WJD'; return true;" onMouseOut="window.status=''; return true;" target="_blank"><center><img src="./images/mobile_logo.png" title="Mobiel Wist Je Dat???" border="0" /></center></a>
</td>
<td>
<a href="./splash/tel.html" class="splash" onMouseOver="window.status='Telefonie WJD'; return true;" onMouseOut="window.status=''; return true;" target="_blank"><center><img src="./images/tel_logo.png" title="Telefonie Wist Je Dat???" border="0" /></center></a>
</td>
</tr>
<tr>
<td>
<a href="./splash/dtv.html" class="splash" onMouseOver="window.status='iDTV WJD'; return true;" onMouseOut="window.status=''; return true;" target="_blank"><center><img src="./images/dtv_logo.png" title="iDTV Wist Je Dat???" border="0" /></center></a>
</td>
<td>
<center><img src="./images/waio.png" /></center>
</td>
<td>
<a href="./splash/atv.html" class="splash" onMouseOver="window.status='ATV WJD'; return true;" onMouseOut="window.status=''; return true;" target="_blank"><center><img src="./images/atv_logo.png" title="ATV Wist Je Dat???" border="0" /></center></a>
</td>
</tr>
<tr>
<td>
<a href="./splash/tn.html" class="splash" onMouseOver="window.status='Telenet WJD'; return true;" onMouseOut="window.status=''; return true;" target="_blank"><center><img src="./images/tn_logo.png" title="Telenet Wist Je Dat???" border="0" /></center></a>
</td>
<td>
<marquee id="scroller" onfinish="location.reload(true);" loop="10" style="position: relative; top: 20; right: 0; bottom: 0; right: 0; height: 100%" behavior="scroll" align="center" direction="left" scrollamount="4" scrolldelay="0">
<iframe src="todo.txt" frameborder="0" width="700" height="100"></iframe>
</marquee>
</td>
<td>
<a href="./splash/tp.html" class="splash" onMouseOver="window.status='Teleperformance WJD'; return true;" onMouseOut="window.status=''; return true;" target="_blank"><center><img src="./images/tp_logo.png" title="Teleperformance Wist Je Dat???" border="0" /></center></a>
</td>
</tr>
</table>

</body>

but it doesn't work

can you give me some tips and help how to solve this

Beverleyh
01-28-2013, 04:53 PM
What is the code you've posted? Is that the contents of the text file? Where is the marquee markup and is tit generated via javascript?

We need some more information so we can visualise the complete picture. Stanalone code snippets aren't always useful when trying to give outsiders knowledge of your project and problem.

That being said, you can include content by using a Server Side Include: http://www.javascriptkit.com/howto/ssi.shtml
Or
by using a PHP include: http://www.tizag.com/phpT/include.php

If you need more help, please provide a clear explanation of what the posted code refers to and a link to your page.

TWEagle
01-28-2013, 07:31 PM
the code that I posted is the page where it is included


<td>
<marquee id="scroller" onfinish="location.reload(true);" loop="10" style="position: relative; top: 20; right: 0; bottom: 0; right: 0; height: 100%" behavior="scroll" align="center" direction="left" scrollamount="4" scrolldelay="0">
<iframe src="todo.txt" frameborder="0" width="700" height="100"></iframe>
</marquee>
</td>

this one is the code from the marquee what is working with just text in it but not with the txt file

in the txt file there will only be plain text in
1 sentence or something like that

the SSI I was thinking off also but the problem is that it is on a drive at the work where we just can put in some html and don't know how far the SSI is included on the server side

I can try to place an empty part of the full script because there is an iframe where this page is included in but there is some info in what is secret for the outer world