The Bride of the First House (bride) wrote,
The Bride of the First House
bride

LJ-Cut Manipulation - Different Text in Different Views

weather: partly cloudy
outside: 12°C
mood: nifty
timwi was playing with this today and I thought it was rather nifty:

--------------------

userinfo林玉蘋

bride

The above is my LJ username. In the Recent, Friends and Day Views, it will be in English. In the Comment View, it will be in Chinese (which will show up as three rectangles if you don't have Foreign Language Support enabled on your machine).

--------------------

Here's the HTML that does that:

... optional text in all views ...

<span style="display: none;"><lj-cut></span>
... text in the Comment View ...
<span style="display: none;"></lj-cut></span>

... optional text in all views ...

<span style="display: none;"><lj-cut>
<span style="display: none;"></lj-cut></span>
... text in the Recent, Friends and Day View ...
<span style="display: none;"><lj-cut></span></lj-cut></span>

... optional text in all views ...

Posted to lj_nifty here. I posted it with the English/Chinese LJ username example at first, but it was rejected for being too confusing (it looked like it was showcasing the lj user="..." instead of the lj-cut). I resubmitted it with the names of the views instead. =)

Tags: nerdy
Subscribe

  • Blast from the Past!

    weather : sunny outside : 17°C mood : ... Heh, it'll be interesting to see who reads this journal anymore =) The…

  • My Hermit Life

    weather : sunny outside : 24°C mood : ... Holy tap-dancing Christ on a pogo stick, it's been a really long time.…

  • Latest Nail Art

    weather : sunny outside : 21°C mood : ... I think I understand why I like nail art so much. I'm a Business Analyst by…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment