Seite 1 von 1

Text hover in Sprachdatei "ucp"

Verfasst: 17.02.2009 16:05
von Darinum
Hi,

Ich habe mal ne Frage ob es möglich ist, einen Texthover Funktion in die Sprachdatei "ucp.php" einzubinden, so dass wenn man sich registriert und auf den Link geht der Text erscheint. Nur habe ich ein kleines Problem^^ ich habe den passenden Code dafür nur eben für HMTL und nicht für php jetzt hoffe ich ihr könntet mir dabei vielleicht helfen =)

Code: Alles auswählen

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
span.popup {
        display: none;
        color: #00CCFF;
        background-color: #000000;        
}

a {
        text-decoration: none;
        color: #000000;
}
a.textlink:hover {
        border-width: 0;
}

a.textlink:hover .popup {
        display: inline;
        position: absolute;
        background-color: #000;
        border: 1px #000 solid;
}
img {
        border: none;
        cursor: pointer;
}
</style>
</head>
</html>

<a class="textlink" href="#">Addons<span class="popup">TEXT<onclick="window.open('','Fenster')"></span></a>
Und diesen Code nur da wäre es sinvoller die Grüne Box am anfang weg zu lassen nur weis ich grad nich so wirklich was ich da wegmachen mus^^ das nur der text "INFOBOX" dann steht^^''

Code: Alles auswählen

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
	"http://www.w3.org/TR/html4/strict.dtd">
<html lang="de">
<head>
<title>Infobox</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
#box a {
color:#ffffff;
background:#b3b06c;
font:bold 16px verdana, sans-serif;
text-decoration:none;
display:block;
width:150px;
padding:5px;
border:1px solid black;}

#box a:hover {
color:black;
background:#ddd8b7;}

#box a span {display:none;}

#box a:hover span {
position:absolute; top:10px; right:10px; z-index:3;
display:block;
width:300px;
color:black;
background:#ffffff;
font:normal 16px courier, sans-serif;
border:1px solid black;
padding:10px;}
-->
</style>
</head>
<body>

<div id="box"><a href="#">INFOBOX<span>Lorem ipsum dolor sit amet.</span></a></div>

</body>
</html>
Hoffe das mir da jemand helfen kann =)