flash fil i header
|
Palle Kristiansen |
Lagt på d. 29-03-2012 11:16
|
Lidt øvet
Antal indlæg: 40
Tilmeldt: 15/03/2012 17:20
|
Jeg vil gerne bruge en flash fil i stedet for en gif i headeren
Hvordan får jeg det til at virke
Min header theme ser sådan ud
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<tr><td class='header' width='100%'>";
echo "<tr><td height='200' background='".THEME."images/banner.gif' align='right' valign='middle'>
<table width='980' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td> </td>
<td width='220' align='center'>";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
if (iMEMBER) {
echo "
";}
og flashen i html ser sådan ud
<div align="center">
<embed src="banner.swf" quality="high" type="application/x-shockwave-flash" wmode="transparent" width="980" height="200" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always"></embed>
</div>
Jeg kan bare ik få det til at virke
|
|
|
|
|
|
|
Skrevet d. 22-11-2024 23:49
|
Reklame Agent
Antal indlæg: n^x
Tilmeldt: Altid
|
|
IP: localhost |
|
|
Tutsi |
Lagt på d. 29-03-2012 15:05
|
Superadministrator
Antal indlæg: 2409
Tilmeldt: 24/02/2009 19:12
|
Du skal have denne embedcode sat ind i Header. Jeg har ændret alle " til ' , så php kan læse det.
Det skal sættes inde her:
Kode echo "<tr><td height='200' background='".THEME."images/banner.gif' align='right' valign='middle'>
Men hvor meget du skal overskrive af den eksisterende tekst, har jeg lidt svært ved at se. Der mangler lidt lukke tags. Hvilken side er det på?
Kode <embed src='banner.swf' quality='high' type='application/x-shockwave-flash' wmode='transparent' width='980' height='200' pluginspage='http://www.macromedia.com/go/getflashplayer' allowScriptAccess='always'></embed>
______________________________
Hilsen Ellen
______________________________
www.jensens-madbl...
"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
|
|
|
|
|
|
Palle Kristiansen |
Lagt på d. 29-03-2012 17:15
|
Lidt øvet
Antal indlæg: 40
Tilmeldt: 15/03/2012 17:20
|
Lukke tags ?
Den skal være på alle sider
Det er theme filen
|
|
|
|
|
|
Palle Kristiansen |
Lagt på d. 29-03-2012 17:17
|
Lidt øvet
Antal indlæg: 40
Tilmeldt: 15/03/2012 17:20
|
Her er hele indholdet af filen theme.php
Kode <?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "980");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style;
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<tr><td class='header' width='100%'>";
echo "<tr><td height='200' background='".THEME."images/banner.gif' align='right' valign='middle'>
<table width='980' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td> </td>
<td width='220' align='center'>";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
if (iMEMBER) {
echo "
";}
//Content
echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='980' height='25' align='center'>\n<tr>\n";
echo "<td align='center' class='footer'>".stripslashes($settings['footer'])."<br />\n";
if (!$license) { echo showcopyright()."<br /><br />\n"; } echo showcounter()."<br /><br />
\n";
}
function render_news($subject, $news, $info) {
echo "<br><table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>\n<tr>\n";
echo "<td class='scapmain'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
}
?>
|
|
|
|
|
|
Tutsi |
Lagt på d. 29-03-2012 19:07
|
Superadministrator
Antal indlæg: 2409
Tilmeldt: 24/02/2009 19:12
|
Det ville nu være betydelig nemmere at SE siden, så jeg ved hvad jeg har med at gøre. Nu er det et skud i tågen, uden jeg kan afprøve det.
Men prøv den her:
Kode <?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "980");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style;
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td>\n";
//Header med flashbanner-------------------
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<tr><td class='header' width='100%'>";
echo" <embed src='banner.swf' quality='high' type='application/x-shockwave-flash' wmode='transparent' width='980' height='200' pluginspage='http://www.macromedia.com/go/getflashplayer' allowScriptAccess='always'></embed>";
echo "</td>\n</tr>\n</table>\n";
//Header med flashbanner slut-----------
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
if (iMEMBER) {
echo "
";}
//Content
echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='980' height='25' align='center'>\n<tr>\n";
echo "<td align='center' class='footer'>".stripslashes($settings['footer'])."<br />\n";
if (!$license) { echo showcopyright()."<br /><br />\n"; } echo showcounter()."<br /><br />
\n";
}
function render_news($subject, $news, $info) {
echo "<br><table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>\n<tr>\n";
echo "<td class='scapmain'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
}
?>
______________________________
Hilsen Ellen
______________________________
www.jensens-madbl...
"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
|
|
|
|
|
|
Palle Kristiansen |
Lagt på d. 29-03-2012 19:57
|
Lidt øvet
Antal indlæg: 40
Tilmeldt: 15/03/2012 17:20
|
|
|
|
|
|
|
Palle Kristiansen |
Lagt på d. 29-03-2012 19:59
|
Lidt øvet
Antal indlæg: 40
Tilmeldt: 15/03/2012 17:20
|
Rettede src='banner.swf til src='images/banner.swf
Men det virker desværre ik
|
|
|
|
|
|
Tutsi |
Lagt på d. 29-03-2012 21:07
|
Superadministrator
Antal indlæg: 2409
Tilmeldt: 24/02/2009 19:12
|
Prøv at skrive hele adressen, dit banner ligger. Det ser ud som om den ikke er der, hvor der henvises til.
______________________________
Hilsen Ellen
______________________________
www.jensens-madbl...
"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
|
|
|
|
|
|
Palle Kristiansen |
Lagt på d. 29-03-2012 21:10
|
Lidt øvet
Antal indlæg: 40
Tilmeldt: 15/03/2012 17:20
|
|
|
|
|
|
|
Palle Kristiansen |
Lagt på d. 29-03-2012 21:11
|
Lidt øvet
Antal indlæg: 40
Tilmeldt: 15/03/2012 17:20
|
|
|
|
|
|
|
Palle Kristiansen |
Lagt på d. 29-03-2012 21:15
|
Lidt øvet
Antal indlæg: 40
Tilmeldt: 15/03/2012 17:20
|
Du har ret
For hvis jeg skriver hele stien ind virker det
|
|
|
|
|
|
Tutsi |
Lagt på d. 29-03-2012 21:20
|
Superadministrator
Antal indlæg: 2409
Tilmeldt: 24/02/2009 19:12
|
Super
______________________________
Hilsen Ellen
______________________________
www.jensens-madbl...
"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
|
|
|
|
|
|
Palle Kristiansen |
Lagt på d. 29-03-2012 21:22
|
Lidt øvet
Antal indlæg: 40
Tilmeldt: 15/03/2012 17:20
|
Bukker og takker for hjælpen
|
|
|
|
|