75 lines
1.7 KiB
JavaScript
75 lines
1.7 KiB
JavaScript
var lightred = "#840404";
|
|
var red = "#6A0000";
|
|
var maxZIndex = 1;
|
|
|
|
//ändert die Farbe bei Mouse Over
|
|
function mouseOver(id){
|
|
document.getElementById(id).style.backgroundColor = red;
|
|
}
|
|
|
|
//ändert die Farbe bei Mouse Out
|
|
function mouseOut(id){
|
|
document.getElementById(id).style.backgroundColor = lightred;
|
|
}
|
|
|
|
//öffnet URL
|
|
function getURL(url){
|
|
window.open(url, "_self");
|
|
}
|
|
|
|
|
|
//öffnet Ticketresevierung in neuem Fenster
|
|
function openTicketReservation(id){
|
|
url = "tickets/tickets.php";
|
|
if(id != 0){
|
|
url += "?id=" + id;
|
|
}
|
|
win = "_blank";
|
|
opt = "width=1000,height=550,left=5,top=100,location=no,menubar=no,status=no,toolbar=no,scrollbar=no";
|
|
window.open(url, win, opt);
|
|
}
|
|
|
|
//öffnet Bildergalerie
|
|
function showGallery(id){
|
|
url = "gallery/gallery.php?id="+id;
|
|
win = "_blank";
|
|
opt = "width=900,height=600,left=50,top=100,location=no,menubar=no,status=no,toolbar=no,scrollbar=no";
|
|
window.open(url,win,opt);
|
|
}
|
|
|
|
|
|
//zeigt Submenü an
|
|
function showSubmenu(id){
|
|
document.getElementById(id).style.display = "block";
|
|
document.getElementById(id).style.zIndex = maxZIndex;
|
|
maxZIndex++;
|
|
}
|
|
|
|
//versteckt Submenü
|
|
function hideSubmenu(id){
|
|
document.getElementById(id).style.display = "none";
|
|
}
|
|
|
|
|
|
//tauscht ein Rollover-Bild aus
|
|
function swapImage(id, no){
|
|
var file = node.src;
|
|
node.src = file.substring(0, file.length-5) + no + ".png";
|
|
}
|
|
|
|
$.datepicker.setDefaults({
|
|
changeMonth: true,
|
|
changeYear: false,
|
|
dateFormat: "dd.mm.yy",
|
|
dayNamesMin: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
|
|
monthNamesShort: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
|
|
nextText: 'vor',
|
|
prevText: 'zurück',
|
|
firstDay: 1
|
|
});
|
|
|
|
$(document).ready(function() {
|
|
$(".datepicker").datepicker();
|
|
});
|
|
|