Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Slider

Featured Replies

Ok, Im trying to add Nivo Slider to a normal html page that Ive built in Dreamweaver, Ive been to http://nivo.dev7studios.com/ and downloaded the files and put them on my server, where the site is, they are:

 

jquery.nivo.slider.pack.js

nivo-slider.css

 

On the Nivo webpage, it givesme 3 pieces of code for usage, they are:

 

<link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" />

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>

<script src="jquery.nivo.slider.pack.js" type="text/javascript"></script>

 

-----------------------------

 

<div id="slider">

<img src="images/slide1.jpg" alt="" />

<a href="http://dev7studios.com"><img src="images/slide2.jpg" alt="" title="#htmlcaption" /></a>

<img src="images/slide3.jpg" alt="" title="This is an example of a caption" />

<img src="images/slide4.jpg" alt="" />

</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>

 

*In my actual ones Ive changed the image file path to where my files are*

-----------------------------

 

<script type="text/javascript">

$(window).load(function() {

$('#slider').nivoSlider();

});

</script>

 

Does anyone know where I need to put these pieces of code?

 

Ive had a go myself, and the images appear one above the other going down the page :(

 

Thanks

Gem

Ok, Im trying to add Nivo Slider to a normal html page that Ive built in Dreamweaver, Ive been to http://nivo.dev7studios.com/ and downloaded the files and put them on my server, where the site is, they are:

 

jquery.nivo.slider.pack.js

nivo-slider.css

 

On the Nivo webpage, it givesme 3 pieces of code for usage, they are:

 

<link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" />

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>

<script src="jquery.nivo.slider.pack.js" type="text/javascript"></script>

 

-----------------------------

 

<div id="slider">

<img src="images/slide1.jpg" alt="" />

<a href="http://dev7studios.com"><img src="images/slide2.jpg" alt="" title="#htmlcaption" /></a>

<img src="images/slide3.jpg" alt="" title="This is an example of a caption" />

<img src="images/slide4.jpg" alt="" />

</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>

 

*In my actual ones Ive changed the image file path to where my files are*

-----------------------------

 

<script type="text/javascript">

$(window).load(function() {

$('#slider').nivoSlider();

});

</script>

 

Does anyone know where I need to put these pieces of code?

 

Ive had a go myself, and the images appear one above the other going down the page :(

 

Thanks

Gem

 

you need to add them like this

<head>
<link rel="stylesheet" href="your-sites-css-folder/nivo-slider.css" type="text/css" media="screen" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="your-sites-javascript-folder/jquery.nivo.slider.pack.js" type="text/javascript"></script> 

then after that you need to load the script 

<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
</head>

hope that helps

<link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" />

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>

<script src="jquery.nivo.slider.pack.js" type="text/javascript"></script>

 

<script type="text/javascript">

$(window).load(function() {

$('#slider').nivoSlider();

});

</script>

 

Will go within the <head></head> tags.

checked here http://nivo.dev7studios.com/

 

I suspect you will have to tell it not to in the parameters. From the site

 

<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider({
	effect:'random', //Specify sets like: 'fold,fade,sliceDown'
	slices:15,
	animSpeed:500, //Slide transition speed
	pauseTime:3000,
	startSlide:0, //Set starting Slide (0 index)
	directionNav:true, //Next & Prev
	directionNavHide:true, //Only show on hover
	controlNav:true, //1,2,3...
	controlNavThumbs:false, //Use thumbnails for Control Nav
     controlNavThumbsFromRel:false, //Use image rel for thumbs
	controlNavThumbsSearch: '.jpg', //Replace this with...
	controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
	keyboardNav:true, //Use left & right arrows
	pauseOnHover:true, //Stop animation while hovering
	manualAdvance:false, //Force manual transitions
	captionOpacity:0.8, //Universal caption opacity
	beforeChange: function(){},
	afterChange: function(){},
	slideshowEnd: function(){} //Triggers after all slides have been shown
});
});
</script>

 

at a guess you need to supply controlNav:false

  • Author

Wooop Woop

 

Thanks Zed - am very new to jquery. Works a treat :) +1 :)

 

Gem

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.