title image


Smiley Code in meiner Seite im FTp Verzeichniss, nicht von mir
ich hab mir eben eine meiner Seiten von meinem FTP Verzeichniss runtergezogen, um mir dort nochmal ein paar Codezeilen anzusehen und dann seh ich das, das ist nicht von mir, ich kann das gar nicht. Von mir stammen simple Anweisungen.

Ich wäre froh wenn mir jemand von euch sagen kann was dieser Code macht, was das bedeutet.

Es gibt da eine

"lm_tipBox2"

und die wird auf hidden gesetzt











div.lm_tipBox{

position:absolute;

width:400px;

height: 244px;

z-index: 10000000;

border: 1pt black solid;

background: #ffffff;

visibility: hidden;

}









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 = "";

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';

}

}



geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: