Here's the code.
layerinfo "type" = "theme";
layerinfo "name" = "test";
set lang_fmt_date_long = "%%day%%, %%month%% %%dayord%%, %%yyyy%%";
function page_layout(Page p) {
var string k1Swidth = "80%";
var string title = $p->title();
"""
<html>
<head>
<link rel="stylesheet" href="$p.stylesheet_url" type="text/css"/>
$p.head_content
""";
$p->print_custom_head();
"""
<style media="screen" type="text/css">
.entryHolderBg { filter:alpha(opacity=80); -moz-opacity:0.65; }
.compBg { filter:alpha(opacity=65); -moz-opacity:0.65; }
</style>
<title>$title</title>
</head>
""";
"""<body style="text-align:center;">""";
"""<div align="center"><img src="http://img.photobucket.com/albums/v133/Misanagi/writing.gif"/></div>""";
if($k1Swidth != "") {
"""<table style="border: 0px; margin: auto; padding: 0px; width:$k1Swidth;"><tr><td>""";
}
if (not $*comp_navbar or $*comp_state=="none") {
""" <div class="header">""";
print "<span class=\"header-item\"><a href=\""+$p.view_url{"recent"}+"\">$*nav _entries_text</a></span>";
print "<span class=\"header-item\"><a href=\""+$p.view_url{"friends"}+"\">$*na v_friends_text</a></span>";
print "<span class=\"header-item\"><a href=\""+$p.view_url{"archive"}+"\">$*na v_calendar_text</a></span>";
print "<span class=\"header-item\"><a href=\""+$p.view_url{"userinfo"}+"\">$*n av_info_text</a></span>";
if ($p.journal.website_url != "") {
print "<span class=\"header-item\"><a href=\"$p.journal.website_url\">$p.journ al.website_name</a></span>";
}
$p->lay_viewspec_nav(); # prints previous / next links including arrow images
"""
</div>
""";
}
"""<div><img src="$*PALIMGROOT/component/clear.gif" width="1" height="20" alt="" border="0" /></div>""";
"""
<table cellspacing="0" cellpadding="0" valign="top">
<tr valign="top" width="100%">
<td width="3">
<img src="$*PALIMGROOT/component/clear.gif" width="3" height="1" alt="" border="0" />
</td>
""";
if ($*comp_state == "left") {
print_my_components($p);
"""
<td width="3">
<img src="$*PALIMGROOT/component/clear.gif" width="3" height="1" alt="" border="0" />
</td>
""";
}
print_my_entries($p, $title);
"""
<td width="3">
<img src="$*PALIMGROOT/component/clear.gif" width="3" height="1" alt="" border="0" />
</td>
</tr>
</table>
""";
if($k1Swidth != "") {
"""</td></tr></table>""";
}
"""
</body>
</html>
""";
}
function Page::print_custom_head() {
"""
<style type="text/css">
body {
margin-top: 30px !important;
scrollbar-face-color: #d9b9b9;
scrollbar-highlight-color: #fbe7e7;
scrollbar-3dlight-color: #d9b9b9;
scrollbar-darkshadow-color: #d9b9b9;
scrollbar-shadow-color: #d9b9b9;
scrollbar-arrow-color: #D1544D;
scrollbar-track-color: #fbe7e7;
background-color: white !important;
background-image: url("http://img.photobucket.com/albums/v133/Misanagi/kangi.jpg") !important;
background-repeat: repeat !important;
background-attachment: fixed !important;
}
</style>
""";
}
function print_profile(Page p) {
print_comp_header("This is Me");
"""
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="50%" align="center">
<div class="shortLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></div>
<div class="shortLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></div>
</td>
<td align="center">
<a href="http://www.livejournal.com/allpics.bml?user=misanagi"><img src="http://www.livejournal.com/userpic/26147306/1860753" border "0" /> </a></td>
<td width="50%" align="center">
<div class="shortLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></div>
<div class="shortLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></div>
</td>
</tr>
<tr>
<td colspan="3" class="compContent">
<div><b>Name:</b> Misanagi</div>
<div><b>Location:</b> Bogotá, Colombia</div>
</td>
</tr>
</table>
""";
print_comp_footer();
}
function print_free_text(Page p) {
print_comp_header("You Learn");
"""
<marquee scrolldelay="50" width="170" height="89" direction="up" scrollamount="1">
<p class="marquee">
Here is a song
<p>
<BR><BR>
<!--- STOP --->
</marquee>
""";
print_comp_footer();
print_comp_header("Archives");
"""
Here are links.
""";
print_comp_footer();
print_comp_header("Wander on...");
"""
Here are more links
""";
print_comp_footer();
print_comp_header("Words");
"""
<textarea rows=10 cols=20> Here are Quotes</textarea>
""";
print_comp_footer();
}
function CommentInfo::print() {
if (not $.enabled) { return; }
if ($.count > 0 or $.screened) {
$this->print_readlink();
""" <img src="http://img.photobucket.com/albums/v133/Misanagi/usa.gif" /> """;
}
$this->print_postlink();
}
Thanks a lot in advance.
[Edit] Problem Solved. Thanks a lot