The JavaScript method, like HTML Frames, is another very simple method of embedding. This method, however, is only readily available using customview.cgi; LiveJournal provides a special "encoding" with the customview.cgi script.
The encoding escapes your journal, and wraps it in a document.write(...) function. This method is also one of two ways you can allow visitors to view your protected entries from your website.
S1
<script type="text/javascript" src="http://exampleusername.livejournal.com/data/customview?styleid=style ID&enc=js&checkcookies=1"> </script> <noscript> <a href="http://exampleusername.livejournal.com/">View my LiveJournal</a> </noscript>
S2
<script type="text/javascript" src="http://exampleusername.livejournal.com/data/customview?s2id=S2 ID&enc=js&checkcookies=1"> </script> <noscript> <a href="http://exampleusername.livejournal.com/">View my LiveJournal</a> </noscript>
S1: You will need to replace style ID with the actual style ID for the style you wish to use. LiveJournal provides some basic example styles with the IDs 101 and 408. These styles are very basic, however, and cannot be easily customized. In order to use these styles, you will need to set them trusted. See the "Guide to customview" for more information.
S2: You will need to replace S2 ID with the actual S2 style ID for the style you wish to use. Please note that it must be a style ID; layout layer IDs will not work. The S2 style IDs are listed on Your Styles page.
Protected Entries
In order to allow visitors to view your protected entries, you will need to use the optional &checkcookies=1 parameter in the URL examples above.Note: anyone who wishes to view your protected posts will need to be logged into LiveJournal with an expiration setting of "Never." They may also need to check and make sure that their browser's security settings allow third-party use of cookies.