Nicetitles for ins and del
In yet another fit of great minds think alike
(yeah, I wish), I made some small updates to Stuart Langridge’s nicetitles… and when I went to send the diffs to him, found that Brad Choate had done almost exactly the same, and added another feature too.
My patch to handle the editing elements in (X)HTML is slightly different than Brad’s in two respects.
- Brad’s patch only deals with
<ins>. I often useinsanddelin pairs, such as in this post, so it’s nice to have support for both. - Brad’s patch parses a
datetimeformat that doesn’t match the specific ISO8601 format specified in HTML 4.01 (and, by inference, XHTML 1.0). My version isn’t quite right–it doesn’t use the specified timezone, because JavaScript’s Date doesn’t–but it’s close and compact.
I also stripped a bunch of old browser-specific code that isn’t used any more after Paul McLanahan’s remaining-title modifications, and reformatted for consistency.
Here are nicetitles in all their glory: inserted, deleted, and anchored.
July 21st, 2005 at 08:17
[...] Done! Danke für dieses JavaScript sage ich: Credits to:Stuart Langridge von kryogenix.orgPeter Janes von peterjanes.caDunstan Orchard , der sich jedoch von seinem Blog verabschiedet hat und dort nicht mehr erreichbar ist.Ethan Marcotte von sideshow.com.Für Fragen, Erfahrungen, Verbesserungen nutzen Sie bitte die Kommentarfunktion.mts Kommentar schreiben: Name (notwendig) E-Mail (notwendig) »bleibt unsichtbar Website Ihr /Dein Beitrag: [...]
September 6th, 2005 at 01:00
Hello.
Sorry but i can’t find the link to download your mod for nicetitles…
I download a theme from Theron Parlin, and he uses a mod of the nicetitle that is CSS valid but for some reason it does not work in Opera… yours does work.
September 6th, 2005 at 01:12
I’m actually not using my own modifications any more; instead I’ve got Mark Wubben’s rewritten version installed. Just view source and you’ll see the relevant URLs for the JavaScript and CSS files.
September 6th, 2005 at 17:19
ok Peter.. thanks so much.
February 4th, 2007 at 17:09
Nice edits. I am having trouble finding out how to edit the date display. Any insight on that?
I want it to display as mm/dd/yyyy. Currently it only displays as dd/mm.
I am not a JavaScript guy… so if you had some insight it would certainly be appreciated.
February 18th, 2007 at 00:59
I’m not sure whose script you’re referring to; I’d never write something that displayed dd/mm. As I noted in the comments above, though, I use a different script now, and you’ll see that it presents the full timestamp.