Flash Logo in das Kubrick Theme einbinden
am 07.10.2006 - 21:50 Uhr in
Hallo Leute,
ich verwende Drupal 4.7.3 und habe bereits einge Optionen herausgefunden, womit ich mein CMS etwas individualisieren kann. Drupal rockt!
Jetzt wollte ich gerne das Logo im Header durch ein Flash Logo (also swf-Datei) austauschen. Dafür habe ich den Code der "page.tpl.php" etwas modifiziert. Nun sieht man auch mein Flash-Logo, aber leider sind die Primary-Links (vorher auf dem original "headerimg" drauf) jetzt nicht mehr zu sehen?!
Vielleicht kann mir jemand einen Tipp geben, wie ich diese auf das Flash-Logo raufsetzen könnte.
Ich habe schon mit der "style.css" Datei (des Themes) rumexperimentiert, konnte aber mein Ziel leider nicht erreichen.
Hier ist mein umgewandelter Code. Mein original Pfad zur "swf-Datei" ist nur zwecks der Veröffentlichung hier im Forum verändert.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">
<head>
<title><?php print $head_title ?></title>
<?php print $head ?>
<?php print $styles ?>
<script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
</head>
<body>
<div id="page">
<div id="header">
<div> <object width="760" height="200">
<param name="movie" value="meineURL/files/kubrick_logo.swf">
<embed src="meineURL/files/kubrick_logo.swf" bgcolor="#e7e7e7" width="760" height="200">
</embed>
</object>
<?php if ($site_name) { ?><h1><a href="/<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1><?php } ?>
<?php if ($site_slogan) { ?><div class='slogan'><?php print $site_slogan ?></div><?php } ?>
</div>
<?php if (isset($primary_links)) { ?><?php print kubrick_primary_links() ?><?php } ?>
</div>
<hr />
<div id="content" class="narrowcolumn">
<?php print $header ?>
<div class="navigation"> <?php print $breadcrumb ?> </div>
<div id="message"><?php print $messages ?></div>
<?php if ($mission) { ?><div id="mission"><?php print $mission ?></div><?php } ?>
<h2 class="page-title"><?php print $title ?></h2>
<?php print $tabs ?>
<?php print $help ?>
<!-- start main content -->
<?php print $content; ?>
<!-- end main content -->
</div>
<?php if ($sidebar_right) { ?>
<div id="sidebar">
<?php print $search_box ?>
<br />
<?php print $sidebar_right ?>
</div>
<?php } ?>
<hr />
<div id="footer">
<p><?php print $footer_message ?></p>
</div>
</div>
<?php print $closure ?>
</body>
</html>Und das ist der Original Code des Themes:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">
<head>
<title><?php print $head_title ?></title>
<?php print $head ?>
<?php print $styles ?>
<script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
</head>
<body>
<div id="page">
<div id="header">
<div id="headerimg">
<?php if ($site_name) { ?><h1><a href="/<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1><?php } ?>
<?php if ($site_slogan) { ?><div class='slogan'><?php print $site_slogan ?></div><?php } ?>
</div>
<?php if (isset($primary_links)) { ?><?php print kubrick_primary_links() ?><?php } ?>
</div>
<hr />
<div id="content" class="narrowcolumn">
<?php print $header ?>
<div class="navigation"> <?php print $breadcrumb ?> </div>
<div id="message"><?php print $messages ?></div>
<?php if ($mission) { ?><div id="mission"><?php print $mission ?></div><?php } ?>
<h2 class="page-title"><?php print $title ?></h2>
<?php print $tabs ?>
<?php print $help ?>
<!-- start main content -->
<?php print $content; ?>
<!-- end main content -->
</div>
<?php if ($sidebar_right) { ?>
<div id="sidebar">
<?php print $search_box ?>
<br />
<?php print $sidebar_right ?>
</div>
<?php } ?>
<hr />
<div id="footer">
<p><?php print $footer_message ?></p>
</div>
</div>
<?php print $closure ?>
</body>
</html>Vielen Dank im voraus!
MfG
Flashaddicted
- Anmelden oder Registrieren um Kommentare zu schreiben

Dein Problem hat nichts mit Drupal zu tun.
am 07.10.2006 - 23:12 Uhr
Du kannst grundsätzlich keine HTML Ausgaben über einen Flash-Film ausgeben ("draufsetzen").
Der Flash-Film belegt einen eigenen Bereich im Browser, wie auch z.B. ein Java-Applet.
vg, md - drupalcenter
--
www.mdwp.de
Ok!
am 08.10.2006 - 16:23 Uhr
Schade, trotzdem vielen Dank für die schnelle Antwort.
Gruß,
flashaddicted