Results 1 to 3 of 3

Thread: Include data of txt file in marquee in table

  1. #1
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Include data of txt file in marquee in table

    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

    Code:
    	<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

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    1,960
    Thanks
    16
    Thanked 305 Times in 304 Posts
    Blog Entries
    11

    Default

    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.
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

  3. #3
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    the code that I posted is the page where it is included

    Code:
    					<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

Similar Threads

  1. Resolved php random file include, can't find file
    By keyboard in forum PHP
    Replies: 7
    Last Post: 10-21-2011, 04:26 AM
  2. Include and Update Data in the database
    By Dilruba in forum ASP
    Replies: 2
    Last Post: 09-02-2011, 01:40 PM
  3. Replies: 23
    Last Post: 06-28-2009, 02:00 PM
  4. Insert mysql data into include
    By bjf98 in forum MySQL and other databases
    Replies: 0
    Last Post: 08-06-2008, 01:48 PM
  5. php table INCLUDE
    By Anexxion in forum PHP
    Replies: 4
    Last Post: 04-14-2008, 10:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •