Thread: blocks mod
View Single Post
  #1  
Old 5th September 2009, 19:08
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default blocks mod
Code:
function OpenTable($title = "title", $tablewidth = "") { 
        global $tableopen, $siteurl; 
        if ($tableopen) return; 
        if($tablewidth !="") $stylewidth = "style=\"width: ".$tablewidth."px;\""; 
        else $stylewidth = ''; 
        echo "<div class=\"mainbox\" ".$stylewidth."> "; 
    echo "<span class=\"mainbox-title\">".$title."</span><div style=\"margin: 0 auto;\">";
        echo "<div class=\"main2\"> "; 
            
    $tableopen = true; 
} 
 
function CloseTable() { 
        global $tableopen, $siteurl; 
        if (!$tableopen) return; 
        echo "</div></div></div>"; 
 
        $tableopen = false; 
}
Code:
div.main2 {
background:url(pics/b1.png) repeat-x;
}
i don't get what i am doing wrong
Attached Thumbnails
Ekranattels-1.png  
Reply With Quote