Re: Re: abwechselnd links in anderer form darstellen - baseportal Forum - Web-Anwendungen einfach, schnell, leistungsfähig!
baseportal
English - Deutsch "Es gibt keine dummen Fragen - jeder hat einmal angefangen"

 baseportal-ForumDie aktuellsten 10, 30, 50, 100 Einträge anzeigen.  

 
 Ausgewählter Eintrag: Zur Liste 
    Beitrag von markus (1013 Beiträge) am Freitag, 28.November.2008, 14:24.
    Re: Re: abwechselnd links in anderer form darstellen

      genau !!
      :-)danke


    Antworten

 Alle Einträge zum Thema: Zur Liste 
    Beitrag von markus (1013 Beiträge) am Freitag, 28.November.2008, 12:51.
    abwechselnd links in anderer form darstellen

      hallo,
      ich versuche eine linkliste die links abwechselnd lt. stylesheet
      darzustellen (schriftart/farbe/größe).

      manuell klappt das, aber nicht im loop.
      habe mich am eintrag von claus s. mit den mehrfarbigen tabellen orientiert.

      wo sehe ich da den fehler nicht?
      markus

      #########################
      

      <style type="text/css">
      .L1 a:link { color: #700000; font-size: 11px; font-family: Verdana }
      .L1 a:visited { color: #700000; font-size: 11px; font-family: Verdana }
      .L1 a:hover { color: #700000; font-size: 11px; font-family: Verdana }
      .L1 a:active { color: #700000; font-size: 11px; font-family: Verdana }

      .L2 a:link { color: #000000; font-size: 21px; font-family: Thahoma }
      .L2 a:visited { color: #000000; font-size: 21px; font-family: Thahoma }
      .L2 a:hover { color: #000000; font-size: 21px; font-family: Thahoma }
      .L2 a:active { color: #000000; font-size: 21px; font-family: Thahoma }

      .L3 a:link { color: #cccc00; font-size: 8px; font-family: Arial }
      .L3 a:visited { color: #cccc00; font-size: 8px; font-family: Arial }
      .L3 a:hover { color: #cccc00; font-size: 8px; font-family: Arial }
      .L3 a:active { color: #cccc00; font-size: 8px; font-family: Arial }

      .L4 a:link { color: #d9d9d9; font-size: 14px; font-family: Verdana }
      .L4 a:visited { color: #d9d9d9; font-size: 14px; font-family: Verdana }
      .L4 a:hover { color: #d9d9d9; font-size: 14px; font-family: Verdana }
      .L4 a:active { color: #d9d9d9; font-size: 14px; font-family: Verdana }

      </style>
      </head><body>
      

      so gehts:
      <div class="L1"><a href='#'>begriff</a></div>
      <div class="L2"><a href='#'>begriff</a></div>
      <div class="L3"><a href='#'>begriff</a></div>
      <div class="L4"><a href='#'>begriff</a></div>
      


      so gehts nicht:
      <loop db=dbname code=perl>
      out "<div class=" . ($_loop %2 ? "L1" : "L2") . ">\n";
      out "<a href='#'>$linkname</a>";
      </loop>
      

     Antworten

    Beitrag von Pouraga (1396 Beiträge) am Freitag, 28.November.2008, 13:17.
    Re: abwechselnd links in anderer form darstellen

      HTML Fehler

      <loop db=dbname code=perl>
      out "<div class=\"" . ($_loop %2 ? "L1" : "L2") . "\">\n";
      out "<a href='#'>$linkname</a></div>";
      </loop>
      


      Aber vermutlich willst du auf so etwas hinaus.
      out "<div class=\"L".($_loop % 4). "\">\n";
      

     Antworten

    Beitrag von markus (1013 Beiträge) am Freitag, 28.November.2008, 14:24.
    Re: Re: abwechselnd links in anderer form darstellen

      genau !!
      :-)danke

     Antworten


     
 Liste der Einträge von 9600 bis 9750:Einklappen Zur Eingabe 
Neueste Einträge << 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | Neuere Einträge < Zur Eingabe  > Ältere Einträge | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 >> Älteste Einträge


Zurück zur Homepage

© baseportal.de. Alle Rechte vorbehalten. Nutzungsbedingungen



powered in 0.35s by baseportal.de
Erstellen Sie Ihre eigene Web-Datenbank - kostenlos!