[Xerte-dev] Re: slideshow navigation within the text?

Ron Mitchell ronm at mitchellmedia.co.uk
Wed Oct 7 14:01:23 BST 2015


Thanks Fay

that's really useful. I had one bit of the syntax wrong :-(

Cheers

Ron

 

From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Fay Cross
Sent: 07 October 2015 13:41
To: For Xerte technical developers
Subject: [Xerte-dev] Re: slideshow navigation within the text?

 

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

 
 
 
This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it. 
 
Please do not use, copy or disclose the information contained in this
message or in any attachment.  Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.
 
This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system, you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20151007/245fe983/attachment.html>


More information about the Xerte-dev mailing list