Velbekommen da.
<div style="display:block; position:fixed; bottom:215px; right:0px; padding:12px 6px; cursor:pointer; z-index:1;
background-color:#292; color:#FFF; text-align:center; font:bold 15px Trebuchet MS; line-height:23px;
border:1px solid #123456; border-right:0px;
box-shadow: inset 0 0 6px #123456;
-moz-box-shadow: inset 0 0 6px #123456;
-webkit-box-shadow: inset 0 0 6px #123456;
border-radius: 9px 0 0 9px;
-moz-border-radius: 9px 0 0 9px;
-webkit-border-radius: 9px 0 0 9px;
text-shadow: #FF0 0px 0px 4px;
"
title="Klik og sig din mening"
onclick="java script:document.getElementById('feedbackbox').style.display='inline-block'">
F<br>e<br>e<br>d<br>b<br>a<br>c<br>k
</div>
<div id="feedbackbox"
style="display:none; position:fixed; bottom:215px; right:0px; padding:0 3px 4px 0; z-index:2;
background-color:#292; border:1px solid #123456; border-right:0px;
box-shadow: inset 0 0 6px #123456;
-moz-box-shadow: inset 0 0 6px #123456;
-webkit-box-shadow: inset 0 0 6px #123456;
border-radius: 9px 0 0 9px;
-moz-border-radius: 9px 0 0 9px;
-webkit-border-radius: 9px 0 0 9px;
">
<iframe name="feedbackform" src="feedbackForm.php" frameborder="0" width="300" height="200"></iframe>
</div>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-type" content="text/html;charset=UTF-8"></head>
<body style="text-align:center;"><?php
if (isset($_POST['feedback']))
{
$side = $_POST['side'];
$tid = $_POST['tid'];
$wtf = $_POST['wtf'];
$navn = $_POST['navn'];
$feedback = $_POST['feedback'];
$sendto = "tumsemm@gmail.com";
$subject = "Feedback : )";
$message = "Sendt fra: $side\nTidspunkt: $tid\n\n$wtf\n\nAfsender: $navn\n\n$feedback";
$header = "From: WebsiteFeedback <not@all.dk>\r\nMIME-Version: 1.0\r\nContent-type: text/plain; charset=UTF-8;";
if (!mail($sendto, $subject, $message, $header))
{
$svar = "Øv, fik ikke lov at sende fra server (ikke DIN skyld!)";
// man kunne evt. gemme i en tekst-fil..
}
else
$svar = "Tak for interessen - Din citronmåne er på vej : )";
exit("<script>"
."window.parent.document.getElementById('feedbackbox').style.display='none';"
."alert('$svar');"
."window.parent.feedbackform.location='feedbackForm.php'"
."</script></body></html>"
);
}
?>
<form name="formen" method="post" action="feedbackForm.php">
<input type="hidden" name="side" value="Mangler ?!?">
<input type="hidden" name="tid" value="Mangler ?!?">
<input type="hidden" name="wtf" value="Mangler ?!?">
<input type="text" name="navn" style="width:280px;margin:0;padding:2px;border:2px inset #292;background-color:#FEB; color:#304;"
value="Dit navn - email måske.."
onfocus="if(this.value=='Dit navn - email måske..') this.value=''"
onblur="if(this.value=='') this.value='Dit navn - email måske..'"
>
<br>
<textarea name="feedback" style="width:280px;height:120px;margin:0;padding:2px;border:2px inset #292;background-color:#FEB;color:#304;overflow:auto;resize:none;"
onfocus="if (this.value=='Ris/ros/forslag?') this.value=''"
onblur="if (this.value=='') this.value='Ris/ros/forslag?'"
>Ris/ros/forslag?</textarea>
<br>
<input type="submit" value="Send" style="margin:4px 0 0 0;">
<span onclick="window.parent.document.getElementById('feedbackbox').style.display='none';" style="font:bold 12px arial;color:#FFF;cursor:pointer;">Fortryd</span>
</form><script>
document.formen.side.value = window.parent.location.href
document.formen.tid.value = new Date().toString()
var cook = (!navigator.cookieEnabled)?": Disabled":"(enabled): "+top.document.cookie
win = winSize()
document.formen.wtf.value =
"Browser: " + navigator.userAgent + "\n"+
"Cookies " + cook + "\n"+
"Vindue: " + win.width + " x " + win.height+"\n"+
"Skærm: " + screen.availWidth + " x " + screen.availHeight+"\n"+
"Farver: " + top.screen.colorDepth + " bit ("+Math.pow(2, top.screen.colorDepth)+")"
function winSize()
{
var winW,winH;
if (top.document.body && top.document.body.offsetWidth)
{
winW = top.document.body.offsetWidth
winH = top.document.body.offsetHeight
}
if (top.document.compatMode=='CSS1Compat' && top.document.documentElement && top.document.documentElement.offsetWidth )
{
winW = top.document.documentElement.offsetWidth
winH = top.document.documentElement.offsetHeight
}
if (top.innerWidth && top.innerHeight)
{
winW = top.innerWidth
winH = top.innerHeight
}
return {width:winW,height:winH}
}
</script></body></html>