Ankündigung

Einklappen
Keine Ankündigung bisher.

PHP Link ???

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • PHP Link ???

    Das hab ich schon in einem anderem Forum gepostet, die konnten mir nicht helfen. Ich denke aber mal, dass ich hier jemanden finden kann

    Erste Post:
    Peace
    Ich bin ein neuling in PHP und versuche mich gerade rane und hab jetzt mal ne Frage ...

    Ich habe so einen Link:
    oCMenu.makeMenu('sub63','top7','About','index.php? show=about')

    Wie muss ich die "about" Datei benennen und wo muss die hin, damit der link geht ???


    Zweite Post:
    sie kannste nennen wie die willst.
    in index schreibst de das rein:

    <?php
    if($_GET["show"] == "about")
    {
    include("deineDatei.php");
    }
    ?>

    Wenn du ein bißchen mehr Erfahrungen mit php gesammelt hast, merkst du, das der code oben noch sehr ausbaufähig ist. Soll ja erstmal nur ein Anfang sein...

    wenn du jetzt auf den Link klickst dann wir d der Inhalt der Datei "Includet".


    Dritte Post:
    Danke erstmal für die Hilfe, aber leider ist das doch nicht was ich suche. Mein Link-Menü ist in einer .js-Datei und sieht so aus:


    /***
    This is the menu creation code - place it right after you body tag
    Feel free to add this to a stand-alone js file and link it to your page.
    **/

    //Menu object creation
    oCMenu=new makeCM("oCMenu" //Making the menu object. Argument: menuname

    oCMenu.frames = 0

    //Menu properties
    oCMenu.pxBetween=10
    oCMenu.fromLeft=285
    oCMenu.fromTop=135
    oCMenu.rows=1
    oCMenu.menuPlacement="left"

    oCMenu.offlineRoot="file:///";
    oCMenu.onlineRoot="./"
    oCMenu.resizeCheck=1
    oCMenu.wait=1000
    oCMenu.fillImg="cm_fill.gif"
    oCMenu.zIndex=0

    //Background bar properties
    oCMenu.useBar=0
    oCMenu.barWidth="100%"
    oCMenu.barHeight="menu"
    oCMenu.barClass="clBar"
    oCMenu.barX=0
    oCMenu.barY=0
    oCMenu.barBorderX=0
    oCMenu.barBorderY=0
    oCMenu.barBorderClass=""

    //Level properties - ALL properties have to be spesified in level 0
    oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
    oCMenu.level[0].width=83
    oCMenu.level[0].height=16
    oCMenu.level[0].regClass="clLevel0"
    oCMenu.level[0].overClass="clLevel0over"
    oCMenu.level[0].borderX=0
    oCMenu.level[0].borderY=0
    oCMenu.level[0].borderClass="clLevel0border"
    oCMenu.level[0].offsetX=2
    oCMenu.level[0].offsetY=3
    oCMenu.level[0].rows=0
    oCMenu.level[0].arrow=0
    oCMenu.level[0].arrowWidth=0
    oCMenu.level[0].arrowHeight=0
    oCMenu.level[0].align="bottom"


    //EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
    oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
    oCMenu.level[1].width=85
    oCMenu.level[1].height=17
    oCMenu.level[1].regClass="clLevel1"
    oCMenu.level[1].overClass="clLevel1over"
    oCMenu.level[1].borderX=1
    oCMenu.level[1].borderY=1
    oCMenu.level[1].align="right"
    oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
    oCMenu.level[1].offsetY=0
    oCMenu.level[1].borderClass="clLevel1border"


    //EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
    oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
    oCMenu.level[2].width=150
    oCMenu.level[2].height=20
    oCMenu.level[2].offsetX=0
    oCMenu.level[2].offsetY=0
    oCMenu.level[2].regClass="clLevel2"
    oCMenu.level[2].overClass="clLevel2over"
    oCMenu.level[2].borderClass="clLevel2border"


    /******************************************
    Menu item creation:
    myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
    *************************************/


    oCMenu.makeMenu('top0','','[img]images/button.gif[/img]News','','')
    oCMenu.makeMenu('sub00','top0','News Aktuell','index.php?show=news')
    oCMenu.makeMenu('sub01','top0','News Today','index.php?show=today')
    oCMenu.makeMenu('sub02','top0','News Archiv','index.php?show=archiv&count=20&offset=0')
    oCMenu.makeMenu('sub03','top0','News Suchen','index.php?show=suchen')
    oCMenu.makeMenu('sub04','top0','News Senden','index.php?show=contact&sub=news für kornworld.de')
    oCMenu.makeMenu('sub05','top0','Newsletter','index .php?show=newsletter')

    oCMenu.makeMenu('top1','','[img]images/button.gif[/img]Limp Bizkit','')
    oCMenu.makeMenu('sub08','top1','Biography','index. php?show=bio')
    oCMenu.makeMenu('sub09','top1','FAQ','index.php?sh ow=faq')
    oCMenu.makeMenu('sub10','top1','Tourdates','index. php?show=tour')
    oCMenu.makeMenu('sub11','top1','Tourreviews','inde x.php?show=tourreviews&action=index')
    oCMenu.makeMenu('sub12','top1','Tourpictures','ind ex.php?show=tourpix')
    oCMenu.makeMenu('sub21','top1','Lyrics','index.php ?show=lyrics')
    oCMenu.makeMenu('sub22','top1','Meanings','index.p hp?show=meanings')
    oCMenu.makeMenu('sub23','top1','KoRnography','inde x.php?show=kornography')
    oCMenu.makeMenu('sub24','top1','Equipment','index. php?show=equipment')
    oCMenu.makeMenu('sub25','top1','Merchandise','inde x.php?show=merch')

    oCMenu.makeMenu('top3','','[img]images/button.gif[/img]Multimedia','')
    oCMenu.makeMenu('sub26','top3','Videos','index.php ?show=videos')
    oCMenu.makeMenu('sub27','top3','Pictures','index.p hp?show=pictures')
    oCMenu.makeMenu('sub28','top3','Artworks','index.p hp?show=artworks')

    oCMenu.makeMenu('top4','','[img]images/button.gif[/img]Download','')
    oCMenu.makeMenu('sub40','top4','Winamp Skins','index.php?show=dlwinampskins')
    oCMenu.makeMenu('sub41','top4','Screen Saver','index.php?show=dlscreensaver')
    oCMenu.makeMenu('sub42','top4','Fonts','index.php? show=dlfonts')
    oCMenu.makeMenu('sub43','top4','MP3s','index.php?s how=dlmp3s')
    oCMenu.makeMenu('sub44','top4','Wallpaper','index. php?show=dlwallpaper')
    oCMenu.makeMenu('sub45','top4','ICQ','index.php?sh ow=dlicq')
    oCMenu.makeMenu('sub46','top4','Other','index.php? show=dlother')

    oCMenu.makeMenu('top5','','[img]images/button.gif[/img]Community','')
    oCMenu.makeMenu('sub30','top5','Forum','board/')
    oCMenu.makeMenu('sub31','top5','zur Kornforum','board/forumdisplay.php?f=3')
    oCMenu.makeMenu('sub32','top5','Chat','index.php?s how=chat')
    oCMenu.makeMenu('sub33','top5','KoRn Fan Club','index.php?show=fanclub')

    oCMenu.makeMenu('top6','','[img]images/button.gif[/img]InteRact','')
    oCMenu.makeMenu('sub49','top6','Artikel','index.ph p?show=article&action=index')
    oCMenu.makeMenu('sub50','top6','Kolumnen','index.p hp?show=kolumnen')
    oCMenu.makeMenu('sub51','top6','Quiz','index.php?s how=quiz')
    oCMenu.makeMenu('sub52','top6','Contest','index.ph p?show=contest')
    oCMenu.makeMenu('sub53','top6','Links','index.php? show=links&action=index')
    oCMenu.makeMenu('sub54','top6','Link Us','index.php?show=links&action=linkus')

    oCMenu.makeMenu('top7','','[img]images/button.gif[/img]Guests','')

    oCMenu.makeMenu('sub62','top7','Partner','index.ph p?show=partner')
    oCMenu.makeMenu('sub63','top7','About','index.php? show=about')
    oCMenu.makeMenu('sub64','top7','Credits','index.ph p?show=credits')
    oCMenu.makeMenu('sub65','top7','Contact','index.ph p?show=contact')
    oCMenu.makeMenu('sub66','top7','Guestbook','index. php?show=gb&count=5&offset=0')

    //Leave this line - it constructs the menu
    oCMenu.construct()

    wie arbeite ich jetzt damit und nochmal die Frage, wo muss ich die Datei hin tun, die der Link anzeigen soll und wie muss ich die benennen ...

    Peace
    U-DOGG

  • #2
    Re: PHP Link ???

    Zitat von U-DOGG
    Ich habe so einen Link:
    oCMenu.makeMenu('sub63','top7','About','index.php? show=about')
    Das ist bereits völlig falsch ...

    Kein Link, sondern parametrischer Methodenaufruf eines DOM/JS-Objekts ...

    Kommentar


    • #3
      Und wie funktioniert das ???
      Ich hab den Code aus dieser Seite http://www.kornworld.de ... das Menü gefällt mir dort sehr gut und ich wollte mir das selbe für meine Seite machen, aber ich bekomme einfach nicht raus, wie in dem Menü die Links funtionieren ... kann einer mir das erklären?

      Kommentar


      • #4
        Wenn du es schon geschafft hast, es zu "klauen" .. dann sollte es doch möglich sein, auch die Implementation zu übernehmen.

        Auch hätte es nicht viel mühe gemacht, mal google anzuschmeissen und nach der original-Herkunft zu suchen:

        http://www.dhtmlcentral.com/projects/coolmenus/
        Dort gibts alles, was nötig ist ...

        Kommentar


        • #5
          wenn du schon code postest der
          1. zu lang ist
          2. nicht in dieses forum gehört
          dann umschließ ihn bitte mit code-tags

          Kommentar

          Lädt...
          X