Hallo,
ich versuche gerade verschiedene Javascripte einzubinden. Diese scheinen sich aber im <Head> Bereich nicht zu mögen. Ich hoffe ihr könnt mir weiterhelfen.
CODE:
<link rel="stylesheet" type="text/css" href="css/main.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript" src="java/jquery.sideswap.js"></script>
<script type='text/javascript' src='jquery/jquery-1.8.2.min.js'></script>
<link rel='stylesheet' href='jquery-colorbox/colorbox.css' type='text/css' media='screen' />
<script type='text/javascript' src='jquery-colorbox/jquery.colorbox-min.js'></script>
<link rel='stylesheet' href='../css/jquery.justifiedgallery.min.css' type='text/css' media='all' />
<script type='text/javascript' src='../js/jquery.justifiedgallery.min.js'></script>
<script type="text/javascript">
$(window).load(function()
{
$('#rotating-elements').sideswap({
navigation : false,
transition_speed : 2000,
display_time : 7000
});
});
$(document).ready(function() {
$("#startseite").click(function() {
$("#mains").animate({backgroundColor: "#87c33d"});
$("section").animate({opacity:"0", filter:"alpha(opacity=0)"}, 400, function() {
$("section").load("startseite.html", function() {
$("section").animate({opacity:"1", filter:"alpha(opacity=100)"}, 400);
});
});
});
$("#referenzen").click(function() {
$("#mains").animate({backgroundColor: "#64a03b"});
$("section").animate({opacity:"0", filter:"alpha(opacity=0)"}, 400, function() {
$("section").load("referenzen.html", function() {
$("section").animate({opacity:"1", filter:"alpha(opacity=100)"}, 400);
});
});
});
$("#uebermich").click(function() {
$("#mains").animate({backgroundColor: "#378238"});
$("section").animate({opacity:"0", filter:"alpha(opacity=0)"}, 400, function() {
$("section").load("uebermich.html", function() {
$("section").animate({opacity:"1", filter:"alpha(opacity=100)"}, 400);
});
});
});
$("#kontakt").click(function() {
$("#mains").animate({backgroundColor: "#1c7144"});
$("section").animate({opacity:"0", filter:"alpha(opacity=0)"}, 400, function() {
$("section").load("kontakt.html", function() {
$("section").animate({opacity:"1", filter:"alpha(opacity=100)"}, 400);
});
});
});
});
$(".myExample4").justifiedGallery({
'usedSuffix':'lt240',
'justifyLastRow':true,
'rowHeight':80,
'fixedHeight':false,
'lightbox':true,
'captions':false,
'margins':1
});
</script>
</head>
<body>...
...
ich versuche gerade verschiedene Javascripte einzubinden. Diese scheinen sich aber im <Head> Bereich nicht zu mögen. Ich hoffe ihr könnt mir weiterhelfen.
CODE:
<link rel="stylesheet" type="text/css" href="css/main.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript" src="java/jquery.sideswap.js"></script>
<script type='text/javascript' src='jquery/jquery-1.8.2.min.js'></script>
<link rel='stylesheet' href='jquery-colorbox/colorbox.css' type='text/css' media='screen' />
<script type='text/javascript' src='jquery-colorbox/jquery.colorbox-min.js'></script>
<link rel='stylesheet' href='../css/jquery.justifiedgallery.min.css' type='text/css' media='all' />
<script type='text/javascript' src='../js/jquery.justifiedgallery.min.js'></script>
<script type="text/javascript">
$(window).load(function()
{
$('#rotating-elements').sideswap({
navigation : false,
transition_speed : 2000,
display_time : 7000
});
});
$(document).ready(function() {
$("#startseite").click(function() {
$("#mains").animate({backgroundColor: "#87c33d"});
$("section").animate({opacity:"0", filter:"alpha(opacity=0)"}, 400, function() {
$("section").load("startseite.html", function() {
$("section").animate({opacity:"1", filter:"alpha(opacity=100)"}, 400);
});
});
});
$("#referenzen").click(function() {
$("#mains").animate({backgroundColor: "#64a03b"});
$("section").animate({opacity:"0", filter:"alpha(opacity=0)"}, 400, function() {
$("section").load("referenzen.html", function() {
$("section").animate({opacity:"1", filter:"alpha(opacity=100)"}, 400);
});
});
});
$("#uebermich").click(function() {
$("#mains").animate({backgroundColor: "#378238"});
$("section").animate({opacity:"0", filter:"alpha(opacity=0)"}, 400, function() {
$("section").load("uebermich.html", function() {
$("section").animate({opacity:"1", filter:"alpha(opacity=100)"}, 400);
});
});
});
$("#kontakt").click(function() {
$("#mains").animate({backgroundColor: "#1c7144"});
$("section").animate({opacity:"0", filter:"alpha(opacity=0)"}, 400, function() {
$("section").load("kontakt.html", function() {
$("section").animate({opacity:"1", filter:"alpha(opacity=100)"}, 400);
});
});
});
});
$(".myExample4").justifiedGallery({
'usedSuffix':'lt240',
'justifyLastRow':true,
'rowHeight':80,
'fixedHeight':false,
'lightbox':true,
'captions':false,
'margins':1
});
</script>
</head>
<body>...
...