You are here: Re: strange html code to set the type of characters « HTML « IT news, forums, messages
Re: strange html code to set the type of characters

Posted by Steve Pugh on 12/07/05 11:56

Fabrizio wrote:
> On a web page i found a very strange html code (see at the en of this
> message) to set the type of the characters (like bold, italic, etc.)
> and I have 2 question

> MM_setTextOfLayer('titolo','','%3Cb%3ECopenhagen 08/01%3C/b%3E');

> 1) How interpreter this code ?

%3C = <
%3E = >

Those are just URL encoded characters. But here they are not being used
as part of URLs.

So the real meat if what's going on can only be determined
by examing the MM_setTextOfLayer JavaScript function.

The MM_ means that this function was created by Macromedia Dreamweaver,
which means that it probably isnt very good as most of their canned
JavaScripts are somewhat lacking.

> 2) can I use this code to set also the colour and the font used for the
> text (like verdana) ? If yes how ?

Maybe.
%3Cfont%20face%3d%22Verdana%22%3Esome text%3C/font%3E might work if
used in place of %3Cb%3Esome text%3C/b%3E
It's the same as using
<font face="Verdana">some text</font> instead if <b>some text</b>

But there are certainly better ways of doing this.

Steve

 

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

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