also ich kenn folgendes:
nur zur info: da kannst auch noch ein andere pic machen, wenn man klickt und so.
HTML
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="../format_mouseover.css" >
<style type="text/css">
<!--
body
{margin-top: 10px; margin-left: 10px; margin-right: 20px;
color:#cccccc ; background-color:black; font-family: verdana; font-size: 10pt; }
-->
</style>
<script language="JavaScript">
<!-- Verstecken für ältere Browser
if (navigator.appVersion.indexOf("2.") != -1){
check = false;
}
if ((navigator.appVersion.indexOf("3.") != -1) && (navigator.appName.indexOf("Explorer") != -1)){
check = false;
}
else {
check = true;
}
if (check == true){
image1 = new Image();
image1.src = "home1.gif";
image1on = new Image();
image1on.src = "home2.gif";
image1stay = new Image();
image1stay.src = "home2.gif";
image2 = new Image();
image2.src = "guest1.gif";
image2on = new Image();
image2on.src = "guest2.gif";
image2stay = new Image();
image2stay.src = "guest2.gif";
image3 = new Image();
image3.src = "email1.gif";
image3on = new Image();
image3on.src = "email2.gif";
image3stay = new Image();
image3stay.src = "email2.gif";
}
imageStay = ""
function imageon(name){
if (imageStay != name){
document[name].src = eval(name + "on.src");
}
}
function imageoff(name){
if (imageStay != name){
document[name].src = eval(name + ".src");
}
}
function on(name){
if (check == true){
imageon(name);
}
}
function off(name){
if (check == true){
imageoff(name);
}
}
function stay(name){
if (check == true){
document[name].src = eval(name + "stay.src");
if (imageStay != name){
if (imageStay != ""){
document[imageStay].src = eval(imageStay + ".src");
}
}
imageStay = name
}
}
// -->
</script>
</head>
<body >
[url='../test.htm'][img]home1.gif[/img] [/url]
[url='../test.htm'][img]guest1.gif[/img] [/url]
[url='../test.htm'][img]email1.gif[/img] [/url]
</body>
</html>
Alles anzeigen