"We are back" « oc.at

html frage !

CROWLER 24.05.2002 - 20:25 768 10
Posts

CROWLER

Powerbunny
Avatar
Registered: Nov 2000
Location: aufWean
Posts: 1893
wie mache ich bei html dass wenn ich über einen link mit der maus fahre dieser die schriftfarbe vernändert nicht unterstrichen ist und makiert ist (siehe windows startmenü 95-2000)


thx !

jAcKz

Legend
fool martyr
Avatar
Registered: Dec 2000
Location: cross
Posts: 21376
js?

flaimo

ILFTKYS
Avatar
Registered: Dec 2001
Location: ask a ninja
Posts: 872
css?

XeroXs

Vereinsmitglied
doh
Avatar
Registered: Nov 2000
Location: Lieboch
Posts: 10372
ok doch anders...

folgendes.. am besten bindest im header a css file ein.. des geht folgendermaßen:

irgendwo zwischen <head> und </head> schreibst rein..

<link rel="Stylesheet" type="text/css" href="filename.css">

dann erstellst ein css-file..

da schreibst rein

Code:
A:link {
	text-decoration: none; 
	color: #FFFFFF; 
	font-family: schriftart; 
	font-size: ??px
	}

A:visited {
	text-decoration: none; 
	color: #FFFFFF; 
	font-family: schriftart; 
	font-size: ??px
	}

A:active {
	text-decoration: none; 
	color: #FFFFFF; 
	font-family: schriftart; 
	font-size: ??px
	}

A:hover {
	text-decoration: none; 
	color: #FFFFFF; 
	font-family: schriftart; 
	font-size: ??px
	background-color: #000000
	}

überall deine daten eintragen... ;)
Bearbeitet von XeroXs am 24.05.2002, 20:58

Ezekiel

OC Addicted
Avatar
Registered: Jun 2001
Location: na
Posts: 3329


// schrift farbe des links onmouseover
<head>
<style type="text/css">

a:link { color:black;font-face:'arial'; }

a:visited { color:black;}

a:active { color:orange;text-decoration: none; }

a:hover { color:orange;text-decoration: none; }

</style>
</head>
..................

// schrift wird makiert wenn ich das richtig verstehe was du willst
<table>
<tr>
<td bgcolor="black" onmouseover="this.style.backgroundColor='#F89A05';" onmouseout="this.style.backgroundColor='000000';" class="text"><b><a href="home.htm" target="main">Home</a></b></td>
</tr>

Murph

Nerd
Avatar
Registered: Dec 2001
Location: Vienna
Posts: 9236
edit:
hat sich erledigt

watchout

Legend
undead
Avatar
Registered: Nov 2000
Location: Off the grid.
Posts: 6845
müsste brauchbar sein...

Code:
A:link {
 COLOR: #000000;
 TEXT-DECORATION: none;}
A:visited {
 COLOR: #008800;
 TEXT-DECORATION: none;}
A:hover {
 COLOR: #FF0000;
 TEXT-DECORATION: underline;}
 BACKGROUND-COLOR: #FFFF00;
A:active {
 COLOR: #00FF00;
 TEXT-DECORATION: none;}

watchout

Legend
undead
Avatar
Registered: Nov 2000
Location: Off the grid.
Posts: 6845
@Eze:
warst schneller - nur braucht man kein js dafür - das macht ja eh' schon hover!

Ezekiel

OC Addicted
Avatar
Registered: Jun 2001
Location: na
Posts: 3329
ja, so wie dus gepostet hast isses vermutlich besser ...

XeroXs

Vereinsmitglied
doh
Avatar
Registered: Nov 2000
Location: Lieboch
Posts: 10372
ich owne euch alle :p

watchout

Legend
undead
Avatar
Registered: Nov 2000
Location: Off the grid.
Posts: 6845
also unterschied zw. meiner version & Ezekiel-version:
bei meiner wird nur der link hinterlegt
in ezekiel's wird eine ganze zelle einer tabelle angemalt - also is' eigentlich mehr windows-style, dafür gehts halt mit js ;)
Kontakt | Unser Forum | Über overclockers.at | Impressum | Datenschutz