-
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%"> <script language=JavaScript>
document.write top.document.title);
</script> </span>
</td>
</tr>
</table>
Can anyboby help?
Thanks,
Tom.
-
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%"> <script =
language=3DJavaScript>
> document.write top.document.title);
> </script> </span>
> </td>
> </tr>
> </table>
>=20
> Can anyboby help?
>=20
> Thanks,
> Tom.
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks