Congratulations Universe, You win! (_01010101) wrote in component_help,
Congratulations Universe, You win!
_01010101
component_help

I tried placing random quote tutorial with the free text and still said I had errors or can't compile layers.


function print_free_text(Page p) {



print_comp_header("Mahal Kita");

"""

Tens time the might of fashion. Kiss my lips for that chain reaction.<BR />

""";

print_comp_footer();



    var Color header = $*header_bgcolor;

    var Color headerMinus5  = $header->darker(50);

    var Color headerPlus3   = $header->lighter(30);

    var string corner_color = "/p0"+$headerPlus3->substr(1,6)+"1"+$headerMinus5->substr(1,6)+"2"+$header->substr(1,6);



    var string[] quotes;

    $quotes[0]="""Sometimes it fucking hurts, but it's life and it's real. - Garden State""";

    $quotes[1]="""You can't deal with my infinite nature can you? - I Heart Huckabees""";

    $quotes[2]="""It's all about following your heart.- The Notebook""";

    $quotes[3]="""You can't put a limit on anything.  The more you dream the farther you get - Michael Phelps""";

    $quotes[4]="""Summer romances begin for all kinds of reasons, but when all is said and done, they have one thing in common. They're shooting stars, a spectacular moment of light in the heavens, fleeting glimpse of eternity, and in a flash they're gone. - The Notebook""";

    $quotes[5]="""Just smile, act natural, and then you suckerpunch. - The Life Aquatic""";

    $quotes[6]="""What country can preserve its liberties, if its rulers are not warned from time to time that its people preserve the spirit of resistance. - Thomas Jefferson""";



    var int randquote;

    $randquote = rand(0, ((size $quotes) - 1));



    if ($all_rounded) {

      """

      <tr>

        <td valign="top" rowspan="3" colspan="3" width="5"><img src="http://www.livejournal.com/palimg/component/curve-top-left.gif$corner_color" width="5" height="5" alt="" border="0" /></td>

        <td class="dkLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

        <td valign="top" rowspan="3" colspan="3" width="5"><img src="http://www.livejournal.com/palimg/component/curve-top-right.gif$corner_color" width="5" height="5" alt="" border="0" /></td>

      </tr><tr>

        <td class="ltLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

      </tr><tr>

        <td class="tabBg"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="3" alt="" border="0" /></td>

      """;

      if ($random_quote_title!="") {

        """

        </tr><tr>

          <td class="dkLine" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

          <td class="ltLine" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

          <td class="tabBg" width="3"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="3" alt="" border="0" /></td>

          <td class="tabBg" width="100%">

                  <span class="sideHeader">$random_quote_title</span>

          <td class="tabBg" width="3"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="3" alt="" border="0" /></td>

          <td class="ltLine" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

          <td class="dkLine" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

        </tr><tr>

          <td class="medLine" colspan="7"><img src="http://test.livejournal.org/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

        </tr><tr>

          <td class="dkLine" colspan="7"><img src="http://test.livejournal.org/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

      </tr><tr>

        <td class="dkLine" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

        <td class="ltLine" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

        <td class="tabBg" width="3"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="3" alt="" border="0" /></td>

        <td class="tabBg" width="100%">

                <span class="randomquote">$quotes[$randquote]</span>

        <td class="tabBg" width="3"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="3" alt="" border="0" /></td>

        <td class="ltLine" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

        <td class="dkLine" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

      </tr><tr>

        <td valign="top" rowspan="3" colspan="3" width="5"><img src="http://www.livejournal.com/palimg/component/curve-bottom-left.gif$corner_color" width="5" height="5" alt="" border="0" /></td>

        <td class="tabBg"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="3" alt="" border="0" /></td>

        <td valign="top" rowspan="3" colspan="3" width="5"><img src="http://www.livejournal.com/palimg/component/curve-bottom-right.gif$corner_color" width="5" height="5" alt="" border="0" /></td>

      </tr><tr>

        <td class="ltLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

      </tr><tr>

        <td class="dkLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

      </tr><tr>

        <td colspan=5><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="3" alt="" border="0" /></td>

      </tr>

    """;

"""    



    } else {

      #print_comp_header($random_quote_title);

      """

       #<span class="randomquote">$quotes[$randquote]</span>""";  

      #print_comp_footer(); }



Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 4 comments