Rahmen

JS$IFRAME (JS)



/* Copyright Jürgen Reule 2018-2023 */
   
function chat(src) { var d,f,b,s;
   
     if (document.getElementById
     &&  document.getElementById('chatx')) {
     d = document.getElementById('chatx');
         document.body.removeChild(d);
         window.clearTimeout(chat2x);
         window.clearTimeout(chat3x);
   
     var epoch = 'Thu, 01 Jan 1970 00:00:00 GMT';
         document.cookie = 'chatx=; Expires='+epoch+'; Path=/';
   
     if (navigator.userAgent.indexOf('OS 4_') >= 0) {
         window.clearTimeout(chat4x);
         window.onscroll = chatscrollx;
   
     }} else {
   
     if (document.createElement) {
     d = document.createElement('div');
     f = document.createElement('iframe');
   
     b = 'rgba(0,0,0,0.2)';
     s = '0px 4px 32px rgb(0,0,0)';
   
     d.id = 'chatx';
     d.style.left = '8px';
     d.style.bottom = '8px';
     d.style.border = '0px';
     d.style.margin = '0px';
     d.style.padding = '0px';
     d.style.width = '372px';
     d.style.height = '384px';
     d.style.zIndex = '32767';
     d.style.position = 'fixed';
     d.style.overflowY = 'auto';
     d.style.backgroundColor = b;
     d.style.webkitOverflowScrolling = 'touch';
     d.style.webkitBoxShadow = s;
     d.style.mozBoxShadow = s;
     d.style.boxShadow = s;
   
     f.id = 'chat1x';
     f.src = src;
     f.width = 372;
     f.height = 384;
     f.frameBorder = 0;
     f.style.display = 'block';
   
                 d.appendChild(f);
     document.body.appendChild(d);
   
     document.cookie = 'chatx=1; Path=/';
   
     chat2x = window.setTimeout('chat2()', 1000);
     chat3x = window.setTimeout('chat3()', 1500);
   
     if (navigator.userAgent.indexOf('OS 4_') >= 0) {
         chatscrollx = window.onscroll; chat4();
                       window.onscroll = chatscroll;
}}}}
function chat2() { var f,h,s,t;
   
     if (document.getElementById
     &&  document.getElementById('chat1x')) {
     f = document.getElementById('chat1x');
   
     h = f.height; s = h - 384; if (s > 100) s = 100;
         f.height -= s; f.height = f.offsetHeight; t = 1000;
   
     if (h != f.height) { t = 10;
              window.clearTimeout(chat3x);
     chat3x = window.setTimeout('chat3()', 100); }
     chat2x = window.setTimeout('chat2()', t);
}}
function chat3() {
   
     if (document.getElementById
     &&  document.getElementById('chatx')) {
         document.getElementById('chatx').scrollTop = 32767;
   
         chat3x = window.setTimeout('chat3()', 20000);
}}
function chat4() {
   
     if (document.getElementById
     &&  document.getElementById('chatx')) {
         document.getElementById('chatx').style.bottom =
    (8 - document.body.scrollTop) + 'px';
   
     chat4x = window.setTimeout('chat4()', 1000);
}}
function chatscroll(e) {
     if (chatscrollx) chatscrollx(e);
   
              window.clearTimeout(chat4x);
     chat4x = window.setTimeout('chat4()', 1);
}
   
/*
javascript:
chatscript = document.createElement('script');
chatscript.onload = function () {
            chat('//www'+'.aibobar.de/chat.html?schmal=1') };
chatscript.src = '//www'+'.aibobar.de/objekt/iframe.js';
document.body.appendChild(chatscript); void(0);
*/

86 ms | Kontakt | Information | Aibo-Bar © 2005-2024