Title editing??


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Title editing??

  1. #1
    Tom Guest

    Title editing??


    Hi all,

    I wish to display the title on the web page so
    the first letter of each word is bold.
    E.g.
    <title><b>T</b>itle <b>E</b>xample</title>

    But in doing this internet explorer show the value
    "<b>T</b>itle <b>E</b>xample" in the top title.

    Can i display a different value in the window title text
    to the page title.

    I am using a background.ascx file to display the title of
    each page on each page.

    E.g.
    <table align=center>
    <tr>
    <td align=center>
    <span style="font-size: 250%">&nbsp;<script language=JavaScript>
    document.write top.document.title);
    </script>&nbsp;</span>
    </td>
    </tr>
    </table>

    Can anyboby help?

    Thanks,
    Tom.

  2. #2
    Steve Cochran Guest

    Re: Title editing??

    I think you would have to parse the title in your script and add the =
    bold tags there.

    steve

    "Tom" <Tom.Ashley@UKAutomation.com> wrote in message =
    news:3d4a52c3$1@10.1.10.29...
    >=20
    > Hi all,
    >=20
    > I wish to display the title on the web page so
    > the first letter of each word is bold.=20
    > E.g.
    > <title><b>T</b>itle <b>E</b>xample</title>
    >=20
    > But in doing this internet explorer show the value
    > "<b>T</b>itle <b>E</b>xample" in the top title.
    >=20
    > Can i display a different value in the window title text
    > to the page title.
    >=20
    > I am using a background.ascx file to display the title of
    > each page on each page.
    >=20
    > E.g.
    > <table align=3Dcenter>
    > <tr>
    > <td align=3Dcenter>
    > <span style=3D"font-size: 250%">&nbsp;<script =

    language=3DJavaScript>
    > document.write top.document.title);
    > </script>&nbsp;</span>
    > </td>
    > </tr>
    > </table>
    >=20
    > Can anyboby help?
    >=20
    > Thanks,
    > Tom.



  3. #3
    Constance J. Petersen Guest

    Re: Title editing??

    Hi Tom,

    "Tom" <Tom.Ashley@UKAutomation.com> wrote in message
    news:3d4a52c3$1@10.1.10.29...
    > I wish to display the title on the web page so
    > the first letter of each word is bold.
    > E.g.
    > <title><b>T</b>itle <b>E</b>xample</title>
    >
    > But in doing this internet explorer show the value
    > "<b>T</b>itle <b>E</b>xample" in the top title.


    That's not allowed in the title tag. From the spec for html 4:

    "Titles may contain character entities (for accented characters, special
    characters, etc.), but may not contain other markup (including comments)."

    http://www.w3.org/TR/html4/struct/global.html#h-7.4.2

    --
    Constance Petersen, DevX newsgroup section leader
    Hot off the press!
    "Programming the Web with Visual Basic .NET"
    http://www.bookpool.com/.x/rbaabchtd6/sm/1590590279
    --
    Please reply in the newsgroup so everyone can benefit




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center