You are here: Re: Setting Body CSS with Javascript - please show me how « HTML « IT news, forums, messages
Re: Setting Body CSS with Javascript - please show me how

Posted by Nik Coughlin on 02/02/04 11:48

jenngra@gmail.com wrote:
> Nik Coughlin wrote:
>> jenngra@gmail.com wrote:
>>> Hi & Good evening - can someone please show me how to do this:
>>>
>>> <body id=page_one style=margin:100>
>>> </body>
>>> <script> ..... I want to reset the <body> margin from 100 to 50
>>> ....
>>
>> document.getElementById( "page_one" ).style.margin = "50px";
>
> May I ask one more question? In a scenerio like this:
>
> <body id=page_one style=margin:100><object id=object_one
> name=object_one data="test.htm" width="500"
> height="500"></object></body>
>
> How do I set the body margin from test.htm to 50? I thought your step
> would work, but I am unsure how to call this. Thank you so much, Jenn

I don't know because I would never do it that way. Using the object element
to include one file in another doesn't work very well across browsers. Read
this for better ways to do the same thing, which should make your little
problem go away:
http://allmyfaqs.net/faq.pl?Include_one_file_in_another

Also there is a bit on that page about the issues with using object.

 

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

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