You are here: Dynamically managing certain document aspects (e.g. title) « PHP Programming Language « IT news, forums, messages
Dynamically managing certain document aspects (e.g. title)

Posted by KE on 11/12/06 10:09

Hi

I have this Javascript code snippet which I add to the "onload" event
of the "<body>" tag:

document.title = document.getElementById('column_title').innerHTML;

The element id "columnt_title" is the id of a heading ("<h1>") on the
page that happens to be the title of the main article on that page.

I couldn't find this in the help or main reference documents on
php.org. I'm sure it's pretty simple. Is it...

$document->title =
€document->get_element__by___id('column_title')->£(["_inner_HTML_"])->|<<-(...);

? :-D (impish grin) (I added the other currencies to make the code more
robust. The extra underscores makes the call virtual :-])

Thanks!


-- K

P.S. This is a serious question, I'm only trying to be humorous.

 

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

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