/*///////////////////////////////////////////////////////////////////////////////// loadComplete (wird vor aufgerufen) /////////////////////////////////////////////////////////////////////////////////*/ /** * @projectDescription wird vor </body> aufgerufen, Beinhaltet die Anweisungen die beim onLoad ausgeführt werden sollen. */ function loadComplete(){ parseExternalLinks(); /* Hier die Anweisungen einfügen */ } /*///////////////////////////////////////////////////////////////////////////////// popup öffnet ein neuse Fenster, obj = Link der das Fenster öffnet w = Breite des Fensters h = Höhe des Fensters /////////////////////////////////////////////////////////////////////////////////*/ /** * @projectDescription öffnet ein neues Browserfenster falls möglich, ansonsten wird die url des Links direkt aufgerufen. * @param {LinkObject} obj * @param {Breite} w * @param {Hoehe} h * @return {Boolean} */ function popup(obj,w,h) { var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href; if (!url) return true; if(w && h){ var args = 'width='+w+',height='+h+',resizable=yes'; } else{ var args = 'resizable=yes,hotkeys=yes,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes'; } pop = window.open(url,'',args); return (pop) ? false : true; } /*///////////////////////////////////////////////////////////////////////////////// parseExternalLinks öffnet Links mit target="_blank" oder rel="external" in einem neuen Fenster /////////////////////////////////////////////////////////////////////////////////*/ /** * @projectDescription öffnet Links mit target="_blank" oder rel="external" in einem neuen Fenster (sollte in der loadComplete-Funktion aufgerufen werden) */ function parseExternalLinks(){ for(i=0; i"; } } } } /*///////////////////////////////////////////////////////////////////////////////// JS Kalender Beispiel: kalender = new Calender(document.getElementById('jscalender'), 'de'); kalender.callBackFunction = function(tag,monat,jahr){ document.forms[0].vdd.value = tag; document.forms[0].vmm.value = monat; document.forms[0].vyy.value = jahr; kalender.hide(); } callBackFunction wird aufgerufen wenn auf ein Datum geklickt wird /////////////////////////////////////////////////////////////////////////////////*/ /** * @projectDescription JS Kalender, callBackFunction wird aufgerufen wenn auf ein Item geklickt wird * @param {String} obref * @param {String} lang */ function Calender(obref, lang){ var self = this; this.obref = obref; this.day_names_l = new Array(); this.month_names_l = new Array(); this.day_names_l['de'] = new Array('Mo','Di','Mi','Do','Fr','Sa','So'); this.month_names_l['de'] = new Array('Jänner','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'); this.day_names_l['en'] = new Array('Mo','Tu','We','Th','Fr','Sa','Su'); this.month_names_l['en'] = new Array('January','February','March','April','May','June','July','August','September','October','November','December'); this.day_names_l['fr'] = new Array('Lu','Ma','Me','Je','Ve','Sa','Di'); this.month_names_l['fr'] = new Array('Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'); this.day_names_l['it'] = new Array('Lun','Mar','Mer','Gio','Ven','Sab','Dom'); this.month_names_l['it'] = new Array('gennaio','febbraio','marzo','aprile','maggio','giugno','luglio','agosto','settembre','ottobre','novembre','dicembre'); this.day_names = this.day_names_l[lang]; this.month_names = this.month_names_l[lang]; this.days = new Array(); /** * @projectDescription initialisiert den Kalender und befüllt den Container mit HTML-Code */ this.init = function(){ html_output = '
«

»
\n'; html_output += '
\n'; for(i=0;i<7;i++){ html_output += '' + self.day_names[i] + '\n'; } zw=0; for(i=0;i<41;i++){ zw++; if(zw==6 || zw==7){ html_output += '\n'; } else{ html_output += '\n'; } if(zw==7){ zw=0; } } html_output += 'x\n'; html_output += '
'; self.obref.innerHTML = html_output; self.obref.getElementsByTagName('a')[self.obref.getElementsByTagName('a').length-1].onclick = function(){ self.hide(); } self.obref.getElementsByTagName('a')[0].onclick = function(){ if(self.akt_month>1){ self.setDate(self.akt_month-1, self.akt_year); } else{ self.setDate(12, self.akt_year-1); } } self.obref.getElementsByTagName('a')[1].onclick = function(){ if(self.akt_month<12){ self.setDate(self.akt_month+1, self.akt_year); } else{ self.setDate(1, self.akt_year+1); } } for(i=2;i<43;i++){ self.obref.getElementsByTagName('a')[i].onclick = function(){ self.itemOnClick(this); } } zw = new Date(); } /** * @projectDescription blendet den Kalender ein */ this.show = function(){ self.obref.style.display = 'block'; } /** * @projectDescription blendet den Kalender aus */ this.hide = function(){ self.obref.style.display = 'none'; } /** * @projectDescription setzt Monat und Jahr */ this.setDate = function(month, year){ self.akt_month = month; self.akt_year = year; blankdays = new Date(year,month-1,1).getDay(); blankdays += -1; if(blankdays<0){ blankdays=6; } for(i=27;month-1==new Date(year,month-1,i).getMonth();i++){ maxdays = i; } for(i=0;i=object.imgarr.length){ object.showedpics=new Array(); } uebarr=new Array(); for(i=0;i=uebarr.length){ zw=0; } while(object.src==object.path + uebarr[zw]){ zw = Math.round((Math.random()*uebarr.length)+1); if(zw>=uebarr.length){ zw=0; } } object.aktpic=zw; object.showedpics.push(uebarr[object.aktpic]); //alert(uebarr[object.aktpic]); object.src = object.path + uebarr[object.aktpic]; if (document.all){ object.filters.blendTrans.Play(); } setTimeout('runSlideShow("' + objectid + '")', 5000); } /*///////////////////////////////////////////////////////////// Flash Check /////////////////////////////////////////////////////////////*/ document.write('