Hello,
Ich have the problem that some coding is double on the server and I get a withe bar on the top. (see attachment)
The code starting with "window.addEvent('domready',function(){" is coming a second time some lines later.
Where I have to look for the reason?
The code which come from the server:
window.addEvent('load', function() {
new JCaption('img.caption');
});
window.addEvent('domready', function() {
SqueezeBox.initialize({});
SqueezeBox.assign($$('a.modal'), {
parse: 'rel'
});
});
window.addEvent('domready',function(){
var topofthepage = new Element('a',{'id':'topofthepage','style':'height:0;width:0;line-height:0; display:inline; font-size:0;','html':' '}).inject(document.body,'top');
var gototop = new Element('a',{'id':'gototop','href':'/italo-fashion/index.php/de/#topofthepage','html':'Return to Top'}).inject(document.body);
document.id('gototop').set('opacity','0').setStyles({'position':'fixed','display':'block'});
document.id('gototop').setStyles({'right':'0px','bottom':'0px'});
var plg_sys_topofthepage = new ScrollSpy({
min: 200,
onEnter: function(position,enters) {
//if(console) { console.log('Entered [' + enters + '] at: ' + position.x + ' / ' + position.y); }
document.id('gototop').fade('in');
},
onLeave: function(position,leaves) {
//if(console) { console.log('Left [' + leaves + '] at: ' + position.x + ' / ' + position.y); }
document.id('gototop').fade('out');
},
onTick: function(position,state,enters,leaves) {
//if(console) { console.log('Tick [' + enters + ', ' + leaves + '] at: ' + position.x + ' / ' + position.y); }
},
container: window
});
new SmoothScroll({duration:500});
});
window.addEvent('load', function() {
new JCaption('img.caption');
});
window.addEvent('domready', function() {
SqueezeBox.initialize({});
SqueezeBox.assign($$('a.modal'), {
parse: 'rel'
});
});
window.addEvent('domready',function(){
var topofthepage = new Element('a',{'id':'topofthepage','style':'height:0;width:0;line-height:0; display:inline; font-size:0;','html':' '}).inject(document.body,'top');
var gototop = new Element('a',{'id':'gototop','href':'/italo-fashion/index.php/de/#topofthepage','html':'Return to Top'}).inject(document.body);
document.id('gototop').set('opacity','0').setStyles({'position':'fixed','display':'block'});
document.id('gototop').setStyles({'right':'0px','bottom':'0px'});
var plg_sys_topofthepage = new ScrollSpy({
min: 200,
onEnter: function(position,enters) {
//if(console) { console.log('Entered [' + enters + '] at: ' + position.x + ' / ' + position.y); }
document.id('gototop').fade('in');
},
onLeave: function(position,leaves) {
//if(console) { console.log('Left [' + leaves + '] at: ' + position.x + ' / ' + position.y); }
document.id('gototop').fade('out');
},
onTick: function(position,state,enters,leaves) {
//if(console) { console.log('Tick [' + enters + ', ' + leaves + '] at: ' + position.x + ' / ' + position.y); }
},
container: window
});
new SmoothScroll({duration:500});
});
var slideshowSpeed=9000;
var effectTime=600;
var photos=[{"image" : "http://www.italo-fashion.com/italo-fashion/images/website/italo-fashion/slideshow/backgrounds/img_1010.jpg"},{"image" : "http://www.italo-fashion.com/italo-fashion/images/website/italo-fashion/slideshow/backgrounds/img_3030.jpg"},{"image" : "http://www.italo-fashion.com/italo-fashion/images/website/italo-fashion/slideshow/backgrounds/img_3050.png"},{"image" : "http://www.italo-fashion.com/italo-fashion/images/website/italo-fashion/slideshow/backgrounds/img_4020.jpg"},{"image" : "http://www.italo-fashion.com/italo-fashion/images/website/italo-fashion/slideshow/backgrounds/img_4030.jpg"},{"image" : "http://www.italo-fashion.com/italo-fashion/images/website/italo-fashion/slideshow/backgrounds/img_4040.jpg"},{"image" : "http://www.italo-fashion.com/italo-fashion/images/website/italo-fashion/slideshow/backgrounds/img_5010.jpg"},{"image" : "http://www.italo-fashion.com/italo-fashion/images/website/italo-fashion/slideshow/backgrounds/img_6010.jpg"},{"image" : "http://www.italo-fashion.com/italo-fashion/images/website/italo-fashion/slideshow/backgrounds/img_8030.png"},{"image" : "http://www.italo-fashion.com/italo-fashion/images/website/italo-fashion/slideshow/backgrounds/img_9010.jpg"},{"image" : "http://www.italo-fashion.com/italo-fashion/images/website/italo-fashion/slideshow/backgrounds/img_9020.jpg"},{"image" : "http://www.italo-fashion.com/italo-fashion/images/website/italo-fashion/slideshow/backgrounds/img_9040.jpg"},{"image" : "http://www.italo-fashion.com/italo-fashion/images/website/italo-fashion/slideshow/backgrounds/img_9060.jpg"},{"image" : "http://www.italo-fashion.com/italo-fashion/images/website/italo-fashion/slideshow/backgrounds/img_9090.png"}];
preload(photos);
Is there a solution?
Best regards
Peter