strange html code to set the type of characters

Discussion in 'HTML' started by Fabrizio, Dec 7, 2005.

  1. Fabrizio

    Fabrizio Guest

    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

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

    Thank you in advance for your help

    Fabrizio

    The strange code (the code that contain "%" like "%3Cb%3ECopenhagen
    08/01%3C/b%3E"


    <area shape="rect" coords="384,137,448,162"
    href="Copenhagen_01/italiano.htm" alt="Copenhagen" title="Copenhagen"

    onMouseOver="MM_changeProp('dest1','','src','Copenhagen_01/s1.jpg','IMG');MM_changeProp('dest2','','src','common/bia

    nca.gif','IMG');MM_setTextOfLayer('titolo','','%3Cb%3ECopenhagen

    08/01%3C/b%3E');MM_setTextOfLayer('descrizione','','%3Ci%3EPrima di
    proseguire per la Groenlandia, ho

    l%27opportunit&amp;#224; di fare un breve giro nel centro di
    Copenhagen.%3C/i%3E')"

    onMouseOut="MM_setTextOfLayer('descrizione','','%3Ci%3ESpostare il
    mouse sulla cartina per selezionare un viaggio.

    Ciascun viaggio e%27 indicato con colori
    diversi.%3C/i%3E');MM_setTextOfLayer('titolo','','%3Cb%3EMenu dei

    viaggi%3C/b%3E');MM_changeProp('dest2','','src','common/bianca.gif','IMG');MM_changeProp('dest1','','src','common/bi

    anca.gif','IMG')">
     
    Fabrizio, Dec 7, 2005
    #1
    1. Advertising

  2. Fabrizio

    Steve Pugh Guest

    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
     
    Steve Pugh, Dec 7, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Harald Kirsch
    Replies:
    4
    Views:
    2,878
    Harald Kirsch
    Aug 31, 2004
  2. Stefan Mueller
    Replies:
    3
    Views:
    33,308
    Stefan Mueller
    Jul 23, 2006
  3. Harvey Twyman
    Replies:
    8
    Views:
    586
    August Derleth
    Oct 25, 2003
  4. heyo
    Replies:
    3
    Views:
    956
    Dan Pop
    Apr 1, 2004
  5. J.Cottingim

    set Bad variable type - SNMP::Util set

    J.Cottingim, Jul 3, 2007, in forum: Perl Misc
    Replies:
    0
    Views:
    118
    J.Cottingim
    Jul 3, 2007
Loading...

Share This Page