<b>REGISTER</b>

GFX-Sector - PHP, MySQL


 
GFX-Sector » Coding Area » Webentwicklung » PHP, MySQL » php menü problem » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites

PHP, MySQL

Themen rund um die serverseitige Programmierung mit PHP in Verbindung mit der Datenbanksoftware MySQL
Post New Thread Thread is closed

php menü problem

     Deutsche Version  English version
Author
Post « Previous Thread | Next Thread »

t03i t03i is a male
Fingerwischer


Avatar von t03i

Registration Date: 12.11.2008
Posts: 28
Program: ps cs4
Deviantart: t03i

Spacer
php menü problem

php menü problem

      

ich habe ein problem:
Wenn man bei meiner homepage auf einen der menüpunkte klickt soll dieser den dauerhaft den selben effekt haben wie wenn man über ihn drüber fährt (so ähnlich wie bei der ngc navi). ich habe den content per php eingebunden:
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
<?php
$seite = $_REQUEST['seite'];
if($seite=="about"){
include('about.php');
} 
elseif($seite=="portfolio"){ 
include('portfolio.php'); 
}
elseif($seite=="other"){
include('other.php');
} 
else{
include('home.php');
}

?>


falls sich jemand mit php auskennt, bitte melden Wink

P.S. ich kenne mich nicht mit php aus also bitte für noobs verständlich formulieren Wink
php menü problem 07.02.2009 23:02 t03i is offline Homepage of t03i Search for Posts by t03i

quantum quantum is a male
Pfadfinder

Spender


Avatar von quantum

Registration Date: 29.12.2008
Posts: 721
Deviantart: xcracx

Spacer
      

ACHTUNG, ICH KANN KEIN PHP!

php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:

<?php

if(isset($_REQUEST['page']))
{
switch ($_REQUEST['page']){

case 'gallerie':
include('gallerie.php');
break;

default:
include('blog.php');
break;
}
}
?>


versuch das ma,das is sicher und kann nich(fast) gehackt werden großes Grinsen
(OK diene is auch relativ sicher xD) weis nich welche evrs jezze besser is Zunge raus
aber das eine hat mit dem anderen nichts zu tun xD

und in deinem quelltext o0
mir war so, als ob du in validem (x)HTML keinen text ohne ein text-tag (p,h1 etc)
hineinschreiben darfst,
kann mich aber auch irren, sodass <div> als solches zählt.
ich meine nur bei der html &(X)html variante strict war das so fröhlich

zu der navi

du solltest den käse in eine uo (unordered list) hauen anstatt mit span tags o0
dann machtse halt #txt.as (as= aktuelle seite) und dann das hover bg dahin?
(für alle anderen) er hat die "buttons" in ein span text gehauen mit der id="txt") fröhlich

du hast das nich selber gecodet oder?
Ich gebe natürlich keine Garantie für irgendwelche infos xD

was du jetzt probs mit php hast weis ich nich o0



This post has been edited 2 time(s), it was last edited by quantum: 07.02.2009 23:21.

php menü problem 07.02.2009 23:18 quantum is offline Homepage of quantum Search for Posts by quantum

t03i t03i is a male
Fingerwischer


Avatar von t03i

Registration Date: 12.11.2008
Posts: 28
Program: ps cs4
Deviantart: t03i

Thread Starter Thread Started by t03i
Spacer
      

die seit is bis auf allowtransparency="true" valide
ich hab für jeden text ein text tag angegeben (in der style.css)
ich hab die seite komplett selbst designed und gecodet
nur den php teil hat mir vor nem halben jahr jemand gegeben
das mit der unordered list werd ich mal versuchen

This post has been edited 1 time(s), it was last edited by t03i: 07.02.2009 23:27.

php menü problem 07.02.2009 23:27 t03i is offline Homepage of t03i Search for Posts by t03i

quantum quantum is a male
Pfadfinder

Spender


Avatar von quantum

Registration Date: 29.12.2008
Posts: 721
Deviantart: xcracx

Spacer
      

ja ich glaube ncih, dass der validator sowas erkennt, ich meine damit, dass text in einem p oder h(1-7) tag sein muss(?)
und das hat mit dem stylesheet nix zu tun =P



php menü problem 07.02.2009 23:36 quantum is offline Homepage of quantum Search for Posts by quantum

t03i t03i is a male
Fingerwischer


Avatar von t03i

Registration Date: 12.11.2008
Posts: 28
Program: ps cs4
Deviantart: t03i

Thread Starter Thread Started by t03i
Spacer
      

danke für deinen tip mit dem uo
ich habs dann in abgeänderter form hingekriegt
thema kann geschlossen werden

php menü problem 08.02.2009 00:57 t03i is offline Homepage of t03i Search for Posts by t03i
 
Spacer
   
GFX-Sector
unregistered


 hat kein Avatar


Spacer

Have you enjoyed this topic?


If you were enjoying this post and if you keen on reading more interesting stuff then do not hesitate to complete the free sign up.

After the free registration you will gain access to all areas and you will be able to communicate with other artists from all over the world.

In addition you will benefit from our Photoshop and coding section as well as from our huge (hundreds of gigabytes) free resource section where you can find everything you will need to be a successful (web) designer/artist.

Sign up now and enjoy the advantages as a registered member.

(This website will be ad-free after a complete free sign up.)

New Post 08.02.2009 00:57  
Tree Structure | Board Structure
Post New Thread Thread is closed
GFX-Sector » Coding Area » Webentwicklung » PHP, MySQL » php menü problem

Similar topics to php menü problem
Thread
[PHP/MySQL] PHP-Skripte absichern – Teil 2: XSS (Forum: PHP und MySQL Tutorials)
GIMP Problem :) (Forum: Anderes)
phpBB Hacks installieren (Forum: Archiv)
Problem mit CS3/CS4 (Forum: Multimedia)
Form überprüfen PHP (Forum: PHP, MySQL)