Hey Leute, ich bekommes nicht hin. Ich habe ca. 10 Container und darüber liegen zwei Pfeile. Ein "Previous" und ein "Next" Button.
Die Container heißen #one, #two, #three, #four usw.
Bisher habe ich nur das hinbekommen:
Javascript:
HTML:
Irgendwie klappt es nicht. Ich würde mich über jeden Ansatz freuen.
Danke euch!
Die Container heißen #one, #two, #three, #four usw.
Bisher habe ich nur das hinbekommen:
Javascript:
PHP-Code:
<script type="text/javascript">
$(document).ready(function() {
// Go to the next link
function goToNext() {
window.location.href = .next('#display');
}
}
// Go to the previous link
function goToPrev() {
window.location.href = .prev('#display');
}
}
</script>
HTML:
PHP-Code:
<a href="javascript:goToNext()">next</a>
<a href="javascript:goToPrev()">prev</a>
Danke euch!
Kommentar