Hab da so ne selbstgebastelte PHP-Community und ein Problem:
hab da z.B eine User-Online-Anzeige.
Der Quelltext sieht im FireFox so aus wie er aussehen sollte:
HTML
<html>
<head>
<title></title>
<meta name="author" content="Tommi">
<meta http-equiv="refresh" content="40">
<link rel="stylesheet" href="styles/formate_main.css" type="text/css">
</head>
<body text="#000000" style="background-color:#FF8500;">
<b>2 User online:</b> <a href="profil.php?id=16&PHPSESSID=7d20b5685f3a8fcdd0f444258b1e9faf" target="content">Fritz</a>, <a href="profil.php?id=14&PHPSESSID=7d20b5685f3a8fcdd0f444258b1e9faf" target="content">Tommi</a>,
</body>
</html>
Alles anzeigen
Im IE sieht der Quelltext der gleichen Seite dann so aus:
HTML
<html>
<head>
<DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox1'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox2'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox3'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox4'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox5'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox6'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox7'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox8'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox9'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox10'></DIV>
<STYLE>
div.lm_tipBox{
position:absolute;
width:400px;
height: 244px;
z-index: 10000000;
border: 1pt black solid;
background: #ffffff;
visibility: hidden;
}
</STYLE>
<SCRIPT>
function lm_div_mouseOut(){ self.lm_isOverTip = false; }
function lm_div_mouseOver() { self.lm_isOverTip = true; }
function lm_handle_onFocus(){
self.lm_div_cur=(Math.round((Math.random()*9)+1));
}
if (window.captureEvents)
window.captureEvents(Event.FOCUS);
window.onFocus = lm_handle_onFocus();
function lm_displayContents(tip) {
var el = self.document.getElementById('lm_tipBox'+self.lm_div_cur);
if(!el) {
if(window.self.frames.length)
el = self.document.getElementById('lm_tipBox'+self.lm_div_cur);
}
if(el) {
el.innerHTML=tip;
lm_setPosition(el); lm_adjustBox();
var tip = self.document.getElementById(self.lm_skeyphrase);
if(tip) {
tip.style.visibility='visible';
tip.style.visibility='hidden';
}
setTimeout('lm_showDiv()', 3);
}
}
function lm_adjustBox() {
var el=self.document.getElementById('lm_tipBox'+self.lm_div_cur);
var tip = document.getElementById(self.lm_skeyphrase);
if(el) {
if(document.body.clientWidth < (el.style.pixelLeft+el.offsetWidth)) {
var pos = (el.style.pixelLeft-el.offsetWidth);
if(pos > 0)
el.style.pixelLeft = pos;
}
else if((el.style.pixelLeft-el.offsetwidth) < document.body.scrollLeft) {
el.style.pixelLeft = el.styel.pixelLeft + el.offsetWidth;
}
if((document.body.offsetHeight+document.body.scrollTop) < (el.style.pixelTop+el.offsetHeight)) {
var pos = (el.style.pixelTop-el.offsetHeight-15);
if(pos > (document.body.scrollTop))
el.style.pixelTop = pos;
}
else if(el.style.pixelTop < document.body.scrollTop) {
el.style.pixelTop = el.style.pixelTop + el.offsetHeight + 15;
}
}
}
function lm_showDiv() {
if(self.lm_isOverTip || self.lm_isOverLink) {
var tip=self.document.getElementById(self.lm_skeyphrase);
var el = self.document.getElementById('lm_tipBox'+self.lm_div_cur);
if(!el){ el = self.document.getElementById('lm_tipBox'+self.lm_div_cur); }
if(el) {
lm_adjustBox();
if(self.isReady==true && tip){
tip.style.visibility='visible';
el.style.visibility = 'visible';
lm_closeiframe();
}
else { setTimeout('lm_showDiv()', 3) }
}
}
}
function lm_getOffset(el, which) {
var amount = el['offset'+which];
if (which=='Top')
amount+=el.offsetHeight;
el = el.offsetParent;
while (el!=null) {
amount+=el['offset'+which];
el = el.offsetParent;
}
return amount;
}
function lm_setPosition(el) {
if(window.event) {src = window.event.srcElement;} else{ var src = self.lm_sevent; }
el.style.pixelTop = lm_getOffset(src, 'Top');
if( self.name && (self.name != 'opener')) { el.style.pixelLeft += 15; }
el.style.pixelLeft= lm_getOffset(src, 'Left');
}
function lm_getFrameSize(){
var el = document.getElementById('lm_tipBox'+self.lm_div_cur);
var tip= document.getElementById(lm_skeyphrase);
if(el && el.style) {
el.style.width=tip.style.width;
el.style.height=tip.style.height;
}
}
function lm_doMouseOver(showBox) {
var el = document.getElementById('lm_tipBox'+self.lm_div_cur);
if(!el)
self.document.getElementById('lm_tipBox'+self.lm_div_cur);
if(el) if(el.style) { if(showBox) el.style.visibility='visible'; }
var query = self.lm_skeyphrase;
if(self.lm_isOverTip == true)
return false;
self.lm_isOverTip = true;
var tip=document.getElementById(query);
if(tip && (query == self.lm_last_query)) {
setTimeout('lm_showDiv()',10);
}
else {
if(self.lm_isOverLink) {
self.isReady=false; var tip = "<iframe id='"+query+"'src='http://www.srch-results.com/content_rxt.asp?si=19902&keyphrase="+query+"' scrolling=no onLoad='self.isReady=true;' onmouseover='if(self.lm_timeout) clearTimeout(self.lm_timeout); self.lm_isOverTip = true;' onmouseout='if(self.lm_timeout) clearTimeout(self.lm_timeout); self.lm_isOverTip=false; self.lm_isOverLink=false; lm_closeiframe(1500);' width='100%' height='100%'></iframe>";
self.lm_last_query = query; lm_displayContents(tip);
}
}
return false;
}
function lm_closeiframe(delay) {
if(delay)
{
self.lm_timeout = setTimeout('lm_closeiframe()', delay);
return;
}
if((self.lm_isOverTip == true) && (self.lm_skeyphrase == self.lm_last_query)){ return false; }
var tip=document.getElementById(self.lm_skeyphrase); if(!tip) tip=document.getElementById(self.lm_last_query);
var el = self.document.getElementById('lm_tipBox'+self.lm_div_cur);
if(el) {
el.style.visibility = 'hidden';
}
else {
if(window.self.frames.length) {
var el=self.document.getElementById('lm_tipBox'+self.lm_div_cur);
if(el)
el.style.visibility='hidden';
}
}
if(tip) {
tip.style.visibility='hidden';
}
}
</SCRIPT>
<title></title>
<meta name="author" content="Tommi">
<meta http-equiv="refresh" content="40">
<link rel="stylesheet" href="styles/formate_main.css" type="text/css">
</head>
<DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox1'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox2'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox3'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox4'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox5'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox6'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox7'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox8'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox9'></DIV><DIV onmouseover="lm_div_mouseOver();" onmouseout="lm_div_mouseOut();" class='lm_tipBox' id='lm_tipBox10'></DIV>
<STYLE>
div.lm_tipBox{
position:absolute;
width:400px;
height: 244px;
z-index: 10000000;
border: 1pt black solid;
background: #ffffff;
visibility: hidden;
}
</STYLE>
<SCRIPT>
function lm_div_mouseOut(){ self.lm_isOverTip = false; }
function lm_div_mouseOver() { self.lm_isOverTip = true; }
function lm_handle_onFocus(){
self.lm_div_cur=(Math.round((Math.random()*9)+1));
}
if (window.captureEvents)
window.captureEvents(Event.FOCUS);
window.onFocus = lm_handle_onFocus();
function lm_displayContents(tip) {
var el = self.document.getElementById('lm_tipBox'+self.lm_div_cur);
if(!el) {
if(window.self.frames.length)
el = self.document.getElementById('lm_tipBox'+self.lm_div_cur);
}
if(el) {
el.innerHTML=tip;
lm_setPosition(el); lm_adjustBox();
var tip = self.document.getElementById(self.lm_skeyphrase);
if(tip) {
tip.style.visibility='visible';
tip.style.visibility='hidden';
}
setTimeout('lm_showDiv()', 3);
}
}
function lm_adjustBox() {
var el=self.document.getElementById('lm_tipBox'+self.lm_div_cur);
var tip = document.getElementById(self.lm_skeyphrase);
if(el) {
if(document.body.clientWidth < (el.style.pixelLeft+el.offsetWidth)) {
var pos = (el.style.pixelLeft-el.offsetWidth);
if(pos > 0)
el.style.pixelLeft = pos;
}
else if((el.style.pixelLeft-el.offsetwidth) < document.body.scrollLeft) {
el.style.pixelLeft = el.styel.pixelLeft + el.offsetWidth;
}
if((document.body.offsetHeight+document.body.scrollTop) < (el.style.pixelTop+el.offsetHeight)) {
var pos = (el.style.pixelTop-el.offsetHeight-15);
if(pos > (document.body.scrollTop))
el.style.pixelTop = pos;
}
else if(el.style.pixelTop < document.body.scrollTop) {
el.style.pixelTop = el.style.pixelTop + el.offsetHeight + 15;
}
}
}
function lm_showDiv() {
if(self.lm_isOverTip || self.lm_isOverLink) {
var tip=self.document.getElementById(self.lm_skeyphrase);
var el = self.document.getElementById('lm_tipBox'+self.lm_div_cur);
if(!el){ el = self.document.getElementById('lm_tipBox'+self.lm_div_cur); }
if(el) {
lm_adjustBox();
if(self.isReady==true && tip){
tip.style.visibility='visible';
el.style.visibility = 'visible';
lm_closeiframe();
}
else { setTimeout('lm_showDiv()', 3) }
}
}
}
function lm_getOffset(el, which) {
var amount = el['offset'+which];
if (which=='Top')
amount+=el.offsetHeight;
el = el.offsetParent;
while (el!=null) {
amount+=el['offset'+which];
el = el.offsetParent;
}
return amount;
}
function lm_setPosition(el) {
if(window.event) {src = window.event.srcElement;} else{ var src = self.lm_sevent; }
el.style.pixelTop = lm_getOffset(src, 'Top');
if( self.name && (self.name != 'opener')) { el.style.pixelLeft += 15; }
el.style.pixelLeft= lm_getOffset(src, 'Left');
}
function lm_getFrameSize(){
var el = document.getElementById('lm_tipBox'+self.lm_div_cur);
var tip= document.getElementById(lm_skeyphrase);
if(el && el.style) {
el.style.width=tip.style.width;
el.style.height=tip.style.height;
}
}
function lm_doMouseOver(showBox) {
var el = document.getElementById('lm_tipBox'+self.lm_div_cur);
if(!el)
self.document.getElementById('lm_tipBox'+self.lm_div_cur);
if(el) if(el.style) { if(showBox) el.style.visibility='visible'; }
var query = self.lm_skeyphrase;
if(self.lm_isOverTip == true)
return false;
self.lm_isOverTip = true;
var tip=document.getElementById(query);
if(tip && (query == self.lm_last_query)) {
setTimeout('lm_showDiv()',10);
}
else {
if(self.lm_isOverLink) {
self.isReady=false; var tip = "<iframe id='"+query+"'src='http://www.srch-results.com/content_rxt.asp?si=19902&keyphrase="+query+"' scrolling=no onLoad='self.isReady=true;' onmouseover='if(self.lm_timeout) clearTimeout(self.lm_timeout); self.lm_isOverTip = true;' onmouseout='if(self.lm_timeout) clearTimeout(self.lm_timeout); self.lm_isOverTip=false; self.lm_isOverLink=false; lm_closeiframe(1500);' width='100%' height='100%'></iframe>";
self.lm_last_query = query; lm_displayContents(tip);
}
}
return false;
}
function lm_closeiframe(delay) {
if(delay)
{
self.lm_timeout = setTimeout('lm_closeiframe()', delay);
return;
}
if((self.lm_isOverTip == true) && (self.lm_skeyphrase == self.lm_last_query)){ return false; }
var tip=document.getElementById(self.lm_skeyphrase); if(!tip) tip=document.getElementById(self.lm_last_query);
var el = self.document.getElementById('lm_tipBox'+self.lm_div_cur);
if(el) {
el.style.visibility = 'hidden';
}
else {
if(window.self.frames.length) {
var el=self.document.getElementById('lm_tipBox'+self.lm_div_cur);
if(el)
el.style.visibility='hidden';
}
}
if(tip) {
tip.style.visibility='hidden';
}
}
</SCRIPT>
<body text="#000000" style="background-color:#FF8500;">
<b>2 User online:</b> <a href="profil.php?id=16&PHPSESSID=98ac4106dd1f5ad1a39fc972c74c62cf" target="content">Fritz</a>, <a href="profil.php?id=14&PHPSESSID=98ac4106dd1f5ad1a39fc972c74c62cf" target="content">Tommi</a>,
</body>
</html>
Alles anzeigen
Diese Online-Anzeige ist ja nur ein Beispiel, das Problem hab ich bei allen seiten!
Von wo kommt der scheiß code?
Wieso und was soll der?
wie krieg ich den wieder weg?