davist11/jQuery-Presentation — Issue #5: Do the 'navPager' and 'previous/next links' above the presentation?
Author: bueroexit
Created: 2011-10-27 19:39:41+00:00
State: open

Hi,
I´m not so proofed in jquery/javascript coding. I want the 'navPager' and 'previous/next links' above the presentation.
If I change the code from

```javascript
//Add in the pager
var navPager = '

';
for(var i = 1; i < $presentation.numSlides+1; i++) {
navPager += '
'+i+'
';
}
$presentation.append(navPager);

if($presentation.currentHash) {
$presentation.find('.'+$presentation.options.pagerClass).children(':nth-child('+$presentation.currentHash+')').addClass('current');
$presentation.count = $presentation.currentHash;
} else {
$presentation.find('.'+$presentation.options.pagerClass).children(':first-child').addClass('current');
$presentation.count = 1;
}

//Add in the previous/next links
$presentation.append('

'+$presentation.options.prevText+'
'+$presentation.options.nextText+'
');
```

to

```javascript
//Add in the pager
var navPager = '

';
for(var i = 1; i < $presentation.numSlides+1; i++) {
navPager += '
'+i+'
';
}
$presentation.prepend(navPager);

if($presentation.currentHash) {
$presentation.find('.'+$presentation.options.pagerClass).children(':nth-child('+$presentation.currentHash+')').addClass('current');
$presentation.count = $presentation.currentHash;
} else {
$presentation.find('.'+$presentation.options.pagerClass).children(':first-child').addClass('current');
$presentation.count = 1;
}

//Add in the previous/next links
$presentation.prepend'

'+$presentation.options.prevText+'
'+$presentation.options.nextText+'
');
```

the slides won´t work. I think the problem is that the code looks to childs.
Could you give me some help please?