Avatar billede winpower Nybegynder
27. april 2004 - 23:57 Der er 3 kommentarer

Billed istedet for farvekode / flere billeder i header?

Hejsa.

Jeg er ved at lave nyt design på vores klan side..
Det vi godt kunne tænke os er at enten der kan sættes flere billeder ind ved siden af hinanden i header eller at vi kan få et billede ind istedet for farvekoden.

Denne linie kunne jeg godt tænke mig at få et billede ind i en af dem istedet for en farve:

$bgcolor1 = "#F7F8FA";
$bgcolor2 = "#F7F8FA";
$bgcolor3 = "#FFFFFF";
$bgcolor4 = "#F7F8FA";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

Men toppen af poppen ville helt klart være hvis der er en der kan fortælle hvordan jeg kunne få proppet fx. 5 billeder ind i headeren....

Theme.php er her:
<?php

$lnkcolor = "#FFFFFF";
$bgcolor1 = "#272727";
$bgcolor2 = "#4A0001";
$bgcolor3 = "#4A0001";
$textcolor1 = "#272727";
$textcolor2 = "#272727";
$theme_home = "Web_Links";
$hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor

function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" background=\"themes/Theme_RHD/images/f-f-diablo2.jpg\"><tr><td>\n";
}

function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable() {
    echo "</td></tr></table></td></tr></table>\n";
}

function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}

function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if ($notes != "") {
    $notes = "<b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
    $notes = "";
    }
    if ("$aid" == "$informant") {
    echo "<font size=\"2\">$thetext<br>$notes</font>\n";
    } else {
    if($informant != "") {
        $boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
    } else {
        $boxstuff = "$anonymous ";
    }
    $boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes\n";
    echo "<font size=\"2\">$boxstuff</font>\n";
    }
}

function themeheader() {
    global $prefix, $dbi, $user, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $banners, $sitename, $anonymous, $user;
    echo "<body topmargin=\"0\" leftmargin=\"0\" background=\"themes/Theme_RHD/images/f-c-diablo2.jpg\">\n";
    if ($banners
== 1) {
    include("banners.php");
    }
    if (is_user($user)) {
    cookiedecode($user);
    $username = $cookie[1];
    $bienvenida = "Velkommen $username! [ <a href=\"modules.php?name=Your_Account&amp;op=logout\"><b>Log ud</b></a> ]";
    } else {
    $bienvenida = "<a href=\"modules.php?name=Your_Account&amp;op=new_user\">Opret en bruger</a>";
    }
    $topics_list = "<select name=\"topic\" onChange='submit()'>\n";
    $topics_list .= "<option value=\"\">All Topics</option>\n";
    $toplist = sql_query("select topicid, topictext from $prefix"._topics." order by topictext", $dbi);
    while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
    if ($topicid==$topic) { $sel = "selected "; }
    $topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
    $sel = "";
    }
    echo "<center><a href=\"index.php\"><img src=\"themes/Theme_RHD/images/LogoLeft.gif\" alt=\"Velkommen til $sitename\" title=\"Welcome to $sitename\" border=\"0\"></a><br><br></center>"
    ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" background=\"themes/Theme_RHD/images/f-c-diablo2.jpg\"><tr><td align=\"center\">"
//    ."<form action=\"modules.php?name=Search\" method=\"post\">"
//    ."<font class=\"content\"><b>Search</b> <input type=\"text\" size=\"15\" name=\"query\">&nbsp;&nbsp;<b>in</b>&nbsp;&nbsp;$topics_list</font>"
//    ."</select>"
//    ."</form>"
//    ."</td></tr></table>"
//    ."<br>"
    ."<table border=\"1 cellpadding=\"4\" cellspacing=\"0\" style=\" border-collapse: collapse\" bordercolor=\"4A0001\" width=\"100%\" align=\"center\">\n"
    ."<tr><td background=\"themes/Theme_RHD/images/f-f-diablo2.jpg\" align=\"left\" width=\"20%\">&nbsp;$bienvenida</td>"
    ."<td background=\"themes/Theme_RHD/images/f-f-diablo2.jpg\" align=\"center\" width=\"60%\"><a href=\"index.php\">Forside</a> | <a href=\"modules.php?name=Submit_News\">Skriv Nyheder</a> | <a href=\"modules.php?name=Your_Account\">Din Konto</a> | <a href=\"modules.php?name=Content\">Content</a> | <a href=\"modules.php?name=Topics\">Topics</a> | <a href=\"modules.php?name=Top\">Top 10</a></td>\n"
    ."<td background=\"themes/Theme_RHD/images/f-f-diablo2.jpg\" align=\"right\" width=\"20%\">"
        ."<b><script type=\"text/javascript\">\n\n"
        ."<!--  // Array ofmonth Names\n"
        ."var monthNames = new Array( \""._JANUARY."\",\""._FEBRUARY."\",\""._MARCH."\",\""._APRIL."\",\""._MAY."\",\""._JUNE."\",\""._JULY."\",\""._AUGUST."\",\""._SEPTEMBER."\",\""._OCTOBER."\",\""._NOVEMBER."\",\""._DECEMBER."\");\n"
        ."var now = new Date();\n"
        ."thisYear = now.getYear();\n"
        ."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
        ."document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n"
        ."// -->\n\n"
        ."</script></b>&nbsp;\n"
    ."</td></tr>\n"
        ."<tr><td valign=\"top\" width=\"100%\" colspan=3>\n"
;

    $public_msg = public_message();
        echo "$public_msg<br>";
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\"><tr><td valign=\"top\" width=\"150\" background=\"themes/Theme_RHD/images/f-c-diablo2.jpg\">";
    blocks(left);
    echo "<img src=\"images/pix.gif\" border=\"0\" width=\"150\" height=\"1\"></td><td>&nbsp;&nbsp;</td><td width=\"100%\" valign=\"top\">";
}

function themefooter() {
    global $index, $bgcolor1, $bgcolor2, $bgcolor3;
    if ($index == 1) {
    echo "</td><td>&nbsp;&nbsp;</td><td valign=\"top\" background=\"themes/Theme_RHD/images/f-c-diablo2.jpg\">";
    blocks(right);
    echo "</td>";
    }
    echo "</td></tr></table></td></tr></table>";
    echo "<center>";
    footmsg();
    echo "</center>";
}

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $tipath, $anonymous, $bgcolor1, $bgcolor2, $bgcolor3;
    $ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
    $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
    $t_image = "$tipath$topicimage";
    }

    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" bgcolor=$bgcolor3 width=\"100%\"><tr><td>"
        ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=$bgcolor2>"
        ."<font class=\"title\">$title</font><br>"
        ."<font size=\"1\">"
    ."$time "._BY." "
        ."<b>";
    formatAidHeader($aid);
    echo "</b> ($counter "._READS.")</font></td></tr>"
    ."<tr><td background=\"themes/Theme_RHD/images/f-f-diablo2.jpg\"><a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"$t_image\" align=\"right\" border=\"0\" alt=\"$topictext\" title=\"$topictext\"></a>";
    FormatStory($thetext, $notes, $aid, $informant);
    echo "<br>"
        ."</td></tr><tr><td background=\"themes/Theme_RHD/images/f-f-diablo2.jpg\">"
        ."<font size=\"2\">$morelink</font>"
        ."</td></tr></table></td></tr></table>"
    ."<br>";
}

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath, $bgcolor1, $bgcolor2, $bgcolor3;
    $ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
    $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
    $t_image = "$tipath$topicimage";
    }
    if ("$aid" == "$informant") {
    echo"
    <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=$bgcolor3 width=100%><tr><td>
    <table border=0 cellpadding=3 cellspacing=1 width=100%><tr><td bgcolor=$bgcolor2>
    <font class=\"title\">$title</font><br>"._POSTEDON." $datetime
    <br>"._TOPIC.": <a href=modules.php?name=News&amp;new_topic=$topic>$topictext</a>
    </td></tr><tr><td bgcolor=$bgcolor1>
    <a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"$t_image\" border=\"0\" alt=\"$topictext\" title=\"$topictext\" align=\"right\"></a>$thetext
    </td></tr></table></td></tr></table><br>";
    } else {
    if($informant != "") $informant = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&username=$informant\">$informant</a> ";
    else $boxstuff = "$anonymous ";
    $boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes";
    echo "
    <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=$bgcolor3 width=100%><tr><td>
    <table border=0 cellpadding=3 cellspacing=1 width=100%><tr><td bgcolor=$bgcolor2>
    <font class=\"title\">$title</b></font><p>"._CONTRIBUTEDBY." $informant "._ON." $datetime</font>
    </td></tr><tr><td bgcolor=$bgcolor1>
    <a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"$t_image\" border=\"0\" alt=\"$topictext\" title=\"$topictext\" align=\"right\"></a>$thetext
    </td></tr></table></td></tr></table><br>";
    }
}

function themesidebox($title, $content) {
    global $bgcolor1, $bgcolor2, $bgcolor3;
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"150\" bgcolor=\"$bgcolor3\">\n"
    ."<tr><td>\n"
        ."<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\">\n"
    ."<tr><td bgcolor=$bgcolor2>"
        ."<font class=\"boxtitle\">$title</font></td></tr><tr><td background=\"themes/Theme_RHD/images/f-f-diablo2.jpg\"><font size=\"2\">"
        ."$content"
    ."</font></td></tr></table></td></tr></table><br>";
}

?>

Nu håber jeg ikke det er en umulig opgave for jeg kunne virkelig godt bruge lidt hjælp...
Avatar billede ldanielsen Nybegynder
28. april 2004 - 11:21 #1
Jeg forstår ikke hvad du mener! Hvad vil det sige at få billeder ind i headeren??
Avatar billede z1n Nybegynder
28. april 2004 - 11:24 #2
og hvorfor i al verden vil du det ? man skal helst bruge farvekoder i stedet for billeder når man kan slippe af sted med det. (f.eks hvor billedet/farvekoden skal være ensfarvet) Jo flere billeder du har jo længere load tid.
Avatar billede winpower Nybegynder
28. april 2004 - 14:25 #3
Ja det ved jeg men jeg vil gerne have enten en lille guldkant rundt om boksene og i toppen vil jeg meget gerne have 5 billeder ind som fx. på denne side:
http://www.sinvida.net/nuke/

Der er 5 små billder i toppen af siden som jeg gerne ville have det.

Det er små billeder så det er ligemeget med hastigheden...
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester