Computerhilfen.de Logo
Forum
Tipps
News
Frage stellen

Javascript - function xXx()

hallo,
ich versuche nun schon mehr als 2 Stunden,
eine Variable erst nach einem click auf einen Button oder Textlink zu Übergeben. Vergebend.....
Deswegen bin ich nun hier  8)!

* Kurz dazu gesagt ich mache das nicht Proffesionel, sondern einfach mehr nur zum "Zeitvertreib"*

hier der Code:

<head>
<meta http-equiv="Content-Language" content="de">
</head>

<script type="text/javascript">
var popWidth = 800;
var popHeight = 500;
// the [url=http://www.computerhilfen.de/fachbegriffe-u-URL.html][b]url[/b][/url] for frame
var adUrl = 'http://google.de/adurl';
// [url=http://www.computerhilfen.de/fachbegriffe-u-URL.html][b]url[/b][/url] for click
var clickUrl = '';
var titleUrl = '';
// title to [url=http://www.computerhilfen.de/fachbegriffe-d-Display.html][b]display[/b][/url] in upper bar
var adTitle = ''
// script init time
var initTime = 1000;
// maximum wait time for iframe load before animation start
var theTime = 7000;
var animStarted = 0;
var jTimeout = null;
var jImageHost = '';
//var jImageHost = 'http://xy.de/';
// diplay fading animation
var fadingAnim = true;
// [url=http://www.computerhilfen.de/fachbegriffe-d-Display.html][b]display[/b][/url] resizing animation
var resizingAnim = true;
// [url=http://www.computerhilfen.de/fachbegriffe-d-Display.html][b]display[/b][/url] upper [url=http://www.computerhilfen.de/fachbegriffe-h-Header.html][b]header[/b][/url] animation
var headerAnim = false;
// start headerAnim after time:
var headerAnimTime = 4000;
// [url=http://www.computerhilfen.de/fachbegriffe-d-Display.html][b]display[/b][/url] upper bottom animation
var bottomAnim = false;
// open pop mode
// 0 - open in background,
// 1 - open in foreground
var popMode = 0;
var popModeTxt = 'background';
var JPopImages = new Array();
       JPopImages['up_left'] = new Image();
       JPopImages['up_left'].src = '';
       JPopImages['up_middle'] = new Image();
       JPopImages['up_middle'].src = '';
       JPopImages['up_right'] = new Image();
       JPopImages['up_right'].src = '';
       JPopImages['down_left'] = new Image();
       JPopImages['down_left'].src = '';
       JPopImages['down_right'] = new Image();
       JPopImages['down_right'].src = '';
       JPopImages['icon_close'] = new Image();
       JPopImages['icon_close'].src = '';
       JPopImages['icon_open'] = new Image();
       JPopImages['icon_open'].src = '';
       JPopImages['icon_star'] = new Image();
       JPopImages['icon_star'].src = '';
       JPopImages['icon_star_hov'] = new Image();
       JPopImages['icon_star_hov'].src = '';
       JPopImages['icon_close_hov'] = new Image();
       JPopImages['icon_close_hov'].src = '';
       JPopImages['icon_open_hov'] = new Image();
       JPopImages['icon_open_hov'].src = '';
       JPopImages['icon_close_2'] = new Image();
       JPopImages['icon_close_2'].src = '';
       JPopImages['icon_open_2'] = new Image();
       JPopImages['icon_open_2'].src = '';
       JPopImages['icon_star_2'] = new Image();
       JPopImages['icon_star_2'].src = '';
       JPopImages['blank'] = new Image();
       JPopImages['blank'].src = '';
       
function getPageScroll(){
       var yScroll;
       if (self.pageYOffset) {
               yScroll = self.pageYOffset;
       } else if (document.documentElement && document.documentElement.scrollTop){
               yScroll = document.documentElement.scrollTop;
       } else if (document.body) {
               yScroll = document.body.scrollTop;
       }
       return yScroll;
}
function getPageSize(){
       var xScroll, yScroll;
       if (window.innerHeight && window.scrollMaxY) {
               xScroll = document.body.scrollWidth;
               yScroll = window.innerHeight + window.scrollMaxY;
       } else if (document.body.scrollHeight > document.body.offsetHeight){
               xScroll = document.body.scrollWidth;
               yScroll = document.body.scrollHeight;
       } else {
               xScroll = document.body.offsetWidth;
               yScroll = document.body.offsetHeight;
       }
       var windowWidth, windowHeight;
       if (self.innerHeight) {
               windowWidth = self.innerWidth;
               windowHeight = self.innerHeight;
       } else if (document.documentElement && document.documentElement.clientHeight) {
               windowWidth = document.documentElement.clientWidth;
               windowHeight = document.documentElement.clientHeight;
       } else if (document.body) {             windowWidth = document.body.clientWidth;
               windowHeight = document.body.clientHeight;
       }
       if(yScroll < windowHeight){
               pageHeight = windowHeight;
       } else {
               pageHeight = yScroll;
       }
       if(xScroll < windowWidth){
               pageWidth = windowWidth;
       } else {
               pageWidth = xScroll;
       }
       arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight)
       return arrayPageSize;
}
// end
//
//
//
var Class = {
       create: function() {
               return function() {
                       this.initialize.apply(this, arguments);
               }
       }
};
Object.extend = function(destination, source) {
       for (var property in source) destination[property] = source[property];
       return destination;
};
Function.prototype.bind = function(object) {
       var __method = this;
       return function() {
               return __method.apply(object, arguments);
       }
};
String.prototype.camelize = function(){
       return this.replace(/-\D/gi, function(match){
               return match.charAt(match.length - 1).toUpperCase();
       });
};
function $() {
       if (arguments.length == 1) return get$(arguments[0]);
       var elements = [];
       $c(arguments).each(function(el){
               elements.push(get$(el));
       });
       return elements;
       function get$(el){
               if (typeof el == 'string') el = document.getElementById(el);
               return el;
       }
};
if (!window.Element) var Element = {};
// end
//
//
var Fx = fx = {};
Fx.Base = function(){};
Fx.Base.prototype = {
       setOptions: function(options){
               this.options = Object.extend({
                       onStart: function(){},
                       onComplete: function(){},
                       transition: Fx.Transitions.sineInOut,
                       duration: 500,
                       unit: 'px',
                       wait: true,
                       fps: 50
               }, options || {});
       },
       step: function(){
               var time = new Date().getTime();
               if (time < this.time + this.options.duration){
                       this.cTime = time - this.time;
                       this.setNow();
               } else {
                       setTimeout(this.options.onComplete.bind(this, this.element), 10);
                       this.clearTimer();
                       this.now = this.to;
               }
               this.increase();
       },
       setNow: function(){
               this.now = this.compute(this.from, this.to);
       },
       compute: function(from, to){
               var change = to - from;
               return this.options.transition(this.cTime, from, change,this.options.duration);
       },
       clearTimer: function(){
               clearInterval(this.timer);
               this.timer = null;
               return this;
       },
       _start: function(from, to){
               if (!this.options.wait) this.clearTimer();
               if (this.timer) return;
               setTimeout(this.options.onStart.bind(this, this.element), 10);
               this.from = from;
               this.to = to;
               this.time = new Date().getTime();
               this.timer = setInterval(this.step.bind(this),Math.round(1000/this.options.fps));
               return this;
       },
       custom: function(from, to){
               return this._start(from, to);
       },
       set: function(to){
               this.now = to;
               this.increase();
               return this;
       },
       hide: function(){
               return this.set(0);
       },
       setStyle: function(e, p, v){
               if (p == 'opacity'){
                       if (v == 0 && e.style.visibility != "hidden") e.style.visibility = "hidden";
                       else if (e.style.visibility != "visible") e.style.visibility = "visible";
                       if (window.ActiveXObject) e.style.filter = "alpha(opacity=" + v*100 + ")";
                       e.style.MozOpacity = v;
                       e.style.opacity = v;
               } else e.style[p] = v+this.options.unit;
       }
};
Fx.Style = Class.create();
Fx.Style.prototype = Object.extend(new Fx.Base(), {
       initialize: function(el, property, options){
               this.element = $(el);
               this.setOptions(options);
               this.property = property.camelize();
       },
       increase: function(){
               this.setStyle(this.element, this.property, this.now);
       }
});
Fx.Styles = Class.create();
Fx.Styles.prototype = Object.extend(new Fx.Base(), {
       initialize: function(el, options){
               this.element = $(el);
               this.setOptions(options);
               this.now = {};
       },
       setNow: function(){
               for (p in this.from) this.now[p] = this.compute(this.from[p], this.to[p]);
       },
       custom: function(obj){
               if (this.timer && this.options.wait) return;
               var from = {};
               var to = {};
               for (p in obj){
                       from[p] = obj[p][0];
                       to[p] = obj[p][1];
               }
               return this._start(from, to);
       },
       increase: function(){
               for (var p in this.now) this.setStyle(this.element, p, this.now[p]);
       }
});
//
//
Fx.Transitions = {
       linear: function(t, b, c, d) { return c*t/d + b; },
       sineInOut: function(t, b, c, d) { return -c/2 *(Math.cos(Math.PI*t/d) - 1) + b; },
       quadOut: function(t, b, c, d){ return -c *(t/=d)*(t-2) + b;     },
       quintOut: function(t, b, c, d){ return c*((t=t/d-1)*t*t*t*t + 1) + b; }
};
// end

Antworten zu Javascript - function xXx():

// detect if [url=http://www.computerhilfen.de/fachbegriffe-b-Browser.html][b]browser[/b][/url] is ie, but not ie7
var is_msie6 = false;
var is_msie = false
var detect = navigator.userAgent.toLowerCase();
var place = detect.indexOf('msie') + 1;
if(place){
  is_msie=true;
       if( parseInt(detect.charAt(place + 4)) < 7 ) is_msie6=true;
       else if(parseInt(detect.charAt(place + 4)) == 7){
                       if(document.compatMode && document.compatMode == "BackCompat") var is_7quirk=true;
       }
}
var JPop = new Class.create();
JPop.prototype = {
       initialize: function() {
               var jPageSizes = new Array();
                       jPageSizes = getPageSize();
               var oPageBody = document.getElementsByTagName('BODY')[0];
               // create contatiner element
               var oJPopContainter = document.createElement('div');
                       oJPopContainter.setAttribute('id','JPopContainter');
                       oJPopContainter.style.display = 'none';
                       oJPopContainter.style.zIndex = '500';
                       oJPopContainter.style.width = '100%';
                       oJPopContainter.style.height = jPageSizes[1]+'px';
                       oJPopContainter.style.position = 'fixed';
                       oJPopContainter.style.left = '0';
                       oJPopContainter.style.top = '0';
                       if(is_msie6 || is_7quirk){
                               oJPopContainter.style.position = 'absolute';
                               oJPopContainter.style.top = '0';
                               window.onscroll = function(){
                                       myTimeout = window.setTimeout('myJPop.updatePosition();',300);
                               }
                       }
                       oJPopContainter.style.textAlign = 'center';
                       // connect it to body
if(is_msie){
$('jPopFakeBody').appendChild(oJPopContainter);
}else{
                       oPageBody.appendChild(oJPopContainter);
}
               // create background overlay
               var oJPopBackground = document.createElement('div');
                       oJPopBackground.setAttribute('id','JPopBackground');
                       oJPopBackground.style.backgroundColor = '#000';
                       oJPopBackground.style.MozOpacity = '0.01';
                       oJPopBackground.style.opacity = '0.01';
                       oJPopBackground.style.filter = 'alpha(opacity=01)';
                       oJPopBackground.style.position = 'absolute';
                       oJPopBackground.style.left = '0';
                       oJPopBackground.style.top = '0';
                       oJPopBackground.style.width = '100%';
                       oJPopBackground.style.height = jPageSizes[1]+'px';
                       // connect it to parent
                       oJPopContainter.appendChild(oJPopBackground);
               // create window container
               var oJPopWindow = document.createElement('div');
                       oJPopWindow.setAttribute('id','JPopWindow');
                       oJPopWindow.style.backgroundColor = '#fff';
                       oJPopWindow.style.position = 'relative';
                       oJPopWindow.style.width = '10px';
                       oJPopWindow.style.height = '50px';
                       oJPopWindow.style.margin = '0 auto';
                       oJPopWindow.style.top =  '40px';
                       // connect it to parent
                       oJPopContainter.appendChild(oJPopWindow);
               // create upper bar
               var oJPopUpper = document.createElement('div');
                       oJPopUpper.setAttribute('id','JPopUpper');
                       oJPopUpper.style.height = '32px';
                       oJPopUpper.style.background = '';
                       oJPopUpper.style.textAlign = 'left';
                       oJPopUpper.style.display = 'none';
                       // connect it to parent
                       oJPopWindow.appendChild(oJPopUpper);
               var oJPopUpperTitle = document.createElement('span');
                       oJPopUpperTitle.setAttribute('id','JPopUpperTitle');
                       oJPopUpperTitle.style.height = '32px';
                       oJPopUpperTitle.style.background = '';
                       oJPopUpperTitle.style.padding = '0px 0 0 39px';
                       oJPopUpperTitle.style.display = 'block';
                       oJPopUpperTitle.style.cssFloat = 'left';
                       oJPopUpperTitle.style.styleFloat = 'left';
oJPopUpperTitle.style.lineHeight = '30px';
                       oJPopUpperTitle.style.cursor = 'pointer';
                       oJPopUpperTitle.onclick = function(){
                                myJPop.openPop(titleUrl,1);
                                myJPop.remove();
                                return false;
                       };
                       if(is_msie6){
                        oJPopUpperTitle.style.background = 'none';
                        oJPopUpperTitle.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader('')";
                       }
                       // connect it to parent
                       oJPopUpper.appendChild(oJPopUpperTitle);
// create text span with title
var oJPopUpperTitleText = document.createElement('a');
oJPopUpperTitleText.setAttribute('id','JPopUpperTitleText');
oJPopUpperTitleText.setAttribute('href',clickUrl);
oJPopUpperTitleText.href = clickUrl;
oJPopUpperTitleText.style.fontSize = '11px';
oJPopUpperTitleText.style.fontWeight = '900';
oJPopUpperTitleText.style.color = '#3a587b';
oJPopUpperTitleText.style.textDecoration = 'none';
oJPopUpperTitleText.style.fontFamily = 'Tahoma,Arial,sans-serif';

oJPopUpperTitleText.appendChild(document.createTextNode(adTitle));

// connect it to parent
oJPopUpperTitle.appendChild(oJPopUpperTitleText);
               var oJPopUpperTitleSlide = document.createElement('span');
                       oJPopUpperTitleSlide.style.background = '';
                       oJPopUpperTitleSlide.style.width='62px';
                       oJPopUpperTitleSlide.style.height = '32px';
                       oJPopUpperTitleSlide.style.cssFloat = 'left';
                       oJPopUpperTitleSlide.style.display = 'block';
                       if(is_msie6 || is_7quirk){
                               oJPopUpperTitleSlide.style.background = 'none';
                               oJPopUpperTitleSlide.style.styleFloat = 'left';
                               oJPopUpperTitleSlide.style.src = JPopImages['blank'];
                               oJPopUpperTitleSlide.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader('')";
                       }
                       oJPopUpper.appendChild(oJPopUpperTitleSlide);


               // create iframe for contents
               var oJPopFrame = document.createElement('IFRAME');
                       oJPopFrame.setAttribute('id','JPopFrame');
                       oJPopFrame.setAttribute('name','JPopFrameName');
                       oJPopFrame.setAttribute('src',adUrl);
                       oJPopFrame.style.width = '100%';
                       oJPopFrame.style.height = popHeight -82+'px';
                       oJPopFrame.style.border = 'none';
                       if(is_msie6 || is_7quirk){
                               oJPopFrame.style.display = 'none';
                       }
                       oJPopFrame.style.visibility = 'hidden';
                       oJPopFrame.style.backgroundColor = '#fff';
                       //attach popup onload event to iframe
                       this.iframeOnLoad(oJPopFrame,this);
                       // connect it to parent
                       oJPopWindow.appendChild(oJPopFrame);
               // create bottom bar
               var oJPopBottom = document.createElement('div');
                       oJPopBottom.setAttribute('id','JPopBottom');
                       oJPopBottom.style.height = '52px';
                       oJPopBottom.style.background = '';
                       oJPopBottom.style.borderTop = '1px solid #fff';
                       oJPopBottom.style.position = 'relative';
                       oJPopBottom.style.textAlign = 'left';
                       oJPopBottom.style.display = 'none';
                       // connect it to parent
                       oJPopWindow.appendChild(oJPopBottom);
return false;


                               var oJPopBottomTextStar = document.createElement('div');
                                       oJPopBottomTextStar.setAttribute('id','JPopBottomTextStar');
                                       oJPopBottomTextStar.style.display = 'none';
                                       oJPopBottomTextStar.style.fontSize = '11px';
                                       oJPopBottomTextStar.style.fontWeight = '900';
                                       oJPopBottomTextStar.style.color = '#888';
                                       oJPopBottomTextStar.style.position = 'absolute';
                                       oJPopBottomTextStar.style.left = '310px';
                                       oJPopBottomTextStar.style.top = '5px';
                                       oJPopBottomTextStar.style.verticalAlign = 'middle';

                               var oJPopBottomTextClose = document.createElement('div');
                                       oJPopBottomTextClose.setAttribute('id','JPopBottomTextClose');
                                       oJPopBottomTextClose.style.display = 'none';
                                       oJPopBottomTextClose.style.fontSize = '11px';
                                       oJPopBottomTextClose.style.fontWeight = '900';
                                       oJPopBottomTextClose.style.color = '#888';
                                       oJPopBottomTextClose.style.position = 'absolute';
                                       oJPopBottomTextClose.style.left = '310px';
                                       oJPopBottomTextClose.style.top = '5px';
                                       oJPopBottomTextClose.style.verticalAlign = 'middle';
                               var oJPopBottomTextOpen = document.createElement('div');
                                       oJPopBottomTextOpen.setAttribute('id','JPopBottomTextOpen');
                                       oJPopBottomTextOpen.style.display = 'none';
                                       oJPopBottomTextOpen.style.fontSize = '11px';
                                       oJPopBottomTextOpen.style.fontWeight = '900';
                                       oJPopBottomTextOpen.style.color = '#888';
                                       oJPopBottomTextOpen.style.position = 'absolute';
                                       oJPopBottomTextOpen.style.left = '310px';
                                       oJPopBottomTextOpen.style.top = '5px';
                                       oJPopBottomTextOpen.style.verticalAlign = 'middle';
                                       oJPopBottom.appendChild(oJPopBottomTextStar);
                                       oJPopBottom.appendChild(oJPopBottomTextClose);
                                       oJPopBottom.appendChild(oJPopBottomTextOpen);
       },
[Code/]
       appear: function() {
               if(animStarted == 0){
               animStarted = 1;
               window.clearTimeout(jTimeout);
               myJPop.togglePageElements(1);
               $('JPopContainter').style.display = 'block';
               var fxHor = new Fx.Style('JPopWindow','width',{
                                          duration:1200,
                                          transition: Fx.Transitions.quadOut,
                                          onComplete: function(){fxVert.custom(50, popHeight);}
                                        });
               var fxVert = new Fx.Style('JPopWindow','height',{
                                                duration:1200,
                                                transition: Fx.Transitions.quadOut,
                                                onComplete: function(){myJPop.showPopElements();}
                                        });
               var myFx = new Fx.Style('JPopBackground','opacity',{
                                          duration:1500,
                                                onComplete: function(){                                                                               
if(resizingAnim){
                                                    $('JPopWindow').style.display = 'block';
                                                        fxHor.custom(10,popWidth);
                                                      }
                                                      else{
                                                       $('JPopWindow').style.width = popWidth +'px';
                                                       $('JPopWindow').style.height = popHeight +'px';
                                                       myJPop.showPopElements();
                                                       $('JPopWindow').style.display = 'block';
                                                      }
                                                }
                                         });
               $('JPopWindow').style.display = 'none';
               if(fadingAnim && resizingAnim){
                       myFx.custom(0.01,0.75);
               }
               else if(fadingAnim){
                       myFx.custom(0.01,0.75);
               }
               else if(resizingAnim){
                       $('JPopBackground').style.MozOpacity = 0.75;
                       $('JPopBackground').style.opacity = 0.75;
                       if (window.ActiveXObject) $('JPopBackground').style.filter = "alpha(opacity=75)";
                       $('JPopWindow').style.display = 'block';
                       fxHor.custom(10,popWidth);
               }
               else{
                       $('JPopWindow').style.display = 'block';
                       $('JPopBackground').style.MozOpacity = 0.75;
                       $('JPopBackground').style.opacity = 0.75;
                       if (window.ActiveXObject) $('JPopBackground').style.filter = "alpha(opacity=75)";
                       $('JPopWindow').style.width = popWidth +'px';
                       $('JPopWindow').style.height = popHeight +'px';
                       myJPop.showPopElements();
                       $('JPopWindow').style.display = 'block';
               }
               }
       },
       updatePosition: function(){
               $('JPopWindow').style.top = getPageScroll()+40+'px';
       },
       togglePageElements: function(dir){
               var oFlash = document.getElementsByTagName('OBJECT');
               var oEmbed = document.getElementsByTagName('EMBED');
               var oSelect = document.getElementsByTagName('SELECT');
               var vis = 'hidden';
               dir ? vis = 'hidden' : vis = 'visible';
               for(var i=0;i<oFlash.length;i++){oFlash[i].style.visibility = vis;}
               for(var i=0;i<oEmbed.length;i++){oEmbed[i].style.visibility = vis;}
               for(var i=0;i<oSelect.length;i++){oSelect[i].style.visibility = vis;}
               var oPageBody = document.getElementsByTagName('BODY')[0];
               oPageBody.style.margin = '0';
       },
       showPopElements: function(){
               $('JPopFrame').style.display = 'block';
               if(headerAnim && bottomAnim){
                       $('JPopUpper').style.display = 'block';
                       $('JPopUpper').style.visibility = 'hidden';
                       $('JPopIconStar').style.visibility = 'hidden';
                       $('JPopIconOpen').style.visibility = 'hidden';
                       $('JPopIconClose').style.visibility = 'hidden';
                       $('JPopBottom').style.display = 'block';
                       $('JPopBottom').style.visibility = 'hidden';
                       window.setTimeout("myJPop.slideHeader()",headerAnimTime);
                       window.setTimeout("myJPop.slideBottom()",headerAnimTime);
               }
               else if(headerAnim){
                       $('JPopUpper').style.display = 'block';
                       $('JPopUpper').style.visibility = 'hidden';
                       $('JPopIconStar').style.visibility = 'hidden';
                       $('JPopIconOpen').style.visibility = 'hidden';
                       $('JPopIconClose').style.visibility = 'hidden';
                       $('JPopBottom').style.display = 'block';
                       window.setTimeout("myJPop.slideHeader()",headerAnimTime);
               }
               else{
                       $('JPopUpper').style.display = 'block';
                       $('JPopBottom').style.display = 'block';
               }
               $('JPopFrame').style.visibility = 'visible';
               $('JPopWindow').style.backgroundColor = 'transparent';
       },
       slideHeader: function(){
               if (window.ActiveXObject) $('JPopUpper').style.filter = 'alpha(opacity=5)';
               $('JPopUpper').style.MozOpacity = 0.05;
               $('JPopUpper').style.opacity = 0.05;
               var fxHeader = new Fx.Style('JPopUpper','opacity',{
                                                               duration:1000,
                                                               onComplete: function(){
                                                                       $('JPopIconStar').style.visibility = 'visible';
                                                                       $('JPopIconOpen').style.visibility = 'visible';
                                                                       $('JPopIconClose').style.visibility = 'visible';
                                                               }
                                               });
               fxHeader.custom(0.05,0.99);
       },
       slideBottom: function(){
               if (window.ActiveXObject){
                                       $('JPopBottom').style.filter = 'alpha(opacity=5)';
               }
               $('JPopBottom').style.MozOpacity = 0.05;
               $('JPopBottom').style.opacity = 0.05;
               var fxBottom = new Fx.Style('JPopBottom','opacity',{
                                                               duration:1000
                                               });
               fxBottom.custom(0.5,0.99);
       },
       openPop: function(uri,mode){
               // mode:
               // 0 - open in background,
               // 1 - open in foreground
               WOR = window.open(uri,"adWindow","");
               if(mode==0){
                       self.focus();
                       window.focus();
               }
       },
       addBookmark: function(title,url) {
               if (window.sidebar) {
                       window.sidebar.addPanel(title, url,"");
               } else if( document.all ) {
                       window.external.AddFavorite(url,title);
               } else if( window.opera && window.print ) {
                       return true;
               }
       },
       remove: function() {
if(is_msie){
$('jPopFakeBody').removeChild($('JPopContainter'));
}else{
var pageBodyObj = document.getElementsByTagName('BODY')[0];
                pageBodyObj.removeChild($('JPopContainter'));
}
               myJPop.togglePageElements(0);
               if(is_msie6 || is_7quirk){
                       window.onscroll = function(){}
               }
       },
       iframeOnLoad: function(oJPopFrame,thisPop){
                       if (oJPopFrame.addEventListener) {
                               oJPopFrame.addEventListener ("load",thisPop.appear,false);
                       } else if (oJPopFrame.attachEvent) {
                               oJPopFrame.attachEvent ("onload",thisPop.appear);
                       } else {
                               oJPopFrame.onload = myJPop.appear();
                       }
       }
}
function initJPop(){
       if(window.opera){
               if(navigator.appVersion.charAt(0) < 9){
                       return;
               }
               else if(window.opera && navigator.userAgent.indexOf('Opera') &&
(navigator.userAgent.charAt(61) < 9)){
                       return;
               }
       }
       myJPop = new JPop();
       myJPop.iframeOnLoad($('JPopFrame'),myJPop);
       jTimeout = window.setTimeout('myJPop.appear();',theTime);
   window.clearTimeout(testTimer);

}
if(is_msie){
document.write('<div id="jPopFakeBody"></div>');
}
var testTimer = window.setTimeout('initJPop()',initTime);
</script>

<p><a href="Javascript:TEST">Do</a></p>
<bod</>

[Code/]

Und Das Ist die Variable die ich gern nach einem Buttonclick "einfügen" möchte

Zitat
var testTimer = window.setTimeout('initJPop()',initTime);

Ich hoffe ihr könnt mir helfen....

Danke schon mal im Vorraus!
Peter

oder Einfacher:
habe den "Code" Hochgeladen!

http://home.arcor.de/web_stuff/TEST.htm.TxT

Hat dir diese Antwort geholfen?

Danke ButtonHilfreiche Antwort Button

Hi |

Ich kann das durchaus nachvollziehen, wenn man Hilfe sucht. Aber du wirst diese hier nicht finden, wenn du uns mit vollkommen irrsinnigen Mengen an Code bombardierst, zumal die Lösung sicher in max. 10 Zeilen zu finden ist.

Also ein Tipp: Reduziere den Code auf den Teil, in dem der Fehler deiner Ansicht nach stecken muss, oder lass einfach irrelevante Passagen weg. Dann schaut sich das vielleicht auch jemand an.

greez 8)
JoSsiF


« Fotoalbum für HTML-Seite erstennen - wie am besten?Suche Sponsor »
 

Schnelle Hilfe: Hier nach ähnlichen Fragen und passenden Tipps suchen!

Fremdwörter? Erklärungen im Lexikon!
Quellcode
Ein Quellcode, auch als Quelltext bekannt, bezeichnet den unkompilierten Programm-Code einer Software. Quell- oder Programm-Code ist der auch für Menschen lesbare Co...

Unicode
Unicode ist ein international anerkannter Standard, der als universeller Zeichencode ("Universal Code") dient und durch das Unicode-Konsortium entwickelt und verwaltet wi...

QR-Code
QR-Codes, die Abkürzung für "Quick Response Codes", sind eine Form von zweidimensionalen Barcodes. Damit lassen sich Informationen schnell und effizient speiche...