PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
Mouseover mit CSS und php
Beitrag
<blockquote data-quote="Kiki McCloud" data-source="post: 2572945"><p>Uff... Hab mal gewüllt, das müsste das Biest hier sein:</p><p></p><p><span style="font-family: 'Courier New'">require("config.php");</span></p><p><span style="font-family: 'Courier New'"></span></p><p><span style="font-family: 'Courier New'"> function buildNavigation($navigation,$pictures){</span></p><p><span style="font-family: 'Courier New'"> $content = '<ul class="navigation">';</span></p><p><span style="font-family: 'Courier New'"> $class = "";</span></p><p><span style="font-family: 'Courier New'"> foreach($navigation as $name => $path){</span></p><p><span style="font-family: 'Courier New'"> $codename = explode('.',$path);</span></p><p><span style="font-family: 'Courier New'"> if ($_GET['page'] == $codename) $class = 'class="active"';</span></p><p><span style="font-family: 'Courier New'"> </span></p><p><span style="font-family: 'Courier New'"> if ($pictures[$name] != "") $navitem = "<img src='./images/{$pictures[$name]}'>";</span></p><p><span style="font-family: 'Courier New'"> else $navitem = $name;</span></p><p><span style="font-family: 'Courier New'"> </span></p><p><span style="font-family: 'Courier New'"> $content .= '<li id="nav-'.$name.'" '.$class.'>'</span></p><p><span style="font-family: 'Courier New'"> //. "<a href=\"javascript<img src="/styles/default/xenforo/smilies/cry.gif" class="smilie" loading="lazy" alt=":o" title="Eek! :o" data-shortname=":o" />penPage('?page={$codename[0]}&ajax=true','content');\">{$navitem}</a>"</span></p><p><span style="font-family: 'Courier New'"> . "<a href=\"?page={$codename[0]}\">{$navitem}</a>"</span></p><p><span style="font-family: 'Courier New'"> . '</li>';</span></p><p><span style="font-family: 'Courier New'"> $class = "";</span></p><p><span style="font-family: 'Courier New'"> }</span></p><p><span style="font-family: 'Courier New'"> $content .= '</ul>';</span></p><p><span style="font-family: 'Courier New'"> return $content;</span></p><p><span style="font-family: 'Courier New'"> }</span></p><p><span style="font-family: 'Courier New'"> </span></p><p><span style="font-family: 'Courier New'"> function getNamebyCode($pagecode, $navigation){</span></p><p><span style="font-family: 'Courier New'"> foreach($navigation as $name => $path){</span></p><p><span style="font-family: 'Courier New'"> $codename = explode('.',$path);</span></p><p><span style="font-family: 'Courier New'"> if ($codename[0] == $pagecode) return $name;</span></p><p><span style="font-family: 'Courier New'"> }</span></p><p><span style="font-family: 'Courier New'"> }</span></p><p><span style="font-family: 'Courier New'"></span></p><p><span style="font-family: 'Courier New'"> </span></p><p><span style="font-family: 'Courier New'"> $PAGE = $_GET['page'];</span></p><p><span style="font-family: 'Courier New'"> if ($PAGE == ''){</span></p><p><span style="font-family: 'Courier New'"> $pagecode = explode('.',$_CONF['DEFAULTPAGE']);</span></p><p><span style="font-family: 'Courier New'"> $PAGE = $pagecode[0];</span></p><p><span style="font-family: 'Courier New'"> } </span></p><p><span style="font-family: 'Courier New'"> </span></p><p><span style="font-family: 'Courier New'"> if (!isset($_GET['ajax']) || $_GET['ajax'] != 'true'){</span></p><p><span style="font-family: 'Courier New'"> $CONTENT = file_get_contents($_CONF['PAGEDIR'].$_CONF['MAINPAGE']);</span></p><p><span style="font-family: 'Courier New'"> } else {</span></p><p><span style="font-family: 'Courier New'"> $CONTENT = "###content###";</span></p><p><span style="font-family: 'Courier New'"> }</span></p><p><span style="font-family: 'Courier New'"> </span></p><p><span style="font-family: 'Courier New'"> $PAGE_CONTENT = file_get_contents($_CONF['PAGEDIR'].$PAGE.'.html');</span></p><p><span style="font-family: 'Courier New'"> </span></p><p><span style="font-family: 'Courier New'"> $CONTENT = str_replace('###navigation###', buildNavigation($_CONF['NAVIGATION'],$_CONF['NAVIGATION_PICS']), $CONTENT);</span></p><p><span style="font-family: 'Courier New'"> $CONTENT = str_replace('###content###', $PAGE_CONTENT, $CONTENT);</span></p><p><span style="font-family: 'Courier New'"> $CONTENT = str_replace('###title###', getNamebyCode($PAGE,$_CONF['NAVIGATION']).$_CONF['TITLESUF'], $CONTENT);</span></p><p><span style="font-family: 'Courier New'"> </span></p><p><span style="font-family: 'Courier New'"> echo $CONTENT;</span></p><p><span style="font-family: 'Courier New'"> </span></p><p><span style="font-family: 'Courier New'">?></span></p></blockquote><p></p>
[QUOTE="Kiki McCloud, post: 2572945"] Uff... Hab mal gewüllt, das müsste das Biest hier sein: [FONT=Courier New]require("config.php"); function buildNavigation($navigation,$pictures){ $content = '<ul class="navigation">'; $class = ""; foreach($navigation as $name => $path){ $codename = explode('.',$path); if ($_GET['page'] == $codename) $class = 'class="active"'; if ($pictures[$name] != "") $navitem = "<img src='./images/{$pictures[$name]}'>"; else $navitem = $name; $content .= '<li id="nav-'.$name.'" '.$class.'>' //. "<a href=\"javascript:openPage('?page={$codename[0]}&ajax=true','content');\">{$navitem}</a>" . "<a href=\"?page={$codename[0]}\">{$navitem}</a>" . '</li>'; $class = ""; } $content .= '</ul>'; return $content; } function getNamebyCode($pagecode, $navigation){ foreach($navigation as $name => $path){ $codename = explode('.',$path); if ($codename[0] == $pagecode) return $name; } } $PAGE = $_GET['page']; if ($PAGE == ''){ $pagecode = explode('.',$_CONF['DEFAULTPAGE']); $PAGE = $pagecode[0]; } if (!isset($_GET['ajax']) || $_GET['ajax'] != 'true'){ $CONTENT = file_get_contents($_CONF['PAGEDIR'].$_CONF['MAINPAGE']); } else { $CONTENT = "###content###"; } $PAGE_CONTENT = file_get_contents($_CONF['PAGEDIR'].$PAGE.'.html'); $CONTENT = str_replace('###navigation###', buildNavigation($_CONF['NAVIGATION'],$_CONF['NAVIGATION_PICS']), $CONTENT); $CONTENT = str_replace('###content###', $PAGE_CONTENT, $CONTENT); $CONTENT = str_replace('###title###', getNamebyCode($PAGE,$_CONF['NAVIGATION']).$_CONF['TITLESUF'], $CONTENT); echo $CONTENT; ?>[/FONT] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 5, ▼ = 2 und ■ = 7, was ist ▲ × ▼ + ■?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
Mouseover mit CSS und php
Oben