Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Wednesday, September 21st, 2005

Time Event
3:39p
My few brief classes on Javascript four years ago are failing to come to my aid, so I thought I'd throw myself on your collective mercy.

I'm coding a cast list for an LJ-based RPG; the list got so long that the entry started cutting off, and so I'm putting the whole thing in the <BODY> section of a new style. But, for ease of updating the damn thing, and to save us having to type out a whole long string of HTML for each new character, I was wondering if anyone knew of a javascript function that would scan for the LJ-specific

<lj user="XXXXX"> link tag (which gives Imagexxxxx),

and replace it with the standard HTML:

<a href="http://www.livejournal.com/userinfo.bml?user=XXXXX"><img src="http://stat.livejournal.com/img/userinfo.gif" width='17' height='17' style='vertical-align: bottom; border: 0;' /></a><a href="http://www.livejournal.com/users/XXXXX/"><b>XXXXX</b></a>

I'm sure there's a terribly simple solution to all this, but, well, I freely admit that I learn what little coding I know via osmosis. So, any help that anyone could give would be tremendously appreciated.

Thank you.

<< Previous Day 2005/09/21
[Calendar]
Next Day >>
About LiveJournal.com
Image