You are here: Re: Some problem with OBJECT and table « HTML « IT news, forums, messages
Re: Some problem with OBJECT and table

Posted by Dif on 08/13/07 21:42

On Aug 13, 10:34 pm, "Jonathan N. Little" <lws4...@centralva.net>
wrote:
> Dif wrote:
> > Tested, but as I suspected PHP is not supported (usually, here in
> > Italy at least, when ISPs bundle free web space with the connection,
> > it is just free space - ergo no sever-side scripting, but just the
> > plain HTML and eventually client-side scripting [like Javascripts]). :-
> > (
>
> I would say spend a few bucks and get hosting an make you site look
> good. Many small scale packages with fewer bells and whistles that you
> would not need but include PHP for a about $50 a year or less. Yeah you
> don't have to get hosting in Italy, anywhere in the world where you can
> get the best value will do... I don't use them but for example
> GoDaddy.com has some economy plans < $4 depending on how much you pay in
> advance...

I'll take that in consideration. Actually I should first build some
basic content to the site since so far the only real content I wrote
is a mini-guide to a 4 years old game (Star Wars: Knights of the Old
Republic ) and nothing more yet (and actually I still don't know how
much far I will go on building up my site). :-)

Anyway I found a solution to the IE problem (the third one on the
original post):
- First I had to put scroll=no on the <BODY> tag on the embedded page
(so it become <BODY scroll=no>); this resolve the scroll bar issue;
- Second, I had to put the following code on the main page (the one
that call all the OBJECTS) to resolve the border issue (I didn't
reported it since I thought it was part of the scroll bar one):

<!-- Fix for IE border Begin -->
<script type="text/javascript">
function fixObjectImages ()
{
var objs = document.getElementsByTagName ('OBJECT');
for (n = 0; n < objs.length; n++)
{
var obj = objs [n];
if ((obj != null && obj.type != null)
&& ((obj.type == "text/html") || (obj.type == "image/gif")))
{
fixObject (obj);
}
}
}

function fixObject (obj)
{
obj.body.style.margin = '0';
obj.body.style.border = 'none';
obj.body.style.overflow = 'hidden';
}
// To do: Only do this for IE !
window.onload = fixObjectImages;
</script>
<!-- Fix for IE border End -->


Speaking of the other two problems, the second one is the one I'll
investigate further since it is annoying (any idea?); I can live with
the first one until I'll create enough content to migrate to a paid
server.

Thank again for the help. :-)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация