[Xerte-dev] Re: slideshow navigation within the text?
Fay Cross
Fay.Cross at nottingham.ac.uk
Wed Oct 7 13:40:37 BST 2015
You can add those lines of code from the model to a normal link in the text
e.g. This works: <a href="javascript:void(0);" onclick='slideshow.panelChange($("#pageContents").data("currentPage") - 1);'> Previous </a>
You'd still have the default buttons but you could probably hide these too if you wanted to override the way it normally works completely
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 07 October 2015 12:59
To: 'For Xerte technical developers'
Subject: [Xerte-dev] slideshow navigation within the text?
Hi all
quick question...
On a slide show page is there a way I can add navigation to a text or graphic element e.g. next >> which replicates the model code e.g.
.click(function() { slideshow.panelChange($("#pageContents").data("currentPage") + 1);
and likewise:
.click(function() {slideshow.panelChange($("#pageContents").data("currentPage") - 1);
Cheers
Ron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20151007/465b8122/attachment.html>
More information about the Xerte-dev
mailing list