<?xml version='1.0' encoding='utf-8' ?>
<!--  If you are running a bot please visit this policy page outlining rules you must respect. http://www.livejournal.com/bots/  -->
<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:media='http://search.yahoo.com/mrss/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>babytest - tutorials and tests</title>
  <link>http://babytest.livejournal.com/</link>
  <description>babytest - tutorials and tests - LiveJournal.com</description>
  <lastBuildDate>Fri, 24 Aug 2007 12:32:27 GMT</lastBuildDate>
  <generator>LiveJournal / LiveJournal.com</generator>
  <lj:journal>babytest</lj:journal>
  <lj:journalid>8364032</lj:journalid>
  <lj:journaltype>personal</lj:journaltype>
  <atom10:link rel='hub' href='http://pubsubhubbub.appspot.com/' />
  <image>
    <url>http://l-userpic.livejournal.com/44358671/8364032</url>
    <title>babytest - tutorials and tests</title>
    <link>http://babytest.livejournal.com/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>http://babytest.livejournal.com/12003.html</guid>
  <pubDate>Fri, 24 Aug 2007 12:32:27 GMT</pubDate>
  <title>Multilevel-tags in sidebar - Smooth Sailing</title>
  <link>http://babytest.livejournal.com/12003.html</link>
  <description>two alternative ways, &lt;br /&gt;&lt;br /&gt;Both versions overwrite the &lt;b&gt;function Page::lay_print_sidebar_tags()&lt;/b&gt;&lt;br /&gt;I think the first version is the better one, so if you can you should use this one:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&quot;stolen&quot; from &lt;span class=&apos;ljuser ljuser-name_s2_bloggish&apos; lj:user=&apos;s2_bloggish&apos; style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;http://community.livejournal.com/s2_bloggish/profile&apos;&gt;&lt;img src=&apos;http://l-stat.livejournal.com/img/community.gif&apos; alt=&apos;[info]&apos; width=&apos;16&apos; height=&apos;16&apos; style=&apos;vertical-align: bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;http://community.livejournal.com/s2_bloggish/&apos;&gt;&lt;b&gt;s2_bloggish&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;textarea&gt;
function Page::lay_print_sidebar_tags() {
# Specify your delimiter.  One character only -- extra chars get truncated.
  var string delimiter = &quot;:&quot;;

  # Do you want to show the tag use counts?
  var bool show_count = true;

  # Specify the text to show just before the use count, if any
  var string pre_count = &quot;(&quot;;

  # Specify the text to show just after the use count, if any
  var string post_count = &quot;)&quot;;

  ### Don&apos;t change below unless you know what you are doing!

  var Page p = get_page();
  var string list = &quot;&quot;;

  if (size $p-&amp;gt;visible_tag_list() &amp;gt; 0) {
    if ($delimiter-&amp;gt;length() &amp;gt; 1) {
      $delimiter = $delimiter-&amp;gt;substr(0, 1);
    }

    var string[] closing_html;
    var string[] prev_tags;
    var int tag_list_pos = 0;
    var string tier_code = &quot;&quot;;
    $closing_html[0] = &quot;&quot;;
    $prev_tags[0] = &quot;&quot;;
    foreach var TagDetail t ($p-&amp;gt;visible_tag_list()) {
      var string[] tags;

      if ($t.name) {
        var int array_counter = 0;
        var string buffer = &quot;&quot;;
        foreach var string char ($t.name) {
          if($char == $delimiter) {
            $tags[$array_counter] = $buffer;
            $array_counter = $array_counter + 1;
            $buffer = &quot;&quot;;
          }
          else {
            $buffer = $buffer + $char;
          }
        }
        $tags[$array_counter] = $buffer;

        var int pos = 0;
        foreach var string tier($tags) {
          if (size $closing_html &amp;lt;= $pos) {
            $closing_html[$pos] = &quot;&quot;;
          }

          if (size $prev_tags &amp;lt;= $pos) {
            $prev_tags[$pos] = &quot;&quot;;
          }

          if (size $tags == ($pos + 1)) {
            $tier_code = &quot;&quot;&quot;&amp;lt;a href=&quot;$t.url&quot;&amp;gt;$tier&amp;lt;/a&amp;gt;&quot;&quot;&quot;;
            if ($show_count) {
              $tier_code = $tier_code + &quot;&quot;&quot; ${pre_count}${t.use_count}${post_count}&quot;&quot;&quot;;
            }
          }
          else {
            $tier_code = &quot;&quot;&quot;$tier&quot;&quot;&quot;;
          }

          if ($prev_tags[$pos] == &quot;&quot;) {
            $list = $list + &quot;&quot;&quot;&amp;lt;ul class=&quot;module-list&quot;&amp;gt;&amp;lt;li class=&quot;module-list-item&quot;&amp;gt;$tier_code&quot;&quot;&quot;;
            $closing_html[$pos] = &quot;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&quot;;
          }
          elseif ($tags[$pos] != $prev_tags[$pos]) {
            var int i = 0;
            foreach var string html ($closing_html) {
              if ($i &amp;gt; $pos) {
                $list = $list + $closing_html[$i];
                $closing_html[$i] = &quot;&quot;;
              }
              $i++;
            }

            if ($closing_html[$pos] == &quot;&quot;) {
              $list = $list + &quot;&quot;&quot;&amp;lt;ul class=&quot;module-list&quot;&amp;gt;&amp;lt;li class=&quot;module-list-item&quot;&amp;gt;$tier_code&quot;&quot;&quot;;
              $closing_html[$pos] = &quot;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&quot;;
            }
            else {
              $list = $list + &quot;&quot;&quot;&amp;lt;/li&amp;gt;&amp;lt;li class=&quot;module-list-item&quot;&amp;gt;$tier_code&quot;&quot;&quot;;
            }
          }
          else {
           }
          $pos++;
        }
        $prev_tags = $tags;
      }
      $tag_list_pos++;
    }

    var int i = 0;
    var string remaining_html = &quot;&quot;;
    foreach var string html ($closing_html) {
      if ($html != &quot;&quot;) {
        $remaining_html = $html + $remaining_html;
        $closing_html[$i] = &quot;&quot;;
      }
      $i++;
    }
    $list = $list + $remaining_html;
  }

  if ($list != &quot;&quot;){
    $this-&amp;gt;lay_print_sidebox_top(&quot;Navigation&quot;);
    print $list;
    $this-&amp;gt;lay_print_sidebox_bottom();
  }
}
&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&quot;cutid2&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;modified version of &lt;span class=&apos;ljuser ljuser-name_s2smoothsailing&apos; lj:user=&apos;s2smoothsailing&apos; style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;http://community.livejournal.com/s2smoothsailing/profile&apos;&gt;&lt;img src=&apos;http://l-stat.livejournal.com/img/community.gif&apos; alt=&apos;[info]&apos; width=&apos;16&apos; height=&apos;16&apos; style=&apos;vertical-align: bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;http://community.livejournal.com/s2smoothsailing/&apos;&gt;&lt;b&gt;s2smoothsailing&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;textarea&gt;
function Page::lay_print_sidebar_tags() {
    var Tag[] pagetags = $this-&amp;gt;visible_tag_list();

#####   Config   #####

    # Specify your delimiter!  One char only -- extra chars get truncated.
    # Making the delimiter an empty string will result in an un-tiered list, 
    # which may be what you prefer, but this code is serious overkill for 
    # that purpose.
    var string delimiter = &quot;:&quot;;
    var bool show_count = true;
    var string pre_count = &quot;(&quot;;
    var string post_count = &quot;)&quot;;

    # Specify the title of your tag box!
    var string tag_title = &quot;Navigation&quot;;

##### End Config #####

    var Page p = get_page();
    var string list = &quot;&quot;;
    
    # mt:20050627
    # Replaced erroneous return code with if statement (otherwise
    # entire sidebar not printed at all if no visible tags!).
    if (size $p-&amp;gt;visible_tag_list() &amp;gt; 0) 
    { 
        # mt:20050624
        # Can&apos;t use delimiter longer than one char, so truncate if necessary.
        if ($delimiter-&amp;gt;length() &amp;gt; 1)    
        {
            $delimiter = $delimiter-&amp;gt;substr(0, 1);
        }

        var bool list_started = false;
        var string list_item = &quot;&quot;;
        var string[] prev_tags = [&quot;&quot;, &quot;&quot;];

        # mt:20050624: Start the list.
        $list = &quot;&quot;&quot;&amp;lt;ul class=&quot;tagList&quot;&amp;gt;&quot;&quot;&quot;; 
        
        foreach var TagDetail t ($p-&amp;gt;visible_tag_list()) 
        {        
            var string[] tags;
             
            if ($t.name) 
            {  
                # mt:20050624
                # Split tags into a 1- or 2-element array on delimiter. Oh god, my
                # kingdom for a function.  Adapted from lj-user rane500&apos;s explode 
                # function to only care about first instance of the delimiter.
                var int array_counter = 0;
                var string buffer = &quot;&quot;;
                var bool found_delimiter = false;
                foreach var string char ($t.name) 
                {
                    if (($found_delimiter == false) and ($char == $delimiter))
                    {
                        $found_delimiter = true;
                        $tags[$array_counter] = $buffer;
                        $array_counter = $array_counter + 1;
                        $buffer = &quot;&quot;;
                    }
                    else 
                    {
                        $buffer = $buffer + $char;
                    } 
                }  
                $tags[$array_counter] = $buffer;
                
                # mt:20050624: Now examine the tags array to determine how to display the tag.
                if (size $tags == 1)
                {
                    # mt:20050624: This tag has no subtag.
        
                    if ($list_started)
                    {
                        # mt:20050624: Previous tag had a subtag, so must close its outstanding list. 
                        $list = $list + &quot;&quot;&quot;&amp;lt;/ul&amp;gt;&quot;&quot;&quot;;
                        $list_started = false;
                    }
                    if ($prev_tags[0] != &quot;&quot;)
                    {
                        # mt:20050624: This is not the very first tag in the list, so close off previous tag.
                        $list = $list + &quot;&quot;&quot;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
                    }
                    # mt:20050624: Now add the new tag.
                    $list = $list + &quot;&quot;&quot;&amp;lt;li class=&quot;tagItem&quot;&amp;gt;&amp;lt;a href=&quot;$t.url&quot;&amp;gt;$tags[0]&amp;lt;/a&amp;gt; ($t.use_count)&quot;&quot;&quot;;
                }
                else
                {   
                    # mt:20050624: This tag has a subtag.
        
                    $list_item = &quot;&quot;&quot;&amp;lt;li class=&quot;tagItem&quot;&amp;gt;&amp;lt;a href=&quot;$t.url&quot;&amp;gt;$tags[1]&amp;lt;/a&amp;gt;  ($t.use_count)&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
                   
                    if (($tags[0] == $prev_tags[0]) and ($list_started))
                    {
                        # mt:20050624
                        # This tag fits under the previous tag&apos;s tier, and it is not the first item in that tier.
                        $list = $list + $list_item;
                    }
                    elseif (($tags[0] == $prev_tags[0]) and ($list_started == false))
                    {
                        # mt:20050624
                        # This tag fits under the previous tag&apos;s tier, and it is the very first item in that tier.
                        $list = $list + &quot;&quot;&quot;&amp;lt;ul class=&quot;tagList&quot;&amp;gt;&quot;&quot;&quot; + $list_item;
                        $list_started = true;
                    }
                    elseif (($tags[0] != $prev_tags[0]) and ($list_started))
                    {
                        # mt:20050624: This tag initializes a new tier and must also close off the previous tag&apos;s list.
                        # $list_started retains its true state.
                        $list = $list + &quot;&quot;&quot;&amp;lt;/ul&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;li class=&quot;tagItem&quot;&amp;gt;$tags[0]&amp;lt;ul class=&quot;tagList&quot;&amp;gt;&quot;&quot;&quot; + $list_item;
                    }
                    elseif (($tags[0] != $prev_tags[0]) and ($list_started == false))
                    {
                        # mt:20050624: This tag initializes a new tier but does not have to close off a list.
                        
                        if ($prev_tags[0] != &quot;&quot;)
                        {
                            # mt:20050624: This is not the very first tag in the list, so close off previous tag.
                            $list = $list + &quot;&quot;&quot;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
                        }
                        
                        # mt:20050624: Now add the new tag.
                        $list = $list + &quot;&quot;&quot;&amp;lt;li class=&quot;tagItem&quot;&amp;gt;$tags[0]&amp;lt;ul class=&quot;tagList&quot;&amp;gt;&quot;&quot;&quot; + $list_item;
                        $list_started = true;
                    }
                }       
                $prev_tags = $tags;           
            }        
            # mt:20050623: Next tag in the list!
        } 
    
        # mt:20050624: Close any outstanding lists.
        if ($list_started)
    	{
            $list = $list + &quot;&quot;&quot;&amp;lt;/ul&amp;gt;&quot;&quot;&quot;;
        }	   
    	$list = $list + &quot;&quot;&quot;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&quot;&quot;&quot;;
	   
        # mt:20050625: Enclose the entire list in an li tag as required by the layout.
#        $list = &quot;&quot;&quot;&amp;lt;li class=&quot;tagBox&quot;&amp;gt;&quot;&quot;&quot; + $list + &quot;&quot;&quot;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;

        # mt:20050623: Add styling to box title.
#        $tag_title = &quot;&quot;&quot;&amp;lt;li class=&quot;sbartitle&quot;&amp;gt;$tag_title&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
    }

##### Specify Box Order #####
 
    # mt:20050627
    # Okay, now that&apos;s done, just print out all your sidebar boxes in the order you 
    # want, including a call for this one -- print_sidebar_box($tag_title, $list) --
    # nested within an if statement to prevent tags box from printing in the event 
    # of no visible tags.
#    print_userpic();
#    print_sidebar_blurb();  
#    if ($list != &quot;&quot;){print_sidebar_box($tag_title, $list);}
#    print_sidebar_linklist();
#    print_sidebar_calendar();

#####   End Box Order   #####

  if ($list != &quot;&quot;){
    $this-&amp;gt;lay_print_sidebox_top($tag_title);
    print $list;
    $this-&amp;gt;lay_print_sidebox_bottom();
  }
}
&lt;/textarea&gt;</description>
  <comments>http://babytest.livejournal.com/12003.html</comments>
  <category>smooth sailing</category>
  <lj:music>P!nk - Dear Mr. P.</lj:music>
  <media:title type="plain">P!nk - Dear Mr. P.</media:title>
  <lj:mood>crazy</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>7</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://babytest.livejournal.com/11527.html</guid>
  <pubDate>Sat, 30 Jun 2007 17:30:34 GMT</pubDate>
  <title>S2 Smooth Sailing - modify the comment bar</title>
  <link>http://babytest.livejournal.com/11527.html</link>
  <description>With the help of the following code you can modyfy the comment bar in Smooth Sailing so, that you either only have the comment and readlink, or comment, read, edit and edit tags&lt;br /&gt;&lt;br /&gt;&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function Entry::print_linkbar() {&lt;br /&gt;&lt;br /&gt;# part of the code is from the original smooth sailing code&lt;br /&gt;# part of it is shamelessly stolen from kunzite1 &lt;br /&gt;# &lt;a href=&quot;http://community.livejournal.com/s2layers/36131.html&quot;&gt;http://community.livejournal.com/s2layers/36131.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;          var Page p = get_page();&lt;br /&gt;          var bool printqr = false;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;          &quot;&quot;&quot;&lt;br /&gt;          &amp;lt;div class=&quot;entryLinkbar&quot;&amp;gt;&amp;lt;ul&amp;gt;&lt;br /&gt;          &quot;&quot;&quot;;&lt;br /&gt;          if ($.comments.enabled) {&lt;br /&gt;            if ($.itemid==int($*layout_guestbook_entryid)) {&quot;&quot;&quot;&amp;lt;li&amp;gt;&amp;lt;a &lt;br /&gt;&lt;br /&gt;href=&quot;$.comments.post_url&quot;&amp;gt;$*text_post_comment_guestbook&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;            }else{&lt;br /&gt;              if ($.comments.count &amp;gt; 0 or $.comments.screened) {&lt;br /&gt;                &quot;&quot;&quot;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;$.comments.read_url&quot;&amp;gt;&quot;&quot;&quot;; print get_plural_phrase($.comments.count,&quot;text_read_comments&quot;); &lt;br /&gt;&lt;br /&gt;&quot;&quot;&quot;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;              }&lt;br /&gt;              $printqr = true;&lt;br /&gt;              &quot;&quot;&quot;&amp;lt;li&amp;gt;&quot;&quot;&quot;; $p-&amp;gt;print_reply_link({&quot;linktext&quot; =&amp;gt; $*text_post_comment, &quot;target&quot; =&amp;gt; &quot;qr$.journal.username$.itemid&quot;, &lt;br /&gt;&lt;br /&gt;&quot;reply_url&quot; =&amp;gt; $.comments.post_url}); &quot;&quot;&quot;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;            }&lt;br /&gt;          }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;########################################################################&lt;br /&gt;#### if you only want the comment and read link remove everything   ####&lt;br /&gt;#### that comes between this comment                                ####              &lt;br /&gt;#### and the comment where I tell you to stop to delete		    ####	      &lt;br /&gt;########################################################################&lt;br /&gt;&lt;br /&gt;  # initialize array/hashes&lt;br /&gt;  var string[] link_keyseq    = [&quot;&quot;];&lt;br /&gt;  var string{} link_url       = {&quot;&quot; =&amp;gt; &quot;&quot;};&lt;br /&gt;  var string{} link_caption   = {&quot;&quot; =&amp;gt; &quot;&quot;};&lt;br /&gt;&lt;br /&gt;  var string print           = &quot;&quot;;                                         # var for printing&lt;br /&gt;  var bool   show_interentry = ($p.view == &quot;entry&quot; or $p.view == &quot;reply&quot;); # if entry/reply view, show interentry&lt;br /&gt;  var int    keyseq_index    = 0;                                          # set index point for new link_keyseq array&lt;br /&gt;&lt;br /&gt;  if($show_interentry) {&lt;br /&gt;    # if show interentry, put previous entry link first&lt;br /&gt;    $link_keyseq[$keyseq_index++] = &quot;nav_prev&quot;;&lt;br /&gt;&lt;br /&gt;    # get previous entry link information&lt;br /&gt;    var Link prev             = $this-&amp;gt;get_link(&quot;nav_prev&quot;);&lt;br /&gt;    $link_url{&quot;nav_prev&quot;}     = $prev.url;&lt;br /&gt;    $link_caption{&quot;nav_prev&quot;} = $prev.caption;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    # get next entry link information&lt;br /&gt;    var Link next             = $this-&amp;gt;get_link(&quot;nav_next&quot;);&lt;br /&gt;    $link_url{&quot;nav_next&quot;}     = $next.url;&lt;br /&gt;    $link_caption{&quot;nav_next&quot;} = $next.caption;&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  # gather current linkbar&lt;br /&gt;  foreach var string link_key ($.link_keyseq) {&lt;br /&gt;    var Link  link            = $this-&amp;gt;get_link($link_key);&lt;br /&gt;    $link_url{$link_key}      = $link.url;&lt;br /&gt;    $link_caption{$link_key}  = $link.caption;&lt;br /&gt;    $link_keyseq[$keyseq_index++] = $link_key; # add this to new link_keyseq array&lt;br /&gt;  }&lt;br /&gt;  if($show_interentry) {&lt;br /&gt;    # if show interentry, put next entry link last&lt;br /&gt;    $link_keyseq[$keyseq_index++] = &quot;nav_next&quot;;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  # alter data here&lt;br /&gt;  $link_keyseq                = [&quot;edit_entry&quot;, &quot;edit_tags&quot;]; &lt;br /&gt;  # change link order [&quot;edit_entry&quot;, &quot;edit_tags&quot;, &quot;mem_add&quot;]&lt;br /&gt;  # $link_caption{&quot;edit_entry&quot;} = &quot;edit entry&quot;;                           &lt;br /&gt;  # change caption&lt;br /&gt;&lt;br /&gt;  # loop thru linkbar and add links to print var&lt;br /&gt;  foreach var string link_key ($link_keyseq) {&lt;br /&gt;    # if we can do performed action, url will be present&lt;br /&gt;    if($link_url{$link_key} != &quot;&quot;) {&lt;br /&gt;      $print = $print + &quot;&quot;&quot;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;$link_url{$link_key}&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        $print = $print + &quot;$link_caption{$link_key}&quot;;&lt;br /&gt;      &lt;br /&gt;      # add a seperator&lt;br /&gt;      $print = $print + &quot;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  # we&apos;re done! let&apos;s print it!&lt;br /&gt;  print $print;&lt;br /&gt;&lt;br /&gt;##############################&lt;br /&gt;### STOP to delete here!!! ###&lt;br /&gt;##############################&lt;br /&gt;&lt;br /&gt;          &quot;&quot;&quot;&lt;br /&gt;          &amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;!-- entryLinkbar --&amp;gt;&lt;br /&gt;          &quot;&quot;&quot;;&lt;br /&gt;          if ($printqr) { $p-&amp;gt;print_reply_container({&quot;class&quot; =&amp;gt; &quot;quickreply_entry&quot;, &quot;target&quot; =&amp;gt; &quot;qr$.journal.username$.itemid&quot;}); }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;</description>
  <comments>http://babytest.livejournal.com/11527.html</comments>
  <category>smooth sailing</category>
  <category>s2</category>
  <lj:mood>accomplished</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>23</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://babytest.livejournal.com/11331.html</guid>
  <pubDate>Sat, 13 Jan 2007 17:37:47 GMT</pubDate>
  <title>Sidebar control panel for smooth sailing</title>
  <link>http://babytest.livejournal.com/11331.html</link>
  <description>set layout_sidebox_freetext_10_visibility = &quot;12&quot;;&lt;br /&gt;    set text_sidebox_freetext_10_title = &quot;Control Panel&quot;;&lt;br /&gt;&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;function Page::lay_print_sidebar_freetextbox_10() {&lt;br /&gt;# create helper vars for sidebar boxes&lt;br /&gt;var string k1Sheader      = &quot;&quot;;&lt;br /&gt;var string k1Sheader_one  = &quot;&quot;&quot;&amp;lt;li class=&quot;sbartitle&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;var string k1Sheader_two  = &quot;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;var string k1Scontent     = &quot;&quot;;&lt;br /&gt;var string k1Scontent_one = &quot;&quot;&quot;&amp;lt;li class=&quot;sbark1CP&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;var string k1Scontent_two = &quot;&amp;lt;/li&amp;gt;&quot;;&lt;br /&gt;&lt;br /&gt;##################################&lt;br /&gt;#     CONTROL PANEL COMPONENT    #&lt;br /&gt;# kunzite1, component-help/82952 #&lt;br /&gt;# add to print_free_text(Page p) #&lt;br /&gt;##################################&lt;br /&gt;# Title bar of component when logged in&lt;br /&gt;  var string k1CPloggedInTitle = &quot;your control panel&quot;;&lt;br /&gt;&lt;br /&gt;# Title bar of component when not logged in&lt;br /&gt;  var string k1CPloggedOutTitle = &quot;login box&quot;;&lt;br /&gt;&lt;br /&gt;# LOGIN BOX&lt;br /&gt;# Label for entering username&lt;br /&gt;  var string k1CPusername   = &quot;user:&quot;;&lt;br /&gt;&lt;br /&gt;# Label for entering password&lt;br /&gt;  var string k1CPpassword   = &quot;pw:&quot;;&lt;br /&gt;&lt;br /&gt;# Label for forgot password link&lt;br /&gt;  var string k1CPforgot     = &quot;forgot?&quot;;&lt;br /&gt;&lt;br /&gt;# Label for expiration options&lt;br /&gt;  var string k1CPexpiration = &quot;expiration:&quot;;&lt;br /&gt;&lt;br /&gt;# Label for expiring when window closes&lt;br /&gt;  var string k1CPclose      = &quot;window close&quot;;&lt;br /&gt;&lt;br /&gt;# Label for never expiring&lt;br /&gt;  var string k1CPnever      = &quot;never&quot;;&lt;br /&gt;&lt;br /&gt;# Label for binding to ip&lt;br /&gt;  var string k1CPbind       = &quot;bind to ip:&quot;;&lt;br /&gt;&lt;br /&gt;# Label for accepting binding to ip&lt;br /&gt;  var string k1CPy          = &quot;yes&quot;;&lt;br /&gt;&lt;br /&gt;# Label for denying binding to ip&lt;br /&gt;  var string k1CPn          = &quot;no&quot;;&lt;br /&gt;&lt;br /&gt;# Label for log in button&lt;br /&gt;  var string k1CPsubmit     = &quot;log in&quot;;&lt;br /&gt;&lt;br /&gt;#######################&lt;br /&gt;# CONTROL PANEL START #&lt;br /&gt;#######################&lt;br /&gt;var string k1CPpanel         = &quot;&quot;;&lt;br /&gt;var string k1CPheader        = viewer_logged_in() ? $k1CPloggedInTitle : $k1CPloggedOutTitle;&lt;br /&gt;if(viewer_logged_in()){&lt;br /&gt;var string k1CPmedLineString = &quot;#DFDFDF&quot;;&lt;br /&gt;var int    k1CPcols          = 2;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;var string[] k1CPlink_urls  = [&quot;&quot;];&lt;br /&gt;var string[] k1CPlink_texts = [&quot;&quot;];&lt;br /&gt;var int      k1CPlink_index = 0;&lt;br /&gt;&lt;br /&gt;# set one&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/customize/&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;customize&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set two&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/customize/advanced/&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;&amp;lt;i&amp;gt;advanced&amp;lt;/i&amp;gt;&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set three&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/customize/advanced/layers.bml&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;&amp;lt;i&amp;gt;layers&amp;lt;/i&amp;gt;&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set four&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/customize/advanced/styles.bml&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;&amp;lt;i&amp;gt;styles&amp;lt;/i&amp;gt;&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set five&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/manage/links.bml&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;link lists&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set six&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/update.bml&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;update&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set seven&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/editjournal.bml&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;edit entries&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set eight&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/friends/&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;edit friends&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;# set nine&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/editinfo.bml&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;edit info&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set ten&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/changepassword.bml&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;edit pass&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set eleven&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/editpics.bml&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;edit pics&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set twelve&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/tools/memories.bml&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;memories&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set thirteen&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/misc/whereami.bml&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;my cluster&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set fourteen&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/portal/&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;my portal&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set fifteen&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/site/&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;site map&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set sixteen&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/stats.bml&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;site stats&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set seventeen&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/birthdays.bml&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;birthdays&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;# set eighteen&lt;br /&gt;$k1CPlink_urls[$k1CPlink_index]  = &quot;$*SITEROOT/logout.bml&quot;;&lt;br /&gt;$k1CPlink_texts[$k1CPlink_index] = &quot;logout&quot;;&lt;br /&gt;$k1CPlink_index++;&lt;br /&gt;&lt;br /&gt;var int    k1CPcount = 0;&lt;br /&gt;var string k1CPwidth = (100 / $k1CPcols) + &quot;%&quot;;&lt;br /&gt;$k1CPpanel = $k1CPpanel + &quot;&quot;&quot;&amp;lt;table border=&quot;1&quot; bordercolor=&quot;$k1CPmedLineString&quot; cellspacing=&quot;0&quot; frame=&quot;void&quot; width=&quot;100%&quot;&amp;gt;\n&quot;&quot;&quot;;&lt;br /&gt;foreach var int i (0 .. size($k1CPlink_urls) - 1) {&lt;br /&gt;  var string url  = $k1CPlink_urls[$i];&lt;br /&gt;  var string text = $k1CPlink_texts[$i];&lt;br /&gt;  $k1CPcount++;&lt;br /&gt;  if($k1CPcount == 1) {&lt;br /&gt;    $k1CPpanel = $k1CPpanel + &quot;  &amp;lt;tr&amp;gt;\n&quot;;&lt;br /&gt;  }&lt;br /&gt;  $k1CPpanel = $k1CPpanel + &quot;&quot;&quot;    &amp;lt;td align=&quot;center&quot; width=&quot;$k1CPwidth&quot;&amp;gt;&amp;lt;a href=&quot;$url&quot;&amp;gt;$text&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;\n&quot;&quot;&quot;;&lt;br /&gt;  if($k1CPcount == $k1CPcols) {&lt;br /&gt;    $k1CPpanel = $k1CPpanel + &quot;  &amp;lt;/tr&amp;gt;\n&quot;;&lt;br /&gt;    $k1CPcount = 0;&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;if($k1CPcount &amp;gt; 0) {&lt;br /&gt;  foreach var int i ($k1CPcount .. $k1CPcols) {&lt;br /&gt;    if($i &amp;lt; $k1CPcols) {&lt;br /&gt;      $k1CPpanel = $k1CPpanel + &quot;    &amp;lt;td&amp;gt;&amp;nbsp;&amp;lt;/td&amp;gt;\n&quot;;&lt;br /&gt;    } else {&lt;br /&gt;      $k1CPpanel = $k1CPpanel + &quot;  &amp;lt;/tr&amp;gt;\n&quot;;&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;  $k1CPpanel = $k1CPpanel + &quot;&quot;&quot;&amp;lt;/table&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;} else {&lt;br /&gt;  $k1CPpanel = $k1CPpanel + &quot;&quot;&quot;&lt;br /&gt;&amp;lt;form action=&quot;$*SITEROOT/login.bml&quot; method=&quot;post&quot;&amp;gt;&lt;br /&gt;  &amp;lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;90%&quot;&amp;gt;&lt;br /&gt;    &amp;lt;tr&amp;gt;&lt;br /&gt;      &amp;lt;td&amp;gt;$k1CPusername&amp;lt;/td&amp;gt;&lt;br /&gt;      &amp;lt;td&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;user&quot; size=&quot;10&quot; maxlength=&quot;14&quot; width=&quot;100%&quot; /&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;    &amp;lt;/tr&amp;gt;&lt;br /&gt;    &amp;lt;tr&amp;gt;&lt;br /&gt;      &amp;lt;td valign=&quot;top&quot;&amp;gt;$k1CPpassword&amp;lt;/td&amp;gt;&lt;br /&gt;      &amp;lt;td&amp;gt;&amp;lt;input type=&quot;password&quot; name=&quot;password&quot; size=&quot;10&quot; maxlength=&quot;14&quot; width=&quot;100%&quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;      &amp;lt;a href=&quot;$*SITEROOT/lostinfo.bml&quot;&amp;gt;&amp;lt;font size=&quot;1&quot;&amp;gt;$k1CPforgot&amp;lt;/font&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;    &amp;lt;/tr&amp;gt;&lt;br /&gt;    &amp;lt;tr valign=&quot;top&quot;&amp;gt;&lt;br /&gt;      &amp;lt;td&amp;gt;$k1CPexpiration&amp;lt;/td&amp;gt;&lt;br /&gt;      &amp;lt;td&amp;gt;&amp;lt;input type=&quot;radio&quot; name=&quot;expire&quot; value=&quot;close&quot;  checked=&quot;checked&quot; id=&quot;close&quot; /&amp;gt; &amp;lt;label for=&quot;close&quot;&amp;gt;$k1CPclose&amp;lt;/label&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;      &amp;lt;input type=&quot;radio&quot; name=&quot;expire&quot; value=&quot;never&quot;  id=&quot;never&quot; /&amp;gt; &amp;lt;label for=&quot;never&quot;&amp;gt;$k1CPnever&amp;lt;/label&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;    &amp;lt;/tr&amp;gt;&lt;br /&gt;    &amp;lt;tr valign=&quot;top&quot;&amp;gt;&lt;br /&gt;      &amp;lt;td&amp;gt;$k1CPbind&amp;lt;/td&amp;gt;&lt;br /&gt;      &amp;lt;td&amp;gt;&amp;lt;input type=&quot;radio&quot; name=&quot;bindip&quot; value=&quot;yes&quot;  id=&quot;bindyes&quot; /&amp;gt; &amp;lt;label for=&quot;bindyes&quot;&amp;gt;$k1CPy&amp;lt;/label&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;      &amp;lt;input type=&quot;radio&quot; name=&quot;bindip&quot; value=&quot;no&quot;  checked=&quot;checked&quot; id=&quot;bindipno&quot; /&amp;gt; &amp;lt;label for=&quot;bindipno&quot;&amp;gt;$k1CPn&amp;lt;/label&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;    &amp;lt;/tr&amp;gt;&lt;br /&gt;    &amp;lt;tr&amp;gt;&lt;br /&gt;      &amp;lt;td colspan=&quot;2&quot; align=&quot;center&quot;&amp;gt;&amp;lt;input name=&quot;action:login&quot; type=&quot;submit&quot; value=&quot;$k1CPsubmit&quot; /&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;    &amp;lt;/tr&amp;gt;&lt;br /&gt;  &amp;lt;/table&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;  &quot;&quot;&quot;;&lt;br /&gt;}&lt;br /&gt;    $this-&amp;gt;lay_print_sidebox_top($*text_sidebox_freetext_10_title);&lt;br /&gt;&quot;&quot;&quot;&amp;lt;div class=&quot;sideboxContent&quot; id=&quot;freetext10&quot;&amp;gt;&lt;br /&gt;$k1Scontent_one$k1CPpanel$k1Scontent_two&lt;br /&gt;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;# print box&lt;br /&gt;    $this-&amp;gt;lay_print_sidebox_bottom();&lt;br /&gt;}&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;and this went in the css section:&lt;br /&gt;&lt;br /&gt;li.sbark1CP &lt;br /&gt;        {&lt;br /&gt;               padding-left: 0px;&lt;br /&gt;               padding-right: 0px;&lt;br /&gt;               list-style: none;&lt;br /&gt;&lt;br /&gt;        }</description>
  <comments>http://babytest.livejournal.com/11331.html</comments>
  <category>smooth sailing</category>
  <lj:security>public</lj:security>
  <lj:reply-count>13</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://babytest.livejournal.com/10861.html</guid>
  <pubDate>Sun, 03 Dec 2006 20:31:43 GMT</pubDate>
  <title>CSS Guides für S2 Layouts</title>
  <link>http://babytest.livejournal.com/10861.html</link>
  <description>&lt;a href=&quot;http://community.livejournal.com/cartonage/2419.html&quot;&gt;Flexible Squares&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://community.livejournal.com/carriep63_stuff/24658.html&quot;&gt;Smooth Sailing&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://community.livejournal.com/the_lj_reboot/13393.html&quot;&gt;Tranquility II&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://community.livejournal.com/s2_bloggish/3738.html&quot;&gt;Bloggish&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://community.livejournal.com/carriep63_stuff/32122.html&quot;&gt;Expressive&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://community.livejournal.com/graphicsbyjulz/2423.html&quot;&gt;Opal&lt;/a&gt;</description>
  <comments>http://babytest.livejournal.com/10861.html</comments>
  <category>css guides</category>
  <lj:security>public</lj:security>
  <lj:reply-count>2</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://babytest.livejournal.com/10524.html</guid>
  <pubDate>Thu, 30 Nov 2006 18:43:47 GMT</pubDate>
  <title>S2 Smooth Sailing Welcome Note on all pages</title>
  <link>http://babytest.livejournal.com/10524.html</link>
  <description>&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function RecentPage::print_body() {&lt;br /&gt;  if ($*sticky_post != &quot;&quot;) {&lt;br /&gt;     # print the welcome note, styled like an entry by default, but with CSS id &lt;br /&gt;     # tags so that the welcome note can be customised through Custom CSS.&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryHolder&quot; id=&quot;welcomenoteHolder&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;     if ($*sticky_subject != &quot;&quot;) { &lt;br /&gt;        &quot;&quot;&quot;&amp;lt;div class=&quot;entryHeader&quot; id=&quot;welcomenoteHeader&quot;&amp;gt;&lt;br /&gt;              &amp;lt;div class=&quot;entrySubject&quot; id=&quot;welcomenoteSubject&quot;&amp;gt;$*sticky_subject&amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&quot;&quot;&quot;; &lt;br /&gt;     }&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryText&quot; id=&quot;welcomenoteText&quot;&amp;gt;$*sticky_post&amp;lt;/div&amp;gt;&lt;br /&gt;     &amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  }&lt;br /&gt;  var int i = size $.entries - 1;&lt;br /&gt;  if ($i&amp;lt;0) {&lt;br /&gt;      &quot;&quot;&quot;&amp;lt;div class=&quot;entryHolder&quot;&amp;gt;&amp;lt;center&amp;gt;$*text_noentries_recent&amp;lt;center&amp;gt;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  }else{&lt;br /&gt;    foreach var int pos (0..$i) {&lt;br /&gt;      var Entry e = $.entries[$pos];&lt;br /&gt;      $this-&amp;gt;print_entry($e);&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function FriendsPage::print_body() {&lt;br /&gt;  if ($*sticky_post != &quot;&quot;) {&lt;br /&gt;     # print the welcome note, styled like an entry by default, but with CSS id &lt;br /&gt;     # tags so that the welcome note can be customised through Custom CSS.&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryHolder&quot; id=&quot;welcomenoteHolder&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;     if ($*sticky_subject != &quot;&quot;) { &lt;br /&gt;        &quot;&quot;&quot;&amp;lt;div class=&quot;entryHeader&quot; id=&quot;welcomenoteHeader&quot;&amp;gt;&lt;br /&gt;              &amp;lt;div class=&quot;entrySubject&quot; id=&quot;welcomenoteSubject&quot;&amp;gt;$*sticky_subject&amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&quot;&quot;&quot;; &lt;br /&gt;     }&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryText&quot; id=&quot;welcomenoteText&quot;&amp;gt;$*sticky_post&amp;lt;/div&amp;gt;&lt;br /&gt;     &amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  }&lt;br /&gt;  var int i = size $.entries - 1;&lt;br /&gt;  if ($i&amp;lt;0) {&lt;br /&gt;      &quot;&quot;&quot;&amp;lt;div class=&quot;entryHolder&quot;&amp;gt;&amp;lt;div class=&quot;entryText&quot;&amp;gt;&amp;lt;center&amp;gt;$*text_noentries_recent&amp;lt;center&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  }else{&lt;br /&gt;    foreach var int pos (0..$i) {&lt;br /&gt;      var Entry e = $.entries[($*layout_friends_sortorder==&quot;newest&quot;?$pos:$i-$pos)];&lt;br /&gt;      $this-&amp;gt;print_entry($e);&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function DayPage::print_body() {&lt;br /&gt;  if ($*sticky_post != &quot;&quot;) {&lt;br /&gt;     # print the welcome note, styled like an entry by default, but with CSS id &lt;br /&gt;     # tags so that the welcome note can be customised through Custom CSS.&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryHolder&quot; id=&quot;welcomenoteHolder&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;     if ($*sticky_subject != &quot;&quot;) { &lt;br /&gt;        &quot;&quot;&quot;&amp;lt;div class=&quot;entryHeader&quot; id=&quot;welcomenoteHeader&quot;&amp;gt;&lt;br /&gt;              &amp;lt;div class=&quot;entrySubject&quot; id=&quot;welcomenoteSubject&quot;&amp;gt;$*sticky_subject&amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&quot;&quot;&quot;; &lt;br /&gt;     }&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryText&quot; id=&quot;welcomenoteText&quot;&amp;gt;$*sticky_post&amp;lt;/div&amp;gt;&lt;br /&gt;     &amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  }&lt;br /&gt;  var int i = size $.entries - 1;&lt;br /&gt;  if ($i&amp;lt;0) {&lt;br /&gt;      &quot;&quot;&quot;&amp;lt;div class=&quot;entryHolder&quot;&amp;gt;&amp;lt;div class=&quot;entryText&quot;&amp;gt;&amp;lt;center&amp;gt;$*text_noentries_day&amp;lt;/center&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  }else{&lt;br /&gt;    foreach var int pos (0..$i) {&lt;br /&gt;      var Entry e = $.entries[($*layout_day_sortorder==&quot;newest&quot;?$i-$pos:$pos)];&lt;br /&gt;      $this-&amp;gt;print_entry($e);&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function MonthPage::print_body() {&lt;br /&gt;  if ($*sticky_post != &quot;&quot;) {&lt;br /&gt;     # print the welcome note, styled like an entry by default, but with CSS id &lt;br /&gt;     # tags so that the welcome note can be customised through Custom CSS.&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryHolder&quot; id=&quot;welcomenoteHolder&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;     if ($*sticky_subject != &quot;&quot;) { &lt;br /&gt;        &quot;&quot;&quot;&amp;lt;div class=&quot;entryHeader&quot; id=&quot;welcomenoteHeader&quot;&amp;gt;&lt;br /&gt;              &amp;lt;div class=&quot;entrySubject&quot; id=&quot;welcomenoteSubject&quot;&amp;gt;$*sticky_subject&amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&quot;&quot;&quot;; &lt;br /&gt;     }&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryText&quot; id=&quot;welcomenoteText&quot;&amp;gt;$*sticky_post&amp;lt;/div&amp;gt;&lt;br /&gt;     &amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  }&lt;br /&gt;  foreach var MonthDay day ($.days) {&lt;br /&gt;    if ($day.has_entries) {&lt;br /&gt;       &quot;&quot;&quot;&amp;lt;a name=&quot;$day.day&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;       &amp;lt;div class=&quot;entryHolder&quot;&amp;gt;&lt;br /&gt;         &amp;lt;div class=&quot;entryHeader&quot;&amp;gt;&amp;lt;a href=&quot;$day.url&quot;&amp;gt;&quot;&quot;&quot;; print $day.date-&amp;gt;date_format(&quot;%%dayord%%&quot;); &quot;&quot;&quot;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;         &amp;lt;div class=&quot;daysubjects&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;         $day-&amp;gt;print_subjectlist();&lt;br /&gt;         &quot;&quot;&quot;&amp;lt;/div&amp;gt;&lt;br /&gt;       &amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function YearPage::print_body() {&lt;br /&gt;  if ($*sticky_post != &quot;&quot;) {&lt;br /&gt;     # print the welcome note, styled like an entry by default, but with CSS id &lt;br /&gt;     # tags so that the welcome note can be customised through Custom CSS.&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryHolder&quot; id=&quot;welcomenoteHolder&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;     if ($*sticky_subject != &quot;&quot;) { &lt;br /&gt;        &quot;&quot;&quot;&amp;lt;div class=&quot;entryHeader&quot; id=&quot;welcomenoteHeader&quot;&amp;gt;&lt;br /&gt;              &amp;lt;div class=&quot;entrySubject&quot; id=&quot;welcomenoteSubject&quot;&amp;gt;$*sticky_subject&amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&quot;&quot;&quot;; &lt;br /&gt;     }&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryText&quot; id=&quot;welcomenoteText&quot;&amp;gt;$*sticky_post&amp;lt;/div&amp;gt;&lt;br /&gt;     &amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  }&lt;br /&gt;  var int i = size $.months - 1;&lt;br /&gt;  if ($i&amp;lt;0) { return; }&lt;br /&gt;  foreach var int pos (0..$i) {&lt;br /&gt;    var YearMonth month = $.months[($*layout_year_sortorder==&quot;newest&quot;?$i-$pos:$pos)];&lt;br /&gt;    if ($month.has_entries) {&lt;br /&gt;      $this-&amp;gt;print_month($month);&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function EntryPage::print_body() {&lt;br /&gt;  if ($*sticky_post != &quot;&quot;) {&lt;br /&gt;     # print the welcome note, styled like an entry by default, but with CSS id &lt;br /&gt;     # tags so that the welcome note can be customised through Custom CSS.&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryHolder&quot; id=&quot;welcomenoteHolder&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;     if ($*sticky_subject != &quot;&quot;) { &lt;br /&gt;        &quot;&quot;&quot;&amp;lt;div class=&quot;entryHeader&quot; id=&quot;welcomenoteHeader&quot;&amp;gt;&lt;br /&gt;              &amp;lt;div class=&quot;entrySubject&quot; id=&quot;welcomenoteSubject&quot;&amp;gt;$*sticky_subject&amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&quot;&quot;&quot;; &lt;br /&gt;     }&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryText&quot; id=&quot;welcomenoteText&quot;&amp;gt;$*sticky_post&amp;lt;/div&amp;gt;&lt;br /&gt;     &amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  }&lt;br /&gt;   $this-&amp;gt;print_entry($.entry);&lt;br /&gt;   if (size $.comments &amp;gt;0) {&lt;br /&gt;&lt;br /&gt;      if ($.entry.itemid!=int($*layout_guestbook_entryid)) {&lt;br /&gt;         $this-&amp;gt;lay_print_bodytitlebox($*text_comment_seperator,&quot;midtitle&quot;);&lt;br /&gt;      }else {&lt;br /&gt;         $this-&amp;gt;lay_print_bodytitlebox($*text_signature_seperator,&quot;midtitle&quot;);&lt;br /&gt;      }&lt;br /&gt;      if (viewer_is_owner()) { $this-&amp;gt;print_multiform_start(); }&lt;br /&gt;      $this-&amp;gt;print_comments($.comments);&lt;br /&gt;      if (not $.comment_pages.all_subitems_displayed) {&lt;br /&gt;        &quot;&quot;&quot;&amp;lt;div class=&quot;bodynavblock&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;        $.comment_pages-&amp;gt;print();&lt;br /&gt;        &quot;&quot;&quot;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;      }&lt;br /&gt;      &quot;&quot;&quot;&amp;lt;div class=&quot;bodynavblock&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;      if (viewer_is_owner()) {&lt;br /&gt;        $this-&amp;gt;print_multiform_actionline();&lt;br /&gt;        $this-&amp;gt;print_multiform_end();&lt;br /&gt;      }else{&lt;br /&gt;        if ($.entry.itemid!=int($*layout_guestbook_entryid)) {&lt;br /&gt;          &quot;&quot;&quot;&amp;lt;b&amp;gt;&amp;lt;a href=&quot;$.entry.comments.post_url&quot;&amp;gt;$*text_post_comment_entrypage&amp;lt;/a&amp;gt;&amp;lt;/b&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;        }else{&lt;br /&gt;          &quot;&quot;&quot;&amp;lt;b&amp;gt;&amp;lt;a href=&quot;$.entry.comments.post_url&quot;&amp;gt;$*text_post_comment_guestbook&amp;lt;/a&amp;gt;&amp;lt;/b&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;        }&lt;br /&gt;      }&lt;br /&gt;      &quot;&quot;&quot;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function MessagePage::print_body() {&lt;br /&gt;  if ($*sticky_post != &quot;&quot;) {&lt;br /&gt;     # print the welcome note, styled like an entry by default, but with CSS id &lt;br /&gt;     # tags so that the welcome note can be customised through Custom CSS.&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryHolder&quot; id=&quot;welcomenoteHolder&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;     if ($*sticky_subject != &quot;&quot;) { &lt;br /&gt;        &quot;&quot;&quot;&amp;lt;div class=&quot;entryHeader&quot; id=&quot;welcomenoteHeader&quot;&amp;gt;&lt;br /&gt;              &amp;lt;div class=&quot;entrySubject&quot; id=&quot;welcomenoteSubject&quot;&amp;gt;$*sticky_subject&amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&quot;&quot;&quot;; &lt;br /&gt;     }&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryText&quot; id=&quot;welcomenoteText&quot;&amp;gt;$*sticky_post&amp;lt;/div&amp;gt;&lt;br /&gt;     &amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  }&lt;br /&gt;  &quot;&quot;&quot;&amp;lt;div class=&quot;entryHolder&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  &quot;&quot;&quot;&amp;lt;div class=&quot;entryText&quot;&amp;gt;$.message&amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  $this-&amp;gt;print_links();&lt;br /&gt;  &quot;&quot;&quot;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function TagsPage::print_body() {&lt;br /&gt;  if ($*sticky_post != &quot;&quot;) {&lt;br /&gt;     # print the welcome note, styled like an entry by default, but with CSS id &lt;br /&gt;     # tags so that the welcome note can be customised through Custom CSS.&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryHolder&quot; id=&quot;welcomenoteHolder&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;     if ($*sticky_subject != &quot;&quot;) { &lt;br /&gt;        &quot;&quot;&quot;&amp;lt;div class=&quot;entryHeader&quot; id=&quot;welcomenoteHeader&quot;&amp;gt;&lt;br /&gt;              &amp;lt;div class=&quot;entrySubject&quot; id=&quot;welcomenoteSubject&quot;&amp;gt;$*sticky_subject&amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&quot;&quot;&quot;; &lt;br /&gt;     }&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryText&quot; id=&quot;welcomenoteText&quot;&amp;gt;$*sticky_post&amp;lt;/div&amp;gt;&lt;br /&gt;     &amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  }&lt;br /&gt;  &quot;&quot;&quot;&amp;lt;div class=&quot;entryHolder&quot;&amp;gt;&lt;br /&gt;  &amp;lt;div class=&quot;entryText&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  if (size $.tags == 0 ) {&lt;br /&gt;      &quot;&quot;&quot;&amp;lt;center&amp;gt;$*text_tags_none&amp;lt;/center&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  }elseif ($*layout_tagspage==&quot;table&quot;) {&lt;br /&gt;      $this-&amp;gt;lay_print_tagstable();&lt;br /&gt;  }else{&lt;br /&gt;      $this-&amp;gt;lay_print_tagslist();&lt;br /&gt;  }&lt;br /&gt;  &quot;&quot;&quot;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function ReplyPage::print_body() {&lt;br /&gt;  if ($*sticky_post != &quot;&quot;) {&lt;br /&gt;     # print the welcome note, styled like an entry by default, but with CSS id &lt;br /&gt;     # tags so that the welcome note can be customised through Custom CSS.&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryHolder&quot; id=&quot;welcomenoteHolder&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;     if ($*sticky_subject != &quot;&quot;) { &lt;br /&gt;        &quot;&quot;&quot;&amp;lt;div class=&quot;entryHeader&quot; id=&quot;welcomenoteHeader&quot;&amp;gt;&lt;br /&gt;              &amp;lt;div class=&quot;entrySubject&quot; id=&quot;welcomenoteSubject&quot;&amp;gt;$*sticky_subject&amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&quot;&quot;&quot;; &lt;br /&gt;     }&lt;br /&gt;     &quot;&quot;&quot;&amp;lt;div class=&quot;entryText&quot; id=&quot;welcomenoteText&quot;&amp;gt;$*sticky_post&amp;lt;/div&amp;gt;&lt;br /&gt;     &amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;  }&lt;br /&gt;    if ($.replyto.depth==0) {&lt;br /&gt;      $this-&amp;gt;print_entry($.entry);&lt;br /&gt;    }else{&lt;br /&gt;      $.replyto-&amp;gt;lay_print();&lt;br /&gt;    }&lt;br /&gt;    if ($.entry.itemid==int($*layout_guestbook_entryid) and $.replyto.depth==0) {&lt;br /&gt;      $this-&amp;gt;lay_print_bodytitlebox($*text_signing_form,&quot;midtitle&quot;);&lt;br /&gt;    }elseif ($.replyto.depth==0) {&lt;br /&gt;      $this-&amp;gt;lay_print_bodytitlebox($*text_comment_form,&quot;midtitle&quot;);&lt;br /&gt;    }else{&lt;br /&gt;      $this-&amp;gt;lay_print_bodytitlebox($*text_reply_form,&quot;midtitle&quot;);&lt;br /&gt;    }&lt;br /&gt;    &quot;&quot;&quot;&lt;br /&gt;    &amp;lt;a name=&quot;replyform&quot;&amp;gt;&amp;lt;/a&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;    if ($.replyto.depth==0 and int($*layout_guestbook_entryid)!=0 and $.entry.itemid!=int($*layout_guestbook_entryid) and $*text_replypage_warning!=&quot;&quot;) {&lt;br /&gt;&lt;br /&gt;        print $*text_replypage_warning;&lt;br /&gt;    }&lt;br /&gt;    &quot;&quot;&quot;&lt;br /&gt;    &amp;lt;div class=&quot;replyform&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;      $.form-&amp;gt;print();&lt;br /&gt;    &quot;&quot;&quot;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
  <comments>http://babytest.livejournal.com/10524.html</comments>
  <category>smooth sailing</category>
  <category>s2</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://babytest.livejournal.com/10052.html</guid>
  <pubDate>Mon, 13 Nov 2006 10:00:16 GMT</pubDate>
  <title>Special Comments for Flexible Squares converted for Smooth Sailing</title>
  <link>http://babytest.livejournal.com/10052.html</link>
  <description>I have been using this code: &lt;a href=&quot;http://www.livejournal.com/customize/advanced/layersource.bml?id=5910803&quot;&gt;http://www.livejournal.com/customize/advanced/layersource.bml?id=5910803&lt;/a&gt; with this result: &lt;a href=&quot;http://afuna.livejournal.com/256064.html?s2id=10058075&quot;&gt;http://afuna.livejournal.com/256064.html?s2id=10058075&lt;/a&gt; for ages with Flexible Squares. Since I liked it so much I converted it to work with Smooth Sailing.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Preview: &lt;a href=&quot;http://img155.imageshack.us/my.php?image=specialcommentsvv2.png&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://img155.imageshack.us/img155/1230/specialcommentsvv2.th.png&quot; border=&quot;0&quot; alt=&quot;Free Image Hosting at www.ImageShack.us&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You need a &lt;b&gt;paid account&lt;/b&gt; to do this. If you don&apos;t already have theme layer you can just copy and paste the code to a new theme layer, if you already have a layer you need to merge this in your existing layer.&lt;br /&gt;&lt;br /&gt;&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style=&quot;background:pink; width:500px; border:2px dashed #000000; padding:5px;&quot;&gt;&lt;code&gt;&lt;br /&gt;layerinfo &quot;type&quot; = &quot;theme&quot;;&lt;br /&gt;layerinfo &quot;name&quot; = &quot;special comments&quot;;&lt;br /&gt;layerinfo &quot;source_viewable&quot; = 1;&lt;br /&gt;&lt;br /&gt;#---------------&lt;br /&gt;# try not to delete this...&lt;br /&gt;# merged from:&lt;br /&gt;# &lt;a href=&quot;http://www.livejournal.com/customize/advanced/layersource.bml?id=6233668&quot;&gt;http://www.livejournal.com/customize/advanced/layersource.bml?id=6233668&lt;/a&gt;&lt;br /&gt;# (afuna - inner listing)&lt;br /&gt;# &lt;a href=&quot;http://www.livejournal.com/customize/advanced/layersource.bml?id=6240967&quot;&gt;http://www.livejournal.com/customize/advanced/layersource.bml?id=6240967&lt;/a&gt;&lt;br /&gt;# (murklinstest - outer lines)&lt;br /&gt;#--------------&lt;br /&gt;&lt;br /&gt;class SpecialComments {&lt;br /&gt;function print_comments(Comment[] comments, EntryPage page, string depth, bool has_siblings);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function Page::print_custom_head() {&lt;br /&gt;&lt;br /&gt;# Specify how much indentation to use on comments to indicate thread depth&lt;br /&gt;var int indent = 10;&lt;br /&gt;# Specify the color of the big bar and the line in between thread depths&lt;br /&gt;var string bar_color = &quot;gray&quot;;&lt;br /&gt;# Specify the color of each depth&apos;s box&lt;br /&gt;# Normal links are also this color in order to avoid clutter&lt;br /&gt;var string box_color = &quot;#ffffff&quot;;&lt;br /&gt;# Specify the color of extra/special links&lt;br /&gt;var string link_faded_color = &quot;#bbb&quot;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&quot;&quot;&quot;&lt;br /&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;Outer lines&lt;br /&gt;**/&lt;br /&gt;/* Comments, free from content div and with tracing lines */&lt;br /&gt;.commenttrace_x {&lt;br /&gt;border-top: 1px solid #000000;&lt;br /&gt;}&lt;br /&gt;.commenttrace_y {&lt;br /&gt;border-left: 1px solid #000000;&lt;br /&gt;}&lt;br /&gt;.commentforceindent {&lt;br /&gt;border-style: none;&lt;br /&gt;margin-left: 5px;&lt;br /&gt;}&lt;br /&gt;.commentbox, .commentboxpartial {&lt;br /&gt;margin: 0 0 0 5px;&lt;br /&gt;border-top: 0px none #000000;&lt;br /&gt;border-right: 1px solid #000000;&lt;br /&gt;border-bottom: 1px solid #000000;&lt;br /&gt;border-left: 1px solid #000000;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Inner listing&lt;br /&gt;*/&lt;br /&gt;.commentcount {&lt;br /&gt;background-color: #ff0000;&lt;br /&gt;margin-left: 0px;&lt;br /&gt;padding-left: 0px;&lt;br /&gt;}&lt;br /&gt;.commentcount li {&lt;br /&gt;display: inline;&lt;br /&gt;border-right: 2px solid #ff0000;&lt;br /&gt;background-color: #ffffff;&lt;br /&gt;}&lt;br /&gt;.commentcount a {&lt;br /&gt;color: #ff0000;&lt;br /&gt;padding: 0px 2px;&lt;br /&gt;}&lt;br /&gt;.commentcount li.highlight1 a {&lt;br /&gt;color: #000000;&lt;br /&gt;}&lt;br /&gt;.commentcount li.highlight2 a {&lt;br /&gt;color: #666666;&lt;br /&gt;}&lt;br /&gt;.commentcount li a:hover {&lt;br /&gt;color: #222222;&lt;br /&gt;text-decoration: none;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&quot;&quot;&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function EntryPage::print_comments (Comment[] cs) {&lt;br /&gt;var SpecialComments specialComments = new SpecialComments;&lt;br /&gt;$specialComments-&amp;gt;print_comments($cs, $this, &quot;&quot;, false);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Change comment indentation, add boxes for linking lines. Note that&lt;br /&gt;# regardless of userpic position the comments always indent from left.&lt;br /&gt;function SpecialComments::print_comments(Comment[] comments, EntryPage page, string depth, bool has_siblings) {&lt;br /&gt;&lt;br /&gt;# Specify where you want to halt the indentation -- comments at his depth&lt;br /&gt;# will have the same amount of indent as their parent comment.&lt;br /&gt;# Note that comments with same-depth siblings will still indent&lt;br /&gt;var int no_indent_depth = 6;&lt;br /&gt;&lt;br /&gt;if (size $comments == 0) {&lt;br /&gt;return;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;var int count = 0;&lt;br /&gt;var string newDepth;&lt;br /&gt;var string liclass;&lt;br /&gt;foreach var Comment c ($comments) {&lt;br /&gt;$liclass=&quot;&quot;;&lt;br /&gt;# Comments threadlist for printing out&lt;br /&gt;# last thing in thread is a permalink&lt;br /&gt;$newDepth = $depth + &quot;&quot;&quot;&amp;lt;li class=&quot;highlight1&quot;&amp;gt;&amp;lt;a href=&quot;$c.permalink_url&quot;&amp;gt;$c.depth&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;&lt;br /&gt;var string sideborder = &quot;&quot;;&lt;br /&gt;var string indent = &quot;margin-left: 0px;&quot;;&lt;br /&gt;if (($has_siblings) or ($c.depth &amp;lt; $no_indent_depth)) {&lt;br /&gt;$indent = &quot;&quot;;&lt;br /&gt;}&lt;br /&gt;if ($c.depth == 1) {&lt;br /&gt;$indent = &quot;margin-left: 0px;&quot;;&lt;br /&gt;$sideborder = &quot;border-left: 0 none black;&quot;;&lt;br /&gt;}&lt;br /&gt;var string partialcomment = $c.full ? &quot;&quot; : &quot;partial&quot;;&lt;br /&gt;&lt;br /&gt;# Open the div that provides the left trace&lt;br /&gt;&quot;&quot;&quot;&amp;lt;div class=&quot;commenttrace_y&quot; style=&quot;$sideborder&quot;&amp;gt; &quot;&quot;&quot;;&lt;br /&gt;&lt;br /&gt;# This is the last comment at this level, so close the vertical trace div right away&lt;br /&gt;if ($count == (size $comments - 1)) {&lt;br /&gt;&quot;&quot;&quot;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&quot;&quot;&quot;&amp;lt;div class=&quot;commenttrace_x&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;&quot;&quot;&quot;&amp;lt;a name=&quot;$c.anchor&quot;&amp;gt;&amp;lt;/a&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;&quot;&quot;&quot;&amp;lt;div class=&quot;commentbox$partialcomment&quot; id=&quot;$c.dom_id&quot; style=&quot;$indent&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;&quot;&quot;&quot;&amp;lt;ul class=&quot;commentcount&quot;&amp;gt;$newDepth&amp;lt;/ul&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;if ( $c.full ) {&lt;br /&gt;$page-&amp;gt;print_comment( $c );&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;$page-&amp;gt;print_comment_partial( $c );&lt;br /&gt;}&lt;br /&gt;&quot;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&quot;;&lt;br /&gt;&quot;&quot;&quot;&amp;lt;div class=&quot;commentforceindent&quot; style=&quot;$indent&quot;&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;var bool multiple_replies = false;&lt;br /&gt;if (size $c.replies &amp;gt; 1) {&lt;br /&gt;$multiple_replies = true;&lt;br /&gt;$liclass=&quot;class=&apos;highlight2&apos;&quot;;&lt;br /&gt;}&lt;br /&gt;$newDepth = ($c.full) ? $depth + &quot;&quot;&quot;&amp;lt;li $liclass&amp;gt;&amp;lt;a href=&quot;#$c.anchor&quot;&amp;gt;$c.depth&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;&lt;br /&gt;: $depth + &quot;&quot;&quot;&amp;lt;li $liclass&amp;gt;&amp;lt;a href=&quot;$c.thread_url&quot;&amp;gt;$c.depth&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;&lt;br /&gt;$this-&amp;gt;print_comments($c.replies, $page, $newDepth, $multiple_replies);&lt;br /&gt;&quot;&quot;&quot;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;&lt;br /&gt;# This was not the last comment at this level, so only close the vertical trace&lt;br /&gt;# div now, so it spans all replies&lt;br /&gt;if ($count != (size $comments - 1)) {&lt;br /&gt;&quot;&quot;&quot;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$count = $count + 1;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;</description>
  <comments>http://babytest.livejournal.com/10052.html</comments>
  <category>smooth sailing</category>
  <category>tutorial</category>
  <category>s2</category>
  <lj:security>public</lj:security>
  <lj:reply-count>38</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://babytest.livejournal.com/9923.html</guid>
  <pubDate>Sun, 12 Nov 2006 20:07:06 GMT</pubDate>
  <title>Adding a random header image</title>
  <link>http://babytest.livejournal.com/9923.html</link>
  <description>&lt;b&gt;The Requirements:&lt;/b&gt;A webhost that supports &lt;acronym title=&quot;Hypertext Preprocessor&quot;&gt;PHP&lt;/acronym&gt; and a php script that calls the images (get that &lt;a href=&quot;#script&quot;&gt;here&lt;/a&gt;). A free webhost that supports php is for example &lt;a href=&quot;http://www.funpic.org/&quot;&gt;Funpic&lt;/a&gt;.&lt;b&gt;What we need to do:&lt;/b&gt;Save &lt;a href=&quot;#script&quot;&gt;this code&lt;/a&gt; as randomizer.php and upload it to your host.Upload all the images we want to use as a random header in the same directory as the php script.Now use the url of the randomizer.php script the same way as you would use a image url&lt;a name=&quot;script&quot;&gt;Copy the contents of this box and save it as randomizer.php&lt;/a&gt;&lt;div style=&quot;background:pink; width:500px; border:2px dashed #000000; padding:5px;&quot;&gt;&lt;code&gt;&amp;lt;?php/* AUTOMATIC IMAGE ROTATOR Version 2.2 - December 4, 2003 Copyright (c) 2002-2003 Dan P. Benjamin, Automatic, Ltd. All Rights Reserved. &lt;a href=&quot;http://www.hiveware.com/imagerotator.php&quot;&gt;http://www.hiveware.com/imagerotator.php&lt;/a&gt;  &lt;a href=&quot;http://www.automaticlabs.com/&quot;&gt;http://www.automaticlabs.com/&lt;/a&gt;   DISCLAIMER Automatic, Ltd. makes no representations or warranties about the suitability of the software, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. Dan P. Benjamin and Automatic, Ltd. shall not be liable for any damages suffered by licensee as a result of using, modifying or distributing this software or its derivatives.   ABOUT This PHP script will randomly select an image file from a folder of images on your webserver.  You can then link to it as you would any standard image file and you&apos;ll see a random image each time you reload.  When you want to add or remove images from the rotation-pool, just add or remove them from the image rotation folder. VERSION CHANGES Version 1.0  - Release version  Version 1.5  - Tweaked a few boring bugs  Version 2.0  - Complete rewrite from the ground-up  - Made it clearer where to make modifications  - Made it easier to specify/change the rotation-folder  - Made it easier to specify/change supported image types  - Wrote better instructions and info (you&apos;re them reading now)  - Significant speed improvements  - More error checking  - Cleaner code (albeit more PHP-specific)  - Better/faster random number generation and file-type parsing  - Added a feature where the image to display can be specified  - Added a cool feature where, if an error occurs (such as no    images being found in the specified folder) *and* you&apos;re    lucky enough to have the GD libraries compiled into PHP on    your webserver, we generate a replacement &quot;error image&quot; on    the fly.      Version 2.1        - Updated a potential security flaw when value-matching          filenames    Version 2.2        - Updated a few more potential security issues        - Optimized the code a bit.        - Expanded the doc for adding new mime/image types.        Thanks to faithful ALA reader Justin Greer for        lots of good tips and solid code contribution! INSTRUCTIONS 1. Modify the $folder setting in the configuration section below. 2. Add image types if needed (most users can ignore that part). 3. Upload this file (rotate.php) to your webserver.  I recommend    uploading it to the same folder as your images. 4. Link to the file as you would any normal image file, like this:   &amp;lt;img src=&quot;&lt;a href=&quot;http://example.com/rotate.php&quot;&gt;http://example.com/rotate.php&lt;/a&gt;&quot;&amp;gt; 5. You can also specify the image to display like this:   &amp;lt;img src=&quot;&lt;a href=&quot;http://example.com/rotate.php?img=gorilla.jpg&quot;&gt;http://example.com/rotate.php?img=gorilla.jpg&lt;/a&gt;&quot;&amp;gt;    This would specify that an image named &quot;gorilla.jpg&quot; located  in the image-rotation folder should be displayed.  That&apos;s it, you&apos;re done.*//* ------------------------- CONFIGURATION ----------------------- Set $folder to the full path to the location of your images. For example: $folder = &apos;/user/me/example.com/images/&apos;; If the rotate.php file will be in the same folder as your images then you should leave it set to $folder = &apos;.&apos;;*/ $folder = &apos;.&apos;;/*  Most users can safely ignore this part.  If you&apos;re a programmer, keep reading, if not, you&apos;re done.  Go get some coffee.    If you&apos;d like to enable additional image types other than gif, jpg, and png, add a duplicate line to the section below for the new image type.  Add the new file-type, single-quoted, inside brackets.  Add the mime-type to be sent to the browser, also single-quoted, after the equal sign.  For example:  PDF Files:  $extList[&apos;pdf&apos;] = &apos;application/pdf&apos;;     CSS Files:        $extList[&apos;css&apos;] = &apos;text/css&apos;;    You can even serve up random HTML files:     $extList[&apos;html&apos;] = &apos;text/html&apos;;     $extList[&apos;htm&apos;] = &apos;text/html&apos;;    Just be sure your mime-type definition is correct!*/    $extList = array(); $extList[&apos;gif&apos;] = &apos;image/gif&apos;; $extList[&apos;jpg&apos;] = &apos;image/jpeg&apos;; $extList[&apos;jpeg&apos;] = &apos;image/jpeg&apos;; $extList[&apos;png&apos;] = &apos;image/png&apos;; // You don&apos;t need to edit anything after this point.// --------------------- END CONFIGURATION -----------------------$img = null;if (substr($folder,-1) != &apos;/&apos;) { $folder = $folder.&apos;/&apos;;}if (isset($_GET[&apos;img&apos;])) { $imageInfo = pathinfo($_GET[&apos;img&apos;]); if (     isset( $extList[ strtolower( $imageInfo[&apos;extension&apos;] ) ] ) &amp;&amp;        file_exists( $folder.$imageInfo[&apos;basename&apos;] )    ) {  $img = $folder.$imageInfo[&apos;basename&apos;]; }} else { $fileList = array(); $handle = opendir($folder); while ( false !== ( $file = readdir($handle) ) ) {  $file_info = pathinfo($file);  if (      isset( $extList[ strtolower( $file_info[&apos;extension&apos;] ) ] )  ) {   $fileList[] = $file;  } } closedir($handle); if (count($fileList) &amp;gt; 0) {  $imageNumber = time() % count($fileList);  $img = $folder.$fileList[$imageNumber]; }}if ($img!=null) { $imageInfo = pathinfo($img); $contentType = &apos;Content-type: &apos;.$extList[ $imageInfo[&apos;extension&apos;] ]; header ($contentType); readfile($img);} else { if ( function_exists(&apos;imagecreate&apos;) ) {  header (&quot;Content-type: image/png&quot;);  $im = @imagecreate (100, 100)      or die (&quot;Cannot initialize new GD image stream&quot;);  $background_color = imagecolorallocate ($im, 255, 255, 255);  $text_color = imagecolorallocate ($im, 0,0,0);  imagestring ($im, 2, 5, 5,  &quot;IMAGE ERROR&quot;, $text_color);  imagepng ($im);  imagedestroy($im); }}?&amp;gt;&lt;/code&gt;&lt;/div&gt;</description>
  <comments>http://babytest.livejournal.com/9923.html</comments>
  <category>tutorial</category>
  <category>header</category>
  <lj:security>public</lj:security>
  <lj:reply-count>24</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://babytest.livejournal.com/9634.html</guid>
  <pubDate>Tue, 03 Oct 2006 14:08:49 GMT</pubDate>
  <title>[S1] and [S2] Profile Icons</title>
  <link>http://babytest.livejournal.com/9634.html</link>
  <description>This tutorial &amp;nbsp;shows you how to replace the little profile icons (&lt;img style=&quot;width: 17px; height: 17px;&quot; src=&quot;http://stat.livejournal.com/img/userinfo.gif&quot; alt=&quot;User&quot; title=&quot;User&quot;&gt;,&lt;img style=&quot;width: 16px; height: 16px;&quot; src=&quot;http://stat.livejournal.com/img/community.gif&quot; alt=&quot;community&quot; title=&quot;community&quot;&gt;,&lt;img src=&quot;http://stat.livejournal.com/img/sponcomm.gif&quot; alt=&quot;sponsored community&quot; title=&quot;sponsored community&quot;&gt;,&lt;img style=&quot;width: 16px; height: 16px;&quot; src=&quot;http://stat.livejournal.com/img/newsinfo.gif&quot; alt=&quot;news&quot; title=&quot;news&quot;&gt;,&lt;img style=&quot;width: 16px; height: 16px;&quot; src=&quot;http://stat.livejournal.com/img/syndicated.gif&quot; alt=&quot;syndicated&quot; title=&quot;syndicated&quot;&gt;,&lt;img style=&quot;width: 16px; height: 16px;&quot; src=&quot;http://stat.livejournal.com/img/openid-profile.gif&quot; alt=&quot;open id&quot; title=&quot;open id&quot;&gt;) with your own. If you use a Mozilla based browser, Internet Explorer &lt;b&gt;7&lt;/b&gt; or Opera (not sure about Safari, but it should work there too) you can replace each image with a different one. If you use the complete code, in Internet Explorer 6 and lower you will only see one new image. You can remove the red part and you keep the six old images in IE 6 and lower and see the six new images in other browsers. &lt;br&gt;
Older Versions then version 6 of the Microsoft Internet Explorer do not understand the part in blue, other browsers like Firefox and Opera don&apos;t understand the red part.&lt;br&gt; &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
/*profile icons*/&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;text-align:left; padding:10px; background: rgb(255, 0, 0) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 440px; display: block;&quot;&gt;&lt;code&gt;
/* so that IE users will see a new image */&lt;br&gt;
* html span.ljuser{&lt;br&gt;
background-image: url(&lt;span style=&quot;font-weight: bold;&quot;&gt;YOUR
IMAGE FOR THE USER&lt;/span&gt;) !important;&lt;br&gt;
background-repeat: no-repeat;&lt;br&gt;
background-position: left middle;&lt;br&gt;
padding: 0px 16px 16px 0px !important;&lt;br&gt;
}&lt;br&gt;
* html span.ljuser img{&lt;br&gt;
visibility: hidden;&lt;br&gt;
}&lt;br&gt;&lt;/code&gt;
&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot; text-align:left; padding:10px; background: lightblue ; width: 440px; display: block;&quot;&gt;&lt;code&gt;
/* icon for users */&lt;br&gt;
.ljuser img[src*=&quot;userinfo.gif&quot;] {&lt;br&gt;
width: 0;&lt;br&gt;
height: 0;&lt;br&gt;
background-repeat: no-repeat;&lt;br&gt;
background-image: url(&lt;b&gt;YOUR IMAGE FOR THE USER&lt;/b&gt;) !important;&lt;br&gt;
padding: 16px 16px 0 0 !important;&lt;br&gt;
}&lt;br&gt;
/* icon for communities */&lt;br&gt;
.ljuser img[src*=&quot;community.gif&quot;] {&lt;br&gt;
width:0;&lt;br&gt;
height: 0;&lt;br&gt;
background-repeat: no-repeat;&lt;br&gt;
background-image: url(&lt;b&gt;YOUR COMMUNITY IMAGE&lt;/b&gt;) !important;&lt;br&gt;
padding: 16px 16px 0 0 !important;&lt;br&gt;
}&lt;br&gt;
/* icon for sponsored communities */&lt;br&gt;
.ljuser img[src*=&quot;sponcomm.gif&quot;] {&lt;br&gt;
width:0;&lt;br&gt;
height: 0;&lt;br&gt;
background-repeat: no-repeat;&lt;br&gt;
background-image: url(&lt;b&gt;YOUR SPONCOMM IMAGE&lt;/b&gt;) !important;&lt;br&gt;
padding: 16px 16px 0 0 !important;&lt;br&gt;
}&lt;br&gt;
/* icon for syndicated */&lt;br&gt;
.ljuser img[src*=&quot;syndicated.gif&quot;] {&lt;br&gt;
width: 0;&lt;br&gt;
height: 0;&lt;br&gt;
background-repeat: no-repeat;&lt;br&gt;
background-image: url(&lt;b&gt;YOUR SYDICATED IMAGE&lt;/b&gt;) !important;&lt;br&gt;
padding: 16px 16px 0 0 !important;&lt;br&gt;
}&lt;br&gt;
/* icon for news */&lt;br&gt;
.ljuser img[src*=&quot;newsinfo.gif&quot;] {&lt;br&gt;
width:0;&lt;br&gt;
height: 0;&lt;br&gt;
background-repeat: no-repeat;&lt;br&gt;
background-image: url(&lt;b&gt;YOUR NEWS IMAGE&lt;/b&gt;) !important;&lt;br&gt;
padding: 16px 16px 0 0 !important;&lt;br&gt;
}&lt;br&gt;
/* icon for open-id */&lt;br&gt;
.ljuser img[src*=&quot;openid-profile.gif&quot;] {&lt;br&gt;
width:0;&lt;br&gt;
height: 0;&lt;br&gt;
background-repeat: no-repeat; &lt;br&gt;
background-image: url(&lt;b&gt;YOUR OPEN-ID IMAGE&lt;/b&gt;) !important;&lt;br&gt;
padding: 16px 16px 0 0 !important;&lt;br&gt;
}&lt;br&gt;&lt;/code&gt;
&lt;/span&gt;&lt;br&gt;
&lt;b&gt;The 16px you see
everywhere are the width and height of the image. You
can either use images that are also 16x16px or you will have to change
the numbers.&lt;/b&gt;&lt;br&gt;
In S1 the above coding belongs in your HEAD codes between the style tags. You don&apos;t understand? Please read &quot;&lt;a href=&quot;http://carriep63t2.livejournal.com/1495.html&quot;&gt;Merging your overrides/the style tag&lt;/a&gt;.&quot;
In S2 it belongs in either your external stylesheed, the Custom CSS box or in the CSS section of your layer.</description>
  <comments>http://babytest.livejournal.com/9634.html</comments>
  <category>tutorial</category>
  <lj:mood>chipper</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>20</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>http://babytest.livejournal.com/8957.html</guid>
  <pubDate>Tue, 18 Jul 2006 17:22:32 GMT</pubDate>
  <title>Different ways to add a header in S1</title>
  <link>http://babytest.livejournal.com/8957.html</link>
  <description>&lt;font color=&quot;#4682b4&quot; face=&quot;Century Gothic&quot; size=&quot;+2&quot;&gt;Four different
ways to add a header!&lt;/font&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://babytest.livejournal.com/8957.html#Header_without_a_background&quot;&gt;1.
Header without
a background&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://babytest.livejournal.com/8957.html#Header_with_background&quot;&gt;2.
Header with background&lt;/a&gt;
- doesn&apos;t really work with the nav strip enabled, doesn&apos;t work with sponsored+, doesn&apos;t work with sidebars, makes problems with the Contextual Popup, only works with S1 Generator&lt;br&gt;
&lt;a href=&quot;http://babytest.livejournal.com/8957.html#Header_with_background_2&quot;&gt;3.
Header with
background 2&lt;/a&gt;&lt;/span&gt; - &lt;span style=&quot;font-weight: bold;&quot;&gt;no known problems, needs a website listed in the profile to work&lt;br&gt;
&lt;a href=&quot;http://babytest.livejournal.com/8957.html#Header_with_background_3&quot;&gt;4.
Header with
background 3 / imagemap&lt;/a&gt; &lt;/span&gt;- &lt;span style=&quot;font-weight: bold;&quot;&gt;no known problems, needs a website listed in the profile to work&lt;br&gt;
&lt;a href=&quot;http://babytest.livejournal.com/8957.html#Colorcodes&quot;&gt;5.
Colorcodes explained&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://babytest.livejournal.com/8957.html#center&quot;&gt;6.
How to center the header while using
Header with background 2 or Header with background 3 / imagemap&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://babytest.livejournal.com/8957.html#example&quot;&gt;7.
Example: centered imagemap&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://babytest.livejournal.com/8957.html#example2&quot;&gt;7.
Example 2: left aligned imagemap&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://babytest.livejournal.com/8957.html#ontop&quot;&gt;8.
Entries on top of header&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;
&lt;br&gt;
&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;1.
&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;
&lt;/span&gt;&lt;a style=&quot;font-weight: bold;&quot; name=&quot;Header_without_a_background&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;the easy version -&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; Header
without&amp;nbsp;a
background (we add the header as a backgound image) / should work with
all S1 styles&lt;/span&gt;
&lt;ol style=&quot;font-weight: bold;&quot;&gt;
&lt;/ol&gt;
&lt;blockquote style=&quot;border: 2px dashed rgb(255, 0, 0); background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;GLOBAL_HEAD&amp;lt;=&lt;br&gt;
&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;br&gt;
&amp;lt;!--&lt;br&gt;
body{&lt;br&gt;
background-color:&lt;span style=&quot;background: rgb(255, 86, 213) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;black;&lt;/span&gt;&lt;br&gt;
background-image:&lt;span style=&quot;background: rgb(58, 118, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;url(&lt;a href=&quot;http://urltoyourheader&quot;&gt;http://urltoyourheader&lt;/a&gt;)&lt;/span&gt;;&lt;br&gt;
background-repeat: &lt;span style=&quot;background: rgb(250, 165, 229) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;no-repeat;&lt;/span&gt;&lt;br&gt;
background-position: &lt;span style=&quot;background: rgb(251, 220, 243) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;center
top;&lt;br&gt;
  &lt;/span&gt;background-attachment: &lt;span style=&quot;background: rgb(251, 195, 237) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;scroll;&lt;/span&gt;&lt;br&gt;
margin-top:300px; &amp;nbsp;/*This line moves your entries down so,
that thy start under the header. Normally the header height + 10px
shold work for that*/&lt;br&gt;
}&lt;br&gt;
--&amp;gt;&lt;br&gt;
&amp;lt;/style&amp;gt;&lt;br&gt;
&amp;lt;=GLOBAL_HEAD &lt;/blockquote&gt;
&amp;nbsp; &amp;nbsp; &lt;br&gt;
&amp;nbsp; &amp;nbsp; &lt;br&gt;
&amp;nbsp;&lt;span style=&quot;font-weight: bold;&quot;&gt;2.&amp;nbsp;
&lt;a name=&quot;Header_with_background&quot;&gt;&lt;/a&gt;the second
version - doesn&apos;t really work with the nav strip enabled, doesn&apos;t work
with sponsored+ / Plus accounts and doesn&apos;t work with sidebar layouts -
only works with
Generator&lt;/span&gt;
&lt;blockquote style=&quot;border: 2px dashed rgb(255, 0, 0); background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;GLOBAL_HEAD&amp;lt;=&lt;br&gt;
&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;br&gt;
&amp;lt;!--&lt;br&gt;
body {&lt;br&gt;
background-color: &lt;span style=&quot;background: rgb(255, 86, 213) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;black;&lt;/span&gt;&lt;br&gt;
background-image: &lt;span style=&quot;background: rgb(252, 123, 220) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;url(&lt;a href=&quot;http://urltoyourbackground&quot;&gt;http://urltoyourbackground&lt;/a&gt;)&lt;/span&gt;;&lt;br&gt;
background-repeat: &lt;span style=&quot;background: rgb(250, 165, 229) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;repeat;&lt;/span&gt;&lt;br&gt;
background-attachment: &lt;span style=&quot;background: rgb(251, 195, 237) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;fixed;&lt;/span&gt;&lt;br&gt;
background-position: &lt;span style=&quot;background: rgb(251, 220, 243) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;top
left;&lt;/span&gt;&lt;br&gt;
}&lt;br&gt;
  &lt;br&gt;
div {&lt;br&gt;
background-image: &lt;span style=&quot;background: rgb(58, 118, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;url(&lt;a href=&quot;http://urltoyourheader&quot;&gt;http://urltoyourheader&lt;/a&gt;)&lt;/span&gt;;&lt;br&gt;
background-repeat: &lt;span style=&quot;background: rgb(0, 178, 238) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;no-repeat;&lt;/span&gt;&lt;br&gt;
background-position: &lt;span style=&quot;background: rgb(0, 191, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;top
center;&lt;/span&gt;&lt;br&gt;
padding-top: &lt;span style=&quot;background: rgb(184, 206, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;300px;&lt;/span&gt;&lt;br&gt;
margin: auto;&lt;br&gt;
}&lt;br&gt;
  &lt;br&gt;
div div { background: none; width: auto; height: auto; padding: 2; }&lt;br&gt;
div table { width: &lt;span style=&quot;background: rgb(60, 179, 113) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;640px;&lt;/span&gt;}&lt;br&gt;
div table table { width: 100%; }&lt;br&gt;
div table table table { width: auto; }&lt;br&gt;
div table table table table { width: 100%; }&lt;br&gt;
  &lt;br&gt;
/*the following Part is needed to make sure everything is positioned
right in non IE browsers*/&lt;br&gt;
table { &lt;br&gt;
width: &lt;span style=&quot;background: rgb(60, 179, 113) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;640px;&lt;/span&gt;
  &lt;br&gt;
margin-left: auto; &lt;br&gt;
margin-right: auto; &lt;br&gt;
} &lt;br&gt;
/* do NOT change these numbers */ &lt;br&gt;
table table { &lt;br&gt;
width: 100%; &lt;br&gt;
margin:0; ;&lt;br&gt;
} &lt;br&gt;
table table table { &lt;br&gt;
width: auto; &lt;br&gt;
} &lt;br&gt;
--&amp;gt;&lt;br&gt;
&amp;lt;/style&amp;gt;&lt;br&gt;
&amp;lt;=GLOBAL_HEAD &lt;/blockquote&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;b&gt;to make it work with the navbar, you have to add&lt;br&gt;
&lt;br&gt;
#lj_controlstrip_poweredby{&lt;br&gt;
display:none;&lt;br&gt;
}&lt;br&gt;
to your GLOBAL_HEAD&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;nbsp; &amp;nbsp; &lt;br&gt;
&amp;nbsp;&lt;span style=&quot;font-weight: bold;&quot;&gt;3.&amp;nbsp;
&lt;a name=&quot;Header_with_background_2&quot;&gt;&lt;/a&gt;the third
version - no known problems / should work with all S1 styles&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br&gt;
&lt;/span&gt;&lt;span style=&quot;border: 2px solid black; padding: 0.5em; background: yellow none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; display: block;&quot;&gt;Change
these numbers to suit your needs.&lt;/span&gt;&lt;br&gt;
&lt;blockquote style=&quot;border: 2px dashed rgb(255, 0, 0); background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;GLOBAL_HEAD&amp;lt;=&lt;br&gt;
&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;br&gt;
&amp;lt;!--&lt;br&gt;
body {&lt;br&gt;
background-color: &lt;span style=&quot;background: rgb(255, 86, 213) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;black;&lt;/span&gt;&lt;br&gt;
background-image: &lt;span style=&quot;background: rgb(252, 123, 220) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;url(&lt;a href=&quot;http://urltoyourbackground&quot;&gt;http://urltoyourbackground&lt;/a&gt;)&lt;/span&gt;;&lt;br&gt;
background-repeat: &lt;span style=&quot;background: rgb(250, 165, 229) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;repeat;&lt;/span&gt;&lt;br&gt;
background-attachment: &lt;span style=&quot;background: rgb(251, 195, 237) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;fixed;&lt;/span&gt;&lt;br&gt;
background-position: &lt;span style=&quot;background: rgb(251, 220, 243) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;top
left;&lt;br&gt;
  &lt;/span&gt;
margin-top:300px; /*This line moves your entries down so,
that thy start under the header. Normally the header height + 10px
shold work for that*/&lt;br&gt;
}&lt;br&gt;
  &lt;span style=&quot;font-weight: bold; color: rgb(204, 0, 0);&quot;&gt;/*
YOUR HEADER IMAGE */&lt;/span&gt;&lt;br&gt;
#x {&lt;br&gt;
background-image:&lt;span style=&quot;background: rgb(58, 118, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;url(&lt;a href=&quot;http://urltoyourheader&quot;&gt;http://urltoyourheader&lt;/a&gt;)&lt;/span&gt;;&lt;br&gt;
position:absolute;&lt;span style=&quot;border: 2px solid black; background: yellow none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; display: block; width: 150px;&quot;&gt;top:0px;&lt;br&gt;
left: 0px;&lt;br&gt;
width: 600px;&lt;br&gt;
height: 330px;&lt;/span&gt;visibility: visible;&lt;br&gt;
}&lt;br&gt;
--&amp;gt;&lt;br&gt;
&amp;lt;/style&amp;gt;&lt;br&gt;
&amp;lt;=GLOBAL_HEAD&lt;br&gt;
  &lt;br&gt;
LASTN_WEBSITE&amp;lt;=&lt;br&gt;
&amp;lt;div id=&quot;x&quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&lt;br&gt;
  &lt;br&gt;
&amp;lt;!-- DON&apos;T TOUCH --&amp;gt;&lt;br&gt;
&amp;lt;div&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&lt;br&gt;
&amp;lt;=LASTN_WEBSITE &lt;/blockquote&gt;
&lt;br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&amp;nbsp; &amp;nbsp;
4.&amp;nbsp;
&lt;a name=&quot;Header_with_background_3&quot;&gt;&lt;/a&gt;the fourth
version - no known problems - the only version that works
with imagemaps / should work with all S1 styles&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;border: 2px solid black; padding: 0.5em; background: yellow none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; display: block;&quot;&gt;Change
these numbers to suit your needs.&lt;/span&gt;&lt;br&gt;
&lt;blockquote style=&quot;border: 2px dashed rgb(255, 0, 0); background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;GLOBAL_HEAD&amp;lt;=&lt;br&gt;
&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;br&gt;
&amp;lt;!--&lt;br&gt;
body {&lt;br&gt;
background-color: &lt;span style=&quot;background: rgb(255, 86, 213) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;black;&lt;/span&gt;&lt;br&gt;
background-image: &lt;span style=&quot;background: rgb(252, 123, 220) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;url(&lt;a href=&quot;http://urltoyourbackground/&quot;&gt;http://urltoyourbackground&lt;/a&gt;)&lt;/span&gt;;&lt;br&gt;
background-repeat: &lt;span style=&quot;background: rgb(250, 165, 229) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;repeat;&lt;/span&gt;&lt;br&gt;
background-attachment: &lt;span style=&quot;background: rgb(251, 195, 237) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;fixed;&lt;/span&gt;&lt;br&gt;
background-position: &lt;span style=&quot;background: rgb(251, 220, 243) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;top
left;&lt;br&gt;
  &lt;/span&gt;
margin-top:300px; /*This line moves your entries down so,
that thy start under the header. Normally the header height + 10px
shold work for that*/&lt;br&gt;
}&lt;br&gt;
  &lt;span style=&quot;font-weight: bold; color: rgb(204, 0, 0);&quot;&gt;/*
YOUR HEADER IMAGE */&lt;/span&gt;&lt;br&gt;
#x {&lt;br&gt;
position:absolute;&lt;span style=&quot;border: 2px solid black; background: yellow none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; display: block; width: 150px;&quot;&gt;top:0px;&lt;br&gt;
left: 0px;&lt;br&gt;
width: 600px;&lt;br&gt;
height: 330px;&lt;/span&gt;visibility: visible;&lt;br&gt;
}&lt;br&gt;
  &lt;code&gt;/*Needed to make sure the image shows up*/&lt;br&gt;
  &lt;/code&gt;#x img{&lt;br&gt;
display:inline;&lt;br&gt;
}&lt;br&gt;
--&amp;gt;&lt;br&gt;
&amp;lt;/style&amp;gt;&lt;br&gt;
&amp;lt;=GLOBAL_HEAD&lt;br&gt;
  &lt;br&gt;
LASTN_WEBSITE&amp;lt;=&lt;br&gt;
&amp;lt;div id=&quot;x&quot;&amp;gt;&amp;lt;img src=&quot;&lt;span style=&quot;background: rgb(58, 118, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;&lt;a href=&quot;http://urltoyourheader/&quot;&gt;http://urltoyourheader&lt;/a&gt;&lt;/span&gt;&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br&gt;
  &lt;br&gt;
&amp;lt;!-- DON&apos;T TOUCH --&amp;gt;&lt;br&gt;
&amp;lt;div&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&lt;br&gt;
&amp;lt;=LASTN_WEBSITE &lt;/blockquote&gt;
&lt;font color=&quot;#4682b4&quot; face=&quot;Century Gothic&quot; size=&quot;+1&quot;&gt;&lt;br&gt;
&lt;/font&gt;&lt;br&gt;
&lt;font color=&quot;#4682b4&quot; face=&quot;Century Gothic&quot; size=&quot;+1&quot;&gt;&lt;a name=&quot;Colorcodes&quot;&gt;&lt;/a&gt;Colorcodes
explained!&lt;/font&gt;
&lt;span style=&quot;background: rgb(255, 86, 213) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;&lt;br&gt;
&lt;br&gt;
background-color:
black;&lt;/span&gt;&lt;br&gt;
This is the background that will show while your background is loading,
or if your background image does not cover the whole window. &lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;background: rgb(252, 123, 220) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;background-image:
url(&lt;a href=&quot;http://urltoyourbackground&quot;&gt;http://urltoyourbackground&lt;/a&gt;)&lt;/span&gt;;
&lt;br&gt;
The background image url goes here. &lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;background: rgb(250, 165, 229) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;background-repeat:
repeat;&lt;/span&gt;&lt;br&gt;
If you want your background to have a tiled effect, then make leave
this as it if. If you don&apos;t want your image to be tiled, then change
this to no-repeat.&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;background: rgb(251, 195, 237) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;background-attachment:
fixed;&lt;/span&gt;&lt;br&gt;
This means that your background will not scroll with the entries. If
you want it to scroll, then change this to scroll. &lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;background: rgb(251, 220, 243) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;background-position:
top left;&lt;/span&gt;&lt;br&gt;
This is where you can position your background as you please. &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;background: blue none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;background-image:
url(&lt;a href=&quot;http://urltoyourheader&quot;&gt;http://urltoyourheader&lt;/a&gt;)&lt;/span&gt;&lt;br&gt;
This is the url to your header image.&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;background: rgb(0, 178, 238) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;background-repeat:
no-repeat;&lt;/span&gt;&lt;br&gt;
You likely won&apos;t want your header to repeat, so leave this as it is.&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;background: rgb(0, 191, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;background-position:
top center;&lt;/span&gt;&lt;br&gt;
This positions your header image.&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;background: rgb(184, 206, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;padding-top:300;&lt;/span&gt;&lt;br&gt;
This sets the height of the space above your entries, so that the
entries do not overlap your image. Set this number to the height of
your banner + 10.&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;background: rgb(60, 179, 113) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;div
table { width: 640;&lt;/span&gt; &lt;br&gt;
This sets the width of your entries, so that they&apos;re the same width as
your banner. Set this to the width of your header.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;font color=&quot;#4682b4&quot; face=&quot;Century Gothic&quot; size=&quot;+2&quot;&gt;&lt;a name=&quot;center&quot;&gt;&lt;/a&gt;
How to center the header!&lt;/font&gt;&lt;br&gt;
&lt;br&gt;
&lt;font color=&quot;#4682b4&quot; face=&quot;Century Gothic&quot; size=&quot;+1&quot;&gt;Explanation
for &quot;Adding a header version 3 and 4&quot;&lt;/font&gt;&lt;br&gt;
&lt;br&gt;
If you want your header centered (and use version 3 or 4 of the ways to
add a header), you need to know the exact &lt;span style=&quot;color: rgb(255, 0, 0); font-weight: bold;&quot;&gt;width&lt;/span&gt;
of it. &lt;br&gt;
&lt;br&gt;
&lt;table style=&quot;text-align: left; width: 550px; height: 204px;&quot; border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;2&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Codes for version 3&lt;/td&gt;
      &lt;td&gt;Codes for version 4&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code&gt;&lt;b&gt;#x{&lt;br&gt;
      &lt;/b&gt;&lt;/code&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;backgound-image:&lt;/span&gt;&lt;span style=&quot;background: rgb(58, 118, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; font-weight: bold;&quot;&gt;url(&lt;a href=&quot;http://urltoyourheader/&quot;&gt;http://urltoyourheader&lt;/a&gt;)&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;code&gt;&lt;b&gt;&lt;br&gt;
position:absolute;&lt;br&gt;
visibility: visible;&lt;br&gt;
top:0px;&lt;br&gt;
      &lt;font color=&quot;#ff0000&quot;&gt;width: 780px;&lt;br&gt;
      &lt;/font&gt;&lt;span style=&quot;color: rgb(204, 51, 204);&quot;&gt;left:50%;&lt;/span&gt;&lt;br&gt;
      &lt;span style=&quot;color: rgb(51, 204, 0);&quot;&gt;margin-left:-390px;&lt;/span&gt;&lt;br&gt;
height: 200px;&lt;br&gt;
}&lt;/b&gt;&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;&lt;b&gt;#x{&lt;br&gt;
position:absolute;&lt;br&gt;
visibility: visible;&lt;br&gt;
top:0px;&lt;br&gt;
      &lt;font color=&quot;#ff0000&quot;&gt;width: 780px;&lt;br&gt;
      &lt;/font&gt;&lt;span style=&quot;color: rgb(204, 51, 204);&quot;&gt;left:50%;&lt;/span&gt;&lt;br&gt;
      &lt;span style=&quot;color: rgb(51, 204, 0);&quot;&gt;margin-left:-390px;&lt;/span&gt;&lt;br&gt;
height: 200px;&lt;br&gt;
}&lt;/b&gt;&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;code&gt;&lt;b&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;color: rgb(204, 51, 204);&quot;&gt;left:50%;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: rgb(204, 51, 204);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; will shift the left edge of
the image to the center of the page, never change the 50% to something
else, you have to move the image with&lt;/span&gt;&lt;/span&gt;&lt;b&gt;
&lt;/b&gt;the &lt;span style=&quot;color: rgb(51, 204, 0); font-weight: bold;&quot;&gt;margin-left&lt;/span&gt;
codes. &lt;/code&gt;The &lt;code&gt;margin-left&lt;/code&gt;
needs to be half the number of pixels of the width of your image. So if
you have an image with width 800px, you&apos;d put 800px in the &lt;code style=&quot;color: rgb(255, 0, 0);&quot;&gt;width&lt;/code&gt;
and -400px in the &lt;code style=&quot;color: rgb(51, 204, 0);&quot;&gt;margin-left&lt;/code&gt;
part.&lt;br&gt;
&lt;br&gt;
You can change the number for the &lt;code&gt;top&lt;/code&gt; to what
you like. &lt;br&gt;
&lt;br&gt;
When you are using this method, you may use either positive or negative
numbers to move the header left and right:&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
  &lt;li&gt;Enter the height of your image where it says height.&lt;/li&gt;
  &lt;br&gt;
  &lt;li&gt;You MUST define a width or this will NOT work.&lt;/li&gt;
  &lt;br&gt;
  &lt;li&gt;&lt;b&gt;A positive margin-left will push your image to the
right.&lt;/b&gt;&lt;/li&gt;
  &lt;br&gt;
  &lt;li&gt;&lt;b&gt;A negative margin-left will push your image to the
left.&lt;/b&gt;&lt;/li&gt;
  &lt;br&gt;
  &lt;li&gt;A negative margin-left that is exactly half of the width
will center image as shown above&lt;/li&gt;
&lt;/ul&gt;
Then, of course, you need the actual header code:&lt;br&gt;
&lt;code&gt;&lt;font color=&quot;#0000ff&quot;&gt;&lt;b&gt;&lt;br&gt;
&amp;lt;div id=&quot;x&quot;&amp;gt;&lt;br&gt;
&amp;lt;!--HEADER IMAGE--&amp;gt;&lt;br&gt;
&amp;lt;img src=&quot;&lt;a href=&quot;http://yourheaderurlhere/&quot;&gt;http://yourheaderurlhere&lt;/a&gt;&quot;
style=&quot;display:inline;&quot;&amp;gt;&lt;br&gt;
&amp;lt;/div&amp;gt;&lt;/b&gt;&lt;/font&gt;&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
To make sure it works in IE, you need this code after every div:&lt;br&gt;
&lt;code&gt;&lt;font color=&quot;#ff1493&quot;&gt;&lt;b&gt;&lt;br&gt;
&amp;lt;!--This fixes a bug in Internet Explorer--&amp;gt;&lt;br&gt;
&amp;lt;div&amp;gt; &amp;lt;/div&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;/span&gt;&lt;br&gt;
&lt;/b&gt;&lt;/font&gt;&lt;/code&gt;&lt;font color=&quot;#4682b4&quot; face=&quot;Century Gothic&quot; size=&quot;+2&quot;&gt;&lt;a name=&quot;example&quot;&gt;&lt;/a&gt;Advanced
example:
Version 4 - centered + imagemap!&lt;/font&gt;&lt;br&gt;
&lt;font color=&quot;#4682b4&quot; face=&quot;Century Gothic&quot; size=&quot;+2&quot;&gt;&lt;a href=&quot;#center&quot;&gt;
Read: &quot;How to center the header!&quot; first&lt;/a&gt;&lt;/font&gt; &lt;br&gt;
&lt;blockquote style=&quot;border: 2px dashed rgb(255, 0, 0); background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;
GLOBAL_HEAD&amp;lt;=&lt;br&gt;
&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;br&gt;
&amp;lt;!--&lt;br&gt;
body {&lt;br&gt;
background-color: &lt;span style=&quot;background: rgb(255, 86, 213) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;black;&lt;/span&gt;&lt;br&gt;
background-image: &lt;span style=&quot;background: rgb(252, 123, 220) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;url(&lt;a href=&quot;http://urltoyourbackground/&quot;&gt;http://urltoyourbackground&lt;/a&gt;)&lt;/span&gt;;&lt;br&gt;
background-repeat: &lt;span style=&quot;background: rgb(250, 165, 229) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;repeat;&lt;/span&gt;&lt;br&gt;
background-attachment: &lt;span style=&quot;background: rgb(251, 195, 237) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;fixed;&lt;/span&gt;&lt;br&gt;
background-position: &lt;span style=&quot;background: rgb(251, 220, 243) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;top
left;&lt;br&gt;
  &lt;/span&gt;
margin-top:310px; /*This line moves your entries down so,
that thy start under the header. Normally the header height + 10px
shold work for that*/&lt;br&gt;
}&lt;br&gt;
  &lt;span style=&quot;font-weight: bold; color: rgb(204, 0, 0);&quot;&gt;/*
YOUR HEADER IMAGE - IMAGEMAP */&lt;/span&gt;&lt;br&gt;
  &lt;code&gt;&lt;b&gt;#x{&lt;br&gt;
position:absolute;&lt;br&gt;
visibility: visible;&lt;br&gt;
top:0px;&lt;br&gt;
  &lt;font color=&quot;#ff0000&quot;&gt;width:&amp;nbsp;600px;&lt;br&gt;
  &lt;/font&gt;&lt;span style=&quot;color: rgb(204, 51, 204);&quot;&gt;left:50%;&lt;/span&gt;&lt;br&gt;
  &lt;span style=&quot;color: rgb(51, 204, 0);&quot;&gt;margin-left:-300px;&lt;/span&gt;&lt;br&gt;
height: 330px;&lt;br&gt;
}&lt;br&gt;
  &lt;br&gt;
/*Needed to make sure the image shows up*/&lt;br&gt;
  &lt;/b&gt;&lt;/code&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;#x
img{&lt;/span&gt;&lt;br style=&quot;font-weight: bold;&quot;&gt;
  &lt;span style=&quot;font-weight: bold;&quot;&gt;display:inline;&lt;/span&gt;&lt;br style=&quot;font-weight: bold;&quot;&gt;
  &lt;span style=&quot;font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;br&gt;
--&amp;gt;&lt;br&gt;
&amp;lt;/style&amp;gt;&lt;br&gt;
&amp;lt;=GLOBAL_HEAD&lt;br&gt;
  &lt;br&gt;
LASTN_WEBSITE&amp;lt;=&lt;br&gt;
&amp;lt;div
id=&quot;x&quot;&amp;gt;&lt;br&gt;
&amp;lt;img src=&quot;&lt;a href=&quot;http://www.yourimage.com/&quot;&gt;http://www.yourimage.com&lt;/a&gt;&quot;
width=&quot;600px&quot; height=&quot;330px&quot; border=&quot;0&quot; alt=&quot;&quot;
usemap=&quot;#image_map_name&quot;&amp;gt;&lt;br&gt;
&amp;lt;/div&amp;gt;&lt;br&gt;
&amp;lt;!-- DON&apos;T TOUCH --&amp;gt;&lt;br&gt;
&amp;lt;div&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&lt;br&gt;
  &lt;br&gt;
&amp;lt;map
name=&quot;image_map_name&quot;&amp;gt;&lt;br&gt;
&amp;lt;area shape=&quot;rect&quot; alt=&quot;link name&quot; coords=&quot;453,246,563,267&quot;
href=&quot;&lt;a href=&quot;http://www.yourlink.com/&quot;&gt;http://www.yourlink.com&lt;/a&gt;&quot;&amp;gt;&lt;br&gt;
&amp;lt;area shape=&quot;rect&quot; alt=&quot;link name&quot; coords=&quot;314,246,428,267&quot;
href=&quot;&lt;a href=&quot;http://www.yourlink.com/&quot;&gt;http://www.yourlink.com&lt;/a&gt;&quot;&amp;gt;&lt;br&gt;
&amp;lt;area shape=&quot;rect&quot; alt=&quot;link name&quot; coords=&quot;159,246,290,267&quot;
href=&quot;&lt;a href=&quot;http://www.yourlink.com/&quot;&gt;http://www.yourlink.com&lt;/a&gt;&quot;&amp;gt;&lt;br&gt;
&amp;lt;area shape=&quot;rect&quot; alt=&quot;link name&quot; coords=&quot;32,246,140,268&quot; href=&quot;&lt;a href=&quot;http://www.yourlink.com/&quot;&gt;http://www.yourlink.com&lt;/a&gt;&quot;&amp;gt;&lt;br&gt;
&amp;lt;/map&amp;gt;&lt;br&gt;
&amp;lt;=LASTN_WEBSITE
&lt;/blockquote&gt;&lt;br&gt;&lt;br&gt;
&lt;font color=&quot;#4682b4&quot; face=&quot;Century Gothic&quot; size=&quot;+2&quot;&gt;&lt;a name=&quot;example2&quot;&gt;&lt;/a&gt;Advanced
example:
Version 4 - left aligend + imagemap!&lt;/font&gt;&lt;br&gt;
&lt;br&gt;
&lt;blockquote style=&quot;border: 2px dashed rgb(255, 0, 0); background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;
GLOBAL_HEAD&amp;lt;=&lt;br&gt;
&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;br&gt;
&amp;lt;!--&lt;br&gt;
body {&lt;br&gt;
background-color: &lt;span style=&quot;background: rgb(255, 86, 213) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;black;&lt;/span&gt;&lt;br&gt;
background-image: &lt;span style=&quot;background: rgb(252, 123, 220) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;url(&lt;a href=&quot;http://urltoyourbackground/&quot;&gt;http://urltoyourbackground&lt;/a&gt;)&lt;/span&gt;;&lt;br&gt;
background-repeat: &lt;span style=&quot;background: rgb(250, 165, 229) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;repeat;&lt;/span&gt;&lt;br&gt;
background-attachment: &lt;span style=&quot;background: rgb(251, 195, 237) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;fixed;&lt;/span&gt;&lt;br&gt;
background-position: &lt;span style=&quot;background: rgb(251, 220, 243) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;&quot;&gt;top
left;&lt;br&gt;
  &lt;/span&gt;
margin-top:310px; /*This line moves your entries down so,
that thy start under the header. Normally the header height + 10px
shold work for that*/&lt;br&gt;
}&lt;br&gt;
  &lt;span style=&quot;font-weight: bold; color: rgb(204, 0, 0);&quot;&gt;/*
YOUR HEADER IMAGE - IMAGEMAP */&lt;/span&gt;&lt;br&gt;
  &lt;code&gt;&lt;b&gt;#x{&lt;br&gt;
position:absolute;&lt;br&gt;
visibility: visible;&lt;br&gt;
top:0px;&lt;br&gt;
  &lt;font color=&quot;#ff0000&quot;&gt;width:&amp;nbsp;600px;&lt;br&gt;
  &lt;/font&gt;&lt;span style=&quot;color: rgb(204, 51, 204);&quot;&gt;left:0px;&lt;/span&gt;&lt;br&gt;
height: 330px;&lt;br&gt;
}&lt;br&gt;
  &lt;br&gt;
/*Needed to make sure the image shows up*/&lt;br&gt;
  &lt;/b&gt;&lt;/code&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;#x
img{&lt;/span&gt;&lt;br style=&quot;font-weight: bold;&quot;&gt;
  &lt;span style=&quot;font-weight: bold;&quot;&gt;display:inline;&lt;/span&gt;&lt;br style=&quot;font-weight: bold;&quot;&gt;
  &lt;span style=&quot;font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;br&gt;
--&amp;gt;&lt;br&gt;
&amp;lt;/style&amp;gt;&lt;br&gt;
&amp;lt;=GLOBAL_HEAD&lt;br&gt;
  &lt;br&gt;
LASTN_WEBSITE&amp;lt;=&lt;br&gt;
&amp;lt;div
id=&quot;x&quot;&amp;gt;&lt;br&gt;
&amp;lt;img src=&quot;&lt;a href=&quot;http://www.yourimage.com/&quot;&gt;http://www.yourimage.com&lt;/a&gt;&quot;
width=&quot;600px&quot; height=&quot;330px&quot; border=&quot;0&quot; alt=&quot;&quot;
usemap=&quot;#image_map_name&quot;&amp;gt;&lt;br&gt;
&amp;lt;/div&amp;gt;&lt;br&gt;
&amp;lt;!-- DON&apos;T TOUCH --&amp;gt;&lt;br&gt;
&amp;lt;div&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&lt;br&gt;
  &lt;br&gt;
&amp;lt;map
name=&quot;image_map_name&quot;&amp;gt;&lt;br&gt;
&amp;lt;area shape=&quot;rect&quot; alt=&quot;link name&quot; coords=&quot;453,246,563,267&quot;
href=&quot;&lt;a href=&quot;http://www.yourlink.com/&quot;&gt;http://www.yourlink.com&lt;/a&gt;&quot;&amp;gt;&lt;br&gt;
&amp;lt;area shape=&quot;rect&quot; alt=&quot;link name&quot; coords=&quot;314,246,428,267&quot;
href=&quot;&lt;a href=&quot;http://www.yourlink.com/&quot;&gt;http://www.yourlink.com&lt;/a&gt;&quot;&amp;gt;&lt;br&gt;
&amp;lt;area shape=&quot;rect&quot; alt=&quot;link name&quot; coords=&quot;159,246,290,267&quot;
href=&quot;&lt;a href=&quot;http://www.yourlink.com/&quot;&gt;http://www.yourlink.com&lt;/a&gt;&quot;&amp;gt;&lt;br&gt;
&amp;lt;area shape=&quot;rect&quot; alt=&quot;link name&quot; coords=&quot;32,246,140,268&quot; href=&quot;&lt;a href=&quot;http://www.yourlink.com/&quot;&gt;http://www.yourlink.com&lt;/a&gt;&quot;&amp;gt;&lt;br&gt;
&amp;lt;/map&amp;gt;&lt;br&gt;
&amp;lt;=LASTN_WEBSITE
&lt;/blockquote&gt;

&lt;font color=&quot;#4682b4&quot; face=&quot;Century Gothic&quot; size=&quot;+2&quot;&gt;&lt;a name=&quot;ontop&quot;&gt;&lt;/a&gt;Entries on top of header&lt;/font&gt;&lt;br&gt;
If you notice, that your entries are hidden under the header try to add this code to your GLOBAL_HEAD&lt;br&gt;&lt;br&gt;
&lt;code&gt;
.entrybox{&lt;br&gt;
position:relative;&lt;br&gt;
}
&lt;/code&gt;



</description>
  <comments>http://babytest.livejournal.com/8957.html</comments>
  <category>tutorial</category>
  <category>header</category>
  <lj:security>public</lj:security>
  <lj:reply-count>55</lj:reply-count>
</item>
</channel>
</rss>
