Probleme page accueil ligne 208
gloriano57
Messages postés
262
Statut
Membre
-
tangi -
tangi -
Salut à vous tous du forum quelqu’un pourrait m’aider j’ai une erreur dans ma page accueil voilà ce qu’il y a écrit dans la fenêtre :
Ligne 208 Erreur :-‘ sereenplayer. Temp FaddingNode. Firstchild à la valeur Nul ou n’est pas un objet
J’ai fait un debogage mais je n’arrive pas aller plus loin merci de bien vouloir m’aider ( tres legé en informatique)
var __TIMEOUT_FOR_NEXT_SEQUENCE = 15; var __FIXED_ORDER = false; var __TOP_BORDER_SIZE = 14; var __Id = 0; var toto = false; function Image_resize() { if (this.parentNode == null) return; this.style.display = "block"; if (isKonqueror) { if (! toto) { var node = document.createElement("IMG"); node.src = this.src; node.resize = this.resize; node.sequence = this.sequence; node.sequence.imageNode = node; node.noBorder = node.attributes["noBorder"] = true; this.parentNode.appendChild( node ); this.parentNode.removeChild( this ); toto = true; } this.sequence.divNode.style.top = 99; this.sequence.divNode.style.width = this.width; this.sequence.divNode.style.height = this.height; return; } try { if (document.all) this.height = this.width * 0.4861111; var styleDivNode = this.previousSibling.style; var alphaLayerInfos = this.sequence.alphaLayer; var styleAlphaLayerNode = this.sequence.alphaLayerNode.style; var styleLeftButtonNode = this.sequence.leftButtonNode.style; var styleRightButtonNode = this.sequence.rightButtonNode.style; if ( document.all ) { styleDivNode.pixelTop = this.offsetTop - __TOP_BORDER_SIZE; styleDivNode.pixelLeft = this.offsetLeft; if (getIEAppVersionNumber() <= 5) { if (styleDivNode.pixelLeft*1 == 0) { styleDivNode.pixelLeft = -1000; window.setTimeout("window.onresize();", 10); } } styleAlphaLayerNode.pixelLeft = this.width/100 * alphaLayerInfos.leftPercent; styleAlphaLayerNode.pixelTop = this.height/100 * alphaLayerInfos.topPercent; if (this.sequence.screenPlayer.sequences.length > 1) { styleLeftButtonNode.pixelTop = this.height + __TOP_BORDER_SIZE - 30; styleRightButtonNode.pixelTop = this.height + __TOP_BORDER_SIZE - 30; styleLeftButtonNode.pixelLeft = this.width - 56; styleRightButtonNode.pixelLeft = this.width - 30; } else { styleLeftButtonNode.display = "none"; styleRightButtonNode.display = "none"; } } else { this.parentNode.parentNode.parentNode.style.height = this.height + __TOP_BORDER_SIZE; styleDivNode.top = this.y - __TOP_BORDER_SIZE; styleDivNode.left = this.x; styleAlphaLayerNode.left = this.width/100 * alphaLayerInfos.leftPercent; styleAlphaLayerNode.top = this.height/100 * alphaLayerInfos.topPercent; if (this.sequence.screenPlayer.sequences.length > 1) { styleLeftButtonNode.top = this.height + __TOP_BORDER_SIZE - 30; styleRightButtonNode.top = this.height + __TOP_BORDER_SIZE - 30; styleLeftButtonNode.left = this.width - 56; styleRightButtonNode.left = this.width - 30; } else { styleLeftButtonNode.display = "none"; styleRightButtonNode.display = "none"; } } styleDivNode.height = this.height + __TOP_BORDER_SIZE; styleDivNode.width = this.width; styleDivNode.display = 'block'; if (! document.all && this.height>this.width*0.5) { styleDivNode.height = this.width * 0.49227373 + __TOP_BORDER_SIZE; setTimeout("window.onresize();", 1); } styleAlphaLayerNode.width = this.width/100 * (alphaLayerInfos.rightPercent - alphaLayerInfos.leftPercent); styleAlphaLayerNode.height = (this.height + __TOP_BORDER_SIZE)/100 * (alphaLayerInfos.bottomPercent - alphaLayerInfos.topPercent); var faddingNode = this.sequence.screenPlayer.tempFaddingNode; faddingNode.style.top = __TOP_BORDER_SIZE + 1*(document.all ? styleDivNode.pixelTop : styleDivNode.top); faddingNode.style.left = document.all ? styleDivNode.pixelLeft : styleDivNode.left; faddingNode.style.width = document.all ? styleDivNode.pixelWidth : styleDivNode.width; faddingNode.firstChild.style.width = document.all ? styleDivNode.pixelWidth : styleDivNode.width; faddingNode.style.height = (document.all ? styleDivNode.pixelHeight : styleDivNode.height) - __TOP_BORDER_SIZE; } catch(e) { } } function AlphaLayer(description) { var params = description.split("-"); this.background = params[0]; this.leftPercent = params[1]; this.topPercent = params[2]; this.rightPercent = params[3]; this.bottomPercent = params[4]; } function Sequence(imageSrc, sequenceID, alphaLayer) { if (arguments.length != 3) { alert("Sequence function require 3 parameters"); throw true; } this.imageSrc = imageSrc; this.sequenceID = sequenceID; this.alphaLayer = new AlphaLayer(alphaLayer); this.divNode = document.getElementById( this.sequenceID ); this.divNode.parentNode.removeChild( this.divNode ); this.divNode.style.position = "absolute"; this.divNode.style.overflow = "hidden"; this.divNode.sequence = this; this.topDivNode = document.createElement("DIV"); this.topDivNode.style.cssText = "font-size: 2"; this.topDivNode.style.height = 14; if ( navigator.appName.indexOf("Microsoft") > -1 ) { var idName = "Image" + (__Id++); document.write(" "); this.imageNode = document.getElementById( idName ); this.imageNode.parentNode.removeChild( this.imageNode ); } else { this.imageNode = document.createElement("IMG"); this.imageNode.className = "Body_MainTheme_BackImage"; this.imageNode.attributes["noBorder"] = true; this.imageNode.border = 0; this.imageNode.style.width = "100%"; } this.imageNode.ssrc = this.imageSrc; this.imageNode.resize = Image_resize; this.imageNode.sequence = this; this.alphaLayerNode = document.createElement("DIV"); this.alphaLayerNode.style.zIndex = -1; this.alphaLayerNode.style.position = "absolute"; this.alphaLayerNode.style.background = this.alphaLayer.background; changeOpacity( this.alphaLayerNode, 50 ); this.divNode.appendChild( this.alphaLayerNode ); this.alphaLayerNode.sequence = this; this.leftButtonNode = document.createElement("IMG"); this.rightButtonNode = document.createElement("IMG"); this.leftButtonNode.src = "http://i3.woopic.com/I/arrow_left.gif"; this.rightButtonNode.src = "http://i3.woopic.com/I/arrow_right.gif"; this.leftButtonNode.notResize = this.rightButtonNode.notResize = true; this.rightButtonNode.style.position = this.leftButtonNode.style.position = "absolute"; this.divNode.appendChild( this.leftButtonNode ); this.divNode.appendChild( this.rightButtonNode ); this.leftButtonNode.onclick = function () { __screenPlayer.getPreviousSequence(); } this.rightButtonNode.onclick = function () { __screenPlayer.getNextSequence(); } } function ScreenPlayer() { this.sequences = new Array(); this.currentSequence = 0; this.htmlTag = document.getElementById("ScreenPlayer"); this.htmlTag.component = this; this.htmlTag.position = "relative"; this.htmlTag.overflow = "hidden"; this.tempFaddingNode = document.createElement( "DIV" ); this.tempFaddingNode.style.cssText = "position: absolute;"; this.htmlTag.parentNode.appendChild( this.tempFaddingNode ); changeOpacity( this.tempFaddingNode, 0 ); this.launchTimer = function ScreenPlayer_launchTimer() { if (__TIMEOUT_FOR_NEXT_SEQUENCE > 0) { if (this.clockId) window.clearInterval(this.clockId); this.clockId = window.setInterval("__screenPlayer.getNextSequence()", __TIMEOUT_FOR_NEXT_SEQUENCE * 1000); } } this.addSequence = function ScreenPlayer_addSequence( sequence ) { this.sequences[this.sequences.length] = sequence; sequence.screenPlayer = this; } this.getPreviousSequence = function ScreenPlayer_getPreviousSequence() { if ((--this.currentSequence) == -1) this.currentSequence = this.sequences.length-1; this.generateHTML(); } this.getNextSequence = function ScreenPlayer_getNextSequence() { if ((++this.currentSequence) == this.sequences.length) this.currentSequence = 0; this.generateHTML(); } this.generateHTML = function ScreenPlayer_generateHTML() { if (this.sequences.length == 0) { alert("You must add sequences to the ScreenPlayer"); throw true; } var sequence = this.sequences[ this.currentSequence ]; sequence.imageNode.src = sequence.imageNode.ssrc; try { this.htmlTag.removeChild( this.htmlTag.firstChild ); this.htmlTag.removeChild( this.htmlTag.firstChild ); if ( this.sequences.length > 1 ) { changeOpacity( this.tempFaddingNode, 100 ); } this.htmlTag.removeChild( this.htmlTag.firstChild ); } catch( e ) { } if ( this.sequences.length > 1 ) { changeOpacity( sequence.imageNode, 0 ); } this.htmlTag.appendChild( sequence.topDivNode ); this.htmlTag.appendChild( sequence.divNode ); this.htmlTag.appendChild( sequence.imageNode ); cookiesManager.setValue("lastSequence", this.currentSequence); this.launchTimer(); window.onresize(); if ( this.sequences.length > 1 ) { new Fadding( sequence.imageNode, this.tempFaddingNode, faddingIsFinished ); } } this.start = function ScreenPlayer_start() { this.currentSequence = cookiesManager.getValue("lastSequence"); if (this.currentSequence == null || this.currentSequence>=this.sequences.length || __FIXED_ORDER == true) this.currentSequence = -1; this.getNextSequence(); } } function faddingIsFinished() { __screenPlayer.tempFaddingNode.firstChild.src = __screenPlayer.sequences[__screenPlayer.currentSequence].imageNode.src; }
Ligne 208 Erreur :-‘ sereenplayer. Temp FaddingNode. Firstchild à la valeur Nul ou n’est pas un objet
J’ai fait un debogage mais je n’arrive pas aller plus loin merci de bien vouloir m’aider ( tres legé en informatique)
var __TIMEOUT_FOR_NEXT_SEQUENCE = 15; var __FIXED_ORDER = false; var __TOP_BORDER_SIZE = 14; var __Id = 0; var toto = false; function Image_resize() { if (this.parentNode == null) return; this.style.display = "block"; if (isKonqueror) { if (! toto) { var node = document.createElement("IMG"); node.src = this.src; node.resize = this.resize; node.sequence = this.sequence; node.sequence.imageNode = node; node.noBorder = node.attributes["noBorder"] = true; this.parentNode.appendChild( node ); this.parentNode.removeChild( this ); toto = true; } this.sequence.divNode.style.top = 99; this.sequence.divNode.style.width = this.width; this.sequence.divNode.style.height = this.height; return; } try { if (document.all) this.height = this.width * 0.4861111; var styleDivNode = this.previousSibling.style; var alphaLayerInfos = this.sequence.alphaLayer; var styleAlphaLayerNode = this.sequence.alphaLayerNode.style; var styleLeftButtonNode = this.sequence.leftButtonNode.style; var styleRightButtonNode = this.sequence.rightButtonNode.style; if ( document.all ) { styleDivNode.pixelTop = this.offsetTop - __TOP_BORDER_SIZE; styleDivNode.pixelLeft = this.offsetLeft; if (getIEAppVersionNumber() <= 5) { if (styleDivNode.pixelLeft*1 == 0) { styleDivNode.pixelLeft = -1000; window.setTimeout("window.onresize();", 10); } } styleAlphaLayerNode.pixelLeft = this.width/100 * alphaLayerInfos.leftPercent; styleAlphaLayerNode.pixelTop = this.height/100 * alphaLayerInfos.topPercent; if (this.sequence.screenPlayer.sequences.length > 1) { styleLeftButtonNode.pixelTop = this.height + __TOP_BORDER_SIZE - 30; styleRightButtonNode.pixelTop = this.height + __TOP_BORDER_SIZE - 30; styleLeftButtonNode.pixelLeft = this.width - 56; styleRightButtonNode.pixelLeft = this.width - 30; } else { styleLeftButtonNode.display = "none"; styleRightButtonNode.display = "none"; } } else { this.parentNode.parentNode.parentNode.style.height = this.height + __TOP_BORDER_SIZE; styleDivNode.top = this.y - __TOP_BORDER_SIZE; styleDivNode.left = this.x; styleAlphaLayerNode.left = this.width/100 * alphaLayerInfos.leftPercent; styleAlphaLayerNode.top = this.height/100 * alphaLayerInfos.topPercent; if (this.sequence.screenPlayer.sequences.length > 1) { styleLeftButtonNode.top = this.height + __TOP_BORDER_SIZE - 30; styleRightButtonNode.top = this.height + __TOP_BORDER_SIZE - 30; styleLeftButtonNode.left = this.width - 56; styleRightButtonNode.left = this.width - 30; } else { styleLeftButtonNode.display = "none"; styleRightButtonNode.display = "none"; } } styleDivNode.height = this.height + __TOP_BORDER_SIZE; styleDivNode.width = this.width; styleDivNode.display = 'block'; if (! document.all && this.height>this.width*0.5) { styleDivNode.height = this.width * 0.49227373 + __TOP_BORDER_SIZE; setTimeout("window.onresize();", 1); } styleAlphaLayerNode.width = this.width/100 * (alphaLayerInfos.rightPercent - alphaLayerInfos.leftPercent); styleAlphaLayerNode.height = (this.height + __TOP_BORDER_SIZE)/100 * (alphaLayerInfos.bottomPercent - alphaLayerInfos.topPercent); var faddingNode = this.sequence.screenPlayer.tempFaddingNode; faddingNode.style.top = __TOP_BORDER_SIZE + 1*(document.all ? styleDivNode.pixelTop : styleDivNode.top); faddingNode.style.left = document.all ? styleDivNode.pixelLeft : styleDivNode.left; faddingNode.style.width = document.all ? styleDivNode.pixelWidth : styleDivNode.width; faddingNode.firstChild.style.width = document.all ? styleDivNode.pixelWidth : styleDivNode.width; faddingNode.style.height = (document.all ? styleDivNode.pixelHeight : styleDivNode.height) - __TOP_BORDER_SIZE; } catch(e) { } } function AlphaLayer(description) { var params = description.split("-"); this.background = params[0]; this.leftPercent = params[1]; this.topPercent = params[2]; this.rightPercent = params[3]; this.bottomPercent = params[4]; } function Sequence(imageSrc, sequenceID, alphaLayer) { if (arguments.length != 3) { alert("Sequence function require 3 parameters"); throw true; } this.imageSrc = imageSrc; this.sequenceID = sequenceID; this.alphaLayer = new AlphaLayer(alphaLayer); this.divNode = document.getElementById( this.sequenceID ); this.divNode.parentNode.removeChild( this.divNode ); this.divNode.style.position = "absolute"; this.divNode.style.overflow = "hidden"; this.divNode.sequence = this; this.topDivNode = document.createElement("DIV"); this.topDivNode.style.cssText = "font-size: 2"; this.topDivNode.style.height = 14; if ( navigator.appName.indexOf("Microsoft") > -1 ) { var idName = "Image" + (__Id++); document.write(" "); this.imageNode = document.getElementById( idName ); this.imageNode.parentNode.removeChild( this.imageNode ); } else { this.imageNode = document.createElement("IMG"); this.imageNode.className = "Body_MainTheme_BackImage"; this.imageNode.attributes["noBorder"] = true; this.imageNode.border = 0; this.imageNode.style.width = "100%"; } this.imageNode.ssrc = this.imageSrc; this.imageNode.resize = Image_resize; this.imageNode.sequence = this; this.alphaLayerNode = document.createElement("DIV"); this.alphaLayerNode.style.zIndex = -1; this.alphaLayerNode.style.position = "absolute"; this.alphaLayerNode.style.background = this.alphaLayer.background; changeOpacity( this.alphaLayerNode, 50 ); this.divNode.appendChild( this.alphaLayerNode ); this.alphaLayerNode.sequence = this; this.leftButtonNode = document.createElement("IMG"); this.rightButtonNode = document.createElement("IMG"); this.leftButtonNode.src = "http://i3.woopic.com/I/arrow_left.gif"; this.rightButtonNode.src = "http://i3.woopic.com/I/arrow_right.gif"; this.leftButtonNode.notResize = this.rightButtonNode.notResize = true; this.rightButtonNode.style.position = this.leftButtonNode.style.position = "absolute"; this.divNode.appendChild( this.leftButtonNode ); this.divNode.appendChild( this.rightButtonNode ); this.leftButtonNode.onclick = function () { __screenPlayer.getPreviousSequence(); } this.rightButtonNode.onclick = function () { __screenPlayer.getNextSequence(); } } function ScreenPlayer() { this.sequences = new Array(); this.currentSequence = 0; this.htmlTag = document.getElementById("ScreenPlayer"); this.htmlTag.component = this; this.htmlTag.position = "relative"; this.htmlTag.overflow = "hidden"; this.tempFaddingNode = document.createElement( "DIV" ); this.tempFaddingNode.style.cssText = "position: absolute;"; this.htmlTag.parentNode.appendChild( this.tempFaddingNode ); changeOpacity( this.tempFaddingNode, 0 ); this.launchTimer = function ScreenPlayer_launchTimer() { if (__TIMEOUT_FOR_NEXT_SEQUENCE > 0) { if (this.clockId) window.clearInterval(this.clockId); this.clockId = window.setInterval("__screenPlayer.getNextSequence()", __TIMEOUT_FOR_NEXT_SEQUENCE * 1000); } } this.addSequence = function ScreenPlayer_addSequence( sequence ) { this.sequences[this.sequences.length] = sequence; sequence.screenPlayer = this; } this.getPreviousSequence = function ScreenPlayer_getPreviousSequence() { if ((--this.currentSequence) == -1) this.currentSequence = this.sequences.length-1; this.generateHTML(); } this.getNextSequence = function ScreenPlayer_getNextSequence() { if ((++this.currentSequence) == this.sequences.length) this.currentSequence = 0; this.generateHTML(); } this.generateHTML = function ScreenPlayer_generateHTML() { if (this.sequences.length == 0) { alert("You must add sequences to the ScreenPlayer"); throw true; } var sequence = this.sequences[ this.currentSequence ]; sequence.imageNode.src = sequence.imageNode.ssrc; try { this.htmlTag.removeChild( this.htmlTag.firstChild ); this.htmlTag.removeChild( this.htmlTag.firstChild ); if ( this.sequences.length > 1 ) { changeOpacity( this.tempFaddingNode, 100 ); } this.htmlTag.removeChild( this.htmlTag.firstChild ); } catch( e ) { } if ( this.sequences.length > 1 ) { changeOpacity( sequence.imageNode, 0 ); } this.htmlTag.appendChild( sequence.topDivNode ); this.htmlTag.appendChild( sequence.divNode ); this.htmlTag.appendChild( sequence.imageNode ); cookiesManager.setValue("lastSequence", this.currentSequence); this.launchTimer(); window.onresize(); if ( this.sequences.length > 1 ) { new Fadding( sequence.imageNode, this.tempFaddingNode, faddingIsFinished ); } } this.start = function ScreenPlayer_start() { this.currentSequence = cookiesManager.getValue("lastSequence"); if (this.currentSequence == null || this.currentSequence>=this.sequences.length || __FIXED_ORDER == true) this.currentSequence = -1; this.getNextSequence(); } } function faddingIsFinished() { __screenPlayer.tempFaddingNode.firstChild.src = __screenPlayer.sequences[__screenPlayer.currentSequence].imageNode.src; }
A voir également:
- Probleme page accueil ligne 208
- Page d'accueil - Guide
- Page accueil iphone - Guide
- Supprimer page word - Guide
- Partager photos en ligne - Guide
- Mètre en ligne - Guide
2 réponses
Je pense que je n’ai pas du être assé claire pour mon problème, il me demande d’effectuer un débogage mais je n’arrive pas aller plus loin tout est écrit en Anglais merci d’avance a celui qui voudra bien se pencher sur mon erreur ligne 208