1. Dashboard
  2. Artikel
  3. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  1. HTML - Webmaster Forum
  2. HTML / Webmaster Forum
  3. HTML & CSS Forum

link color

  • Snowman6969
  • 10. Juni 2005 um 08:27
  • Snowman6969
    Azubi(ne)
    Beiträge
    35
    • 10. Juni 2005 um 08:27
    • #1

    Hallo Leute,

    Kann ich zwei linkfarben auf einer Seite definieren ??
    Ein link steht weiß auf schwarz, ein anderer schwarz auf weiß :? .

    Hat bestimmt jemand ne Lösung für das Problem

    Dank im Vorraus
    Snowman

  • Torty
    Kaiserliche Hoheit
    Beiträge
    1.558
    • 10. Juni 2005 um 09:01
    • #2

    Es gibt verschiedene Wege dies zu erreichen. Um die für dich richtige Version zu bestimmen, bräuchte man mal n STück HTML-Code.

    "Carpe Diem" powered by positiv Feelings

  • phore
    Forum Guru
    Reaktionen
    2
    Beiträge
    5.237
    • 10. Juni 2005 um 09:59
    • #3

    hilft dir »das?
    das kannst du mit class machen.
    mfg - phore

  • Gast
    • 10. Juni 2005 um 11:22
    • #4
    Code
    <script language='javascript'>
    <!--
     var wg1Window=null;
    function wg1(mypage,myname,w,h,pos,infocus){
    if(pos=='random'){
    LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
    TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
    if(pos=='center'){
    LeftPosition=(screen.width)?(screen.width-w)/2:100;
    TopPosition=(screen.height)?(screen.height-h)/2:100;}
    else if((pos!='center' && pos!='random') || pos==null){LeftPosition=20;TopPosition=20;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=no,dependent=no';
    wg1Window=window.open('',myname,settings);
    if(infocus=='front'){wg1Window.focus();wg1Window.location='1wg/1wg1.html';}
    }
    //-->
    </script>
    </head>
    
    
    
    
    <body  style="background-image:url(haupt/haupt.jpg); background-attachment:fixed;"   text="#000000" link="black" vlink="black" alink="black" marginwidth="0" topmargin="0" marginheight="0">
    
    
    
    
    
    
    <Table width="540" height="20" cellspacing="0" cellpadding="0" border="0"><TR><TD width="540" height="20"></TD></TR></table>
    
    
    
    
    
    
    <Center>
    <Table width="540" height="180" cellspacing="0" cellpadding="0" border="0">
    
    
    <TR><TD width="540" height="20"  colspan="5" style="background-image:url(haupt/hauptno.jpg);">
    <Font size="2" face="arial" color="#FFFFFF" align="left" style="margin-left:1cm">[B]1-Raumwohnung[/B]</FONT></TD></TR>
    
    
     
    <TR><TD width="20" height="140" rowspan="4">[img]haupt/hauptnli.jpg[/img]</TD>
    
    
    <TD width="500" height="20" colspan=3></TD>
    
    
    <TD width="20" height="140" rowspan="4">[img]haupt/hauptnre.jpg[/img]</TD>
    </TR>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    <TR>
    <TD width="100" height="60" valign="bottom" align="center">[url='javascript:wg1('1wg/1wg1.html','wg1','550','600','','front');'][img]1wg/1wg1.jpg[/img][/url]</TD>
    <TD width="300" height="60" ><FONT size="1" face="arial">Einraumwohnung in Bernburg
    Wohnfläche - 37qm
    Mietpreis - 195,00 €</Font></TD>
    <TD width="100" height="60">[url='javascript:wg1('1wg/1wg1.html','wg1','550','600','','front');']<Font size="1" face="arial">Details</Font>[/url]</TD>
    </TR>
    
    
    
    
    <TR>
    <TD width="500" height="10" colspan="3" align=center>[img]haupt/hauptbar.gif[/img]</TD>
    </TR> 
    
    
    
    
    
    
    <TR><TD width="500" height="20" colspan="3"></TD></TR>
    
    
    
    
    <TR>
    <TD width="540" height="20" colspan="5" style="background-image:url(haupt/hauptnu.jpg);">
    <Font size="2" color="#FFFFFF" face="arial" align="left" style="margin-left:10cm;"><A href=mailto:webmaster@boenicke-immobilien.de>[B]E-Mail[/B]</A></Font></TD>
    </TR>
    
    
    </table>
    
    
    <Table width="540" height="30"><TR><TD width="540" height="30"></TD></TR></TABLE>
    
    
    </body>
    
    
    </html>
    Alles anzeigen

    Also da sind 2 Links innerhalb der tabelle die Schwarz gefärbt sein müssten und weiter unten ein E-Mail Verweis der weiß sein müsste.

    greetz Snowman

  • Snowman6969
    Azubi(ne)
    Beiträge
    35
    • 10. Juni 2005 um 11:24
    • #5

    oops mal wieder nicht eingelogt

  • [sG|W00tkaeppi]
    Gast
    • 10. Juni 2005 um 11:28
    • #6
    Code
    <script language='javascript'>
    <!--
     var wg1Window=null;
    function wg1(mypage,myname,w,h,pos,infocus){
    if(pos=='random'){
    LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
    TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
    if(pos=='center'){
    LeftPosition=(screen.width)?(screen.width-w)/2:100;
    TopPosition=(screen.height)?(screen.height-h)/2:100;}
    else if((pos!='center' && pos!='random') || pos==null){LeftPosition=20;TopPosition=20;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=no,dependent=no';
    wg1Window=window.open('',myname,settings);
    if(infocus=='front'){wg1Window.focus();wg1Window.location='1wg/1wg1.html';}
    }
    //-->
    </script>
    <style>
    a.schwarz {
        color: #000000;}
    a.schwarz:hover {
        color: farbenachwahl;}
    a.white {
        color: #ffffff;}
    a.white:hover {
        color: farbenachwahl;}
    </style>
    </head>
    
    
    
    
    <body  style="background-image:url(haupt/haupt.jpg); background-attachment:fixed;"   text="#000000" link="black" vlink="black" alink="black" marginwidth="0" topmargin="0" marginheight="0">
    
    
    
    
    
    
    <Table width="540" height="20" cellspacing="0" cellpadding="0" border="0"><TR><TD width="540" height="20"></TD></TR></table>
    
    
    
    
    
    
    <Center>
    <Table width="540" height="180" cellspacing="0" cellpadding="0" border="0">
    
    
    <TR><TD width="540" height="20"  colspan="5" style="background-image:url(haupt/hauptno.jpg);">
    <Font size="2" face="arial" color="#FFFFFF" align="left" style="margin-left:1cm">[B]1-Raumwohnung[/B]</FONT></TD></TR>
    
    
    
    
    <TR><TD width="20" height="140" rowspan="4">[img]haupt/hauptnli.jpg[/img]</TD>
    
    
    <TD width="500" height="20" colspan=3></TD>
    
    
    <TD width="20" height="140" rowspan="4">[img]haupt/hauptnre.jpg[/img]</TD>
    </TR>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    <TR>
    <TD width="100" height="60" valign="bottom" align="center">[url='javascript:wg1('1wg/1wg1.html','wg1','550','600','','front');'][img]1wg/1wg1.jpg[/img][/url]</TD>
    <TD width="300" height="60" ><FONT size="1" face="arial">Einraumwohnung in Bernburg
    Wohnfläche - 37qm
    Mietpreis - 195,00 €</Font></TD>
    <TD width="100" height="60">[url='javascript:wg1('1wg/1wg1.html','wg1','550','600','','front');']<Font size="1" face="arial">Details</Font>[/url]</TD>
    </TR>
    
    
    
    
    <TR>
    <TD width="500" height="10" colspan="3" align=center>[img]haupt/hauptbar.gif[/img]</TD>
    </TR>
    
    
    
    
    
    
    <TR><TD width="500" height="20" colspan="3"></TD></TR>
    
    
    
    
    <TR>
    <TD width="540" height="20" colspan="5" style="background-image:url(haupt/hauptnu.jpg);">
    <Font size="2" color="#FFFFFF" face="arial" align="left" style="margin-left:10cm;"><A class="white" href=mailto:webmaster@boenicke-immobilien.de>[B]E-Mail[/B]</A></Font></TD>
    </TR>
    
    
    </table>
    
    
    <Table width="540" height="30"><TR><TD width="540" height="30"></TD></TR></TABLE>
    
    
    </body>
    
    
    </html>
    Alles anzeigen
  • Snowman6969
    Azubi(ne)
    Beiträge
    35
    • 10. Juni 2005 um 11:49
    • #7

    Aha also css --- vielen Dank

    wie immer geiles Forum

    greetz Snowman

Tags

  • gif
  • html
  • link
  • tex
  • links
  • style
  • background
  • body
  • jpg
  • text
  • webmaster
  • location
  • code
  • tabelle
  • status
  • bot
  • bottom
  • javascript
  • position
  • font
  • border
  • script
  • fläche

Benutzer online in diesem Thema

  • 1 Besucher
  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
Zitat speichern