FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

apply text to multiple html-pages?

 


alienjones
Howdy com,

for a webdesign which has to be based on pure HTML I need to feed a certain table-cell with text.
This text shall be displayed on several pages and should easily be edited by only one file instead of editing several html-pages.

So I invented the following solution using "object":

Code:

<TABLE>

<TBODY><TR>

<TD  COLSPAN=3 valign=top background="images/index_03.gif" WIDTH=268 HEIGHT=84 style="BACKGROUND-REPEAT: no-repeat">

<object data="news.html" type="text/html" width="268" height="84"></object>

</TD></TR>

</TBODY>

</TABLE>


Unfortunately IE takes this for active-elemts and therefor an explicit permission must be given to it in order to see the field.

Isn't there a more elegant way to solve this problem? As mentioned above it must be pure HTML as the hosting server doesn't accept anything else....

Thx in advance!
Diablosblizz
If your server has SSI, then use:

Quote:
<!--#include file="yourfilename.html"
-->


If that doesn't work well im not to sure if it will.[/quote]
alienjones
My misery is, that server doesn't do anything except passing html-files to browsers Sad
santosh_iit32
use iframe then. that should work but the webpage would be slower comparatively as you use more and more iframes
The_Gamer294
Switch to frihost? O.o
Stubru Freak
Two options:

An iframe.
An external javascript file filling the cell.
You would only need to edit the javascript file that way.
jayzee
i think iframe will work here and it will be easier for you to handle..
blueray
yes, iframe should be the best in this case because you just include plain html files and assumes that you haven't any programming skill.

And object tag usually used for plug-ins or activex only such as flash player and windows media player.

Hey, why don't you just switched to frihost. It's a best and stable hosting Smile
Post here if you got any issues about hosting and or others. Smile
fantasymanageronline
you can do it that way:

Code:

Page 1<br>

<iframe src="anotherPage.htm"></iframe>

Still Page 1<br>
gr8ankit
The perfect I frame code will be :-

Code:

<IFRAME NAME="news" WIDTH="270" HEIGHT="86" MARGINWIDTH="0" MARGINHEIGHT="0" SRC="news.html" SCROLLING="no" FRAMEBORDER="yes"></IFRAME>
ashok
u can use style sheets to specify style of the border of the iframe and can make it look more embedded into the original page...
lukeropro
The_Gamer294 wrote:
Switch to frihost? O.o


Switching to frihost has nothing to do with showing the contents of another page inside your webpage
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.