Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 17:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Problem mit jQuery(nivo slider)

Discussion on Problem mit jQuery(nivo slider) within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2011
Posts: 862
Received Thanks: 404
Problem mit jQuery(nivo slider)

Hallo,

Ich habe ein Problem und zwar will ich eine Slideshow auf meiner Website einbauen.
Ich habe mir ein Tutorial angeschaut und habe es auf meiner Website nachgemacht.
Hier einmal der Code ohne Funktion:#
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Survival Games</title>
		<meta http-equiv="Content-Type"
		content="text/html; charset=ISO-8859-15" />
		<link rel="stylesheet" href="style.css"
		type="text/css" media="screen" />
	</head>
	<body>
	
	<div id="website">
		<div id="navi">
		<ul>
			<li class="active">
			<a href="index.html" title="Zurück zur Startseite">Home</a>
			</li>
			
			<li>
			<a href="Server.html" title="Zum Server">Server</a>
			</li>
		
			<li>
			<a href="bilder.html" title="Bilder vom Server">Bilder</a>
			</li>
			
			<li>
			<a href="maps.html" title="Zu unseren Maps">Maps</a>
			</li>
			
			<li>
			<a href="befehle.html" title="Zu den Befehlen">Befehle</a>
			</li>
			
			<li>
			<a href="Kontakte.html" title="Zu den Kontakten">Kontakte
			</li>
		</ul>
		<ul>
		    <li>
			<a href="index.html" title="Zurück zur Startseite" style="font-family:courier;margin-left:50px;color:orange">Survival Games</a>
			</li>
		</ul>
		</div>
		
		<div id="main">	
			<div id="content">
			
			</div>
			
			<div id="sidebar">
			
			</div>
		</div>
			
		<div id="footer">
		<p>
			© Survival Games (ErzVaan) 2013 
		</p>
		</div>
	</div>
	
	
	
	
	
	
	
	</div>

	</body>
und hier mit der Funktion:
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Survival Games</title>
		<meta http-equiv="Content-Type"
		content="text/html; charset=ISO-8859-15" />
		<link rel="stylesheet" href="themes/default/default.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
	</head>
	<body>
	
	<div id="website">
		<div id="navi">
		<ul>
			<li class="active">
			<a href="index.html" title="Zurück zur Startseite">Home</a>
			</li>
			
			<li>
			<a href="Server.html" title="Zum Server">Server</a>
			</li>
		
			<li>
			<a href="bilder.html" title="Bilder vom Server">Bilder</a>
			</li>
			
			<li>
			<a href="maps.html" title="Zu unseren Maps">Maps</a>
			</li>
			
			<li>
			<a href="befehle.html" title="Zu den Befehlen">Befehle</a>
			</li>
			
			<li>
			<a href="Kontakte.html" title="Zu den Kontakten">Kontakte
			</li>
		</ul>
		<ul>
		    <li>
			<a href="index.html" title="Zurück zur Startseite" style="font-family:courier;margin-left:50px;color:orange">Survival Games</a>
			</li>
		</ul>
		</div>
		
		<div id="main">	
			<div id="content">
			
				<div class="slider-wrapper">
					<div id="slider" class="nivoSlider">
						<img src="img/bild1.jpg" alt="" />
						<img src="img/bild2.jpg" alt="" title="#htmlcaption" />
						<img src="img/bild3.jpg" alt="" title="This is an example of a caption" />
						<img src="img/bild4.jpg" alt="" />
					</div>
				</div>
				<div id="htmlcaption" class="nivo-html-caption">
					<strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>.
				</div>

			
				<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
				<script type="text/javascript" src="jquery.nivo.slider.js"></script>
				<script type="text/javascript">
				$(window).load(function() {
				$('#slider').nivoSlider({
				pauseTime:10000,
				animSpeed: 1000
				});
				});
				</script>
	
			
			</div>
		</div>
			
			<div id="sidebar">
			
			</div>
		</div>
			
		<div id="footer">
		<p>
			© Survival Games (ErzVaan) 2013 
		</p>
		</div>
	</div>
	
	
	
	
	
	
	
	</div>

	</body>
Ich hoffe ihr erkennt den Fehler, denn ich kann ich einfach nicht finden

//edit: closen pls , habe den Fehler gefunden :3
Önte is offline  
Old 01/29/2013, 23:57   #2

 
boxxiebabee's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
Tausch mal den Javascript Teil unten durch das aus:
Code:
$(document).ready(function() {
  $('#slider').nivoSlider({
				pauseTime:10000,
				animSpeed: 1000
				});
});
Ansonsten mach halt mal die Console auf, lad die Seite neu und schau ob nen Fehler ausgegeben wird.
Und bind mal die neueste jQuery Version ein.
boxxiebabee is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
problem mit slider
09/16/2012 - AutoIt - 1 Replies
versuche derzeit in einem kleinen musikplayer über einen slider zu bestimmten stellen im lied zu springen (geht ja mit soundseek in autoit) allerdings stehe ich vor folgendem problem: Local $hLenght = _SoundLength ($hFile, 2) Local $hPosition = _SoundPos ($hFile, 2) Local $hPosition2 = _SoundPos ($hFile, 1) $soundstate = _soundstatus($hfile) if not @error Then Local $SoundLenght = $hLenght / 1000 Local $SoundPosition = $hPosition / 1000
jQuery Problem?!
09/08/2012 - Web Development - 4 Replies
Hallo, also ich möchte nun ein bisschen jQuery ausprobieren. Mit Firebug funktioniert alles hervorragend. Nun möchte ich das in eine .js Datei schreiben. Bloss es wird nicht ausgeführt. Erstmal habe ich jQuery richtig eingebunden: <script src="http://code.jquery.com/jquery-1.8.1.min. js"></script> Und die .js Datei habe ich folgend eingefügt:
JQuery Problem
04/19/2012 - Web Development - 4 Replies
Moin, also es geht primär um dieses Beispiel: $("#arrow-top").wrap('<a href="#" onclick="getMap(\'Top\');"></a> '); Wenns ichs am PC teste (mit XAMPP) funktioniert es einwandfrei. Wenn ich es aber aufn Server lade, gehts nicht mehr, also er wrap'ed das Bild nicht mehr. Alles andere funktioniert sonst einwandfrei, nur eben das nicht.
jquery Problem
04/17/2012 - Web Development - 2 Replies
Hey Leute! Ich bin gerade dabei mir eine kleine Slideshow mittels Jquery zu basteln und nach tausenden versuchen scheint es einfach nicht zu funktionieren. Hoffe ihr könnt mir helfen :) $(document).ready(function() { $("#slide1").hover( function () {
[JQuery, VB.net, Autoit] Der Iphone Slider
09/01/2011 - Coding Releases - 7 Replies
Joah nach n paar Tagen "basteln" präsentiere ich euch mal wieder nen neuen Release: Der Iphone Slider umgesetzt in 3 Sprachen für mehr Kompatibilität! Uhm jop... Viel erklären kann ich nicht aber ein paar Worte dazu: Die VB.net Version läuft am stabilsten, der Slide-Sub kommt Ursprünglich von TheHackerZero, jedoch ist das ding nichmehr zurückgeslidet und der Sound hat genervt, also hab ich den Ton rausgeschmissen und ne Slide-Back Sub dazugeschrieben, also gibts auch bissel Credits an...



All times are GMT +1. The time now is 17:48.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.