tag:blogger.com,1999:blog-19519354.post4678854045810751541..comments2023-06-30T13:58:14.439+01:00Comments on Doogal Bell's bloggy thing: Yet more tick mark funDoogalhttp://www.blogger.com/profile/17764319095707998627noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-19519354.post-72390824161265471662008-01-07T04:31:00.000+00:002008-01-07T04:31:00.000+00:00I'm fairly certain that the vast majority of Pengu...I'm fairly certain that the vast majority of Penguin distros use Unicode-friendly fonts, and I'd be very surprised if the current Mac OSs aren't in the same boat.<BR/><BR/>That leaves an extremely tiny minority of Windows PCs that have been upgraded to IE7, but don't have any UC fonts - Windows 2000 machines, perhaps??<BR/><BR/>How's this, then. For all checkboxes, we print as follows:<BR/><BR/><span style="font-family: Arial Unicode MS;">&#10004;</span><BR/><BR/>Then, at the bottom of the document (or using an onload event), we add this:<BR/><BR/><!--[if lt IE 7]><BR/><script type="text/javascript"><BR/>var s = document.getElementsByTagName ('span');<BR/>var n = s.length;<BR/> <BR/>for (var x = 0; x < n; x++)<BR/> if ('\u2714' == s[x].innerHTML)<BR/> s[x].innerHTML = '<strong style="font-family: Wingdings;">&uuml;</strong>';<BR/></script><BR/><![endif]--><BR/><BR/>Obvously classes would be better than style attributes, but this is just to give you the idea.Anonymousnoreply@blogger.com