Hmm the zip file didn't seem to have uploaded properly. Please re-zip and upload again.
Hmm the zip file didn't seem to have uploaded properly. Please re-zip and upload again.
Attachment 5598 here
Ok, try the latest modified .js file,which lets you specify a list of URLs to go to when the pagination links are clicked on, respectively, inside the initialization portion of the script. This lets you define the URLs without touching the dynamic, PHP generated portion of the script. To specify the links, add the code in red to your initialization code:
Code:<script type="text/javascript">
featuredcontentglider.init({
gliderid: "canadaprovinces", //ID of main glider container
contentclass: "glidecontent", //Shared CSS class name of each glider content
togglerid: "p-select", //ID of toggler container
remotecontent: "", //Get gliding contents from external file on server? "filename" or "" to disable
selected: 0, //Default selected content index (0=1st)
persiststate: false, //Remember last content shown within browser session (true/false)?
speed: 500, //Glide animation duration (in milliseconds)
direction: "downup", //set direction of glide: "updown", "downup", "leftright", or "rightleft"
autorotate: true, //Auto rotate contents (true/false)?
paginationlinks: ['http://cnn.com', 'http://google.com', 'http://dynamicdrive.com'],
autorotateconfig: [3000, 2], //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
onChange: function(previndex, curindex, $allcontents){ // fires when Glider changes slides
//custom code here
}
})
</script>
Alright, thanks. But I want the reader to be able to click on each of the (in my case) five elements in the selector, and go to the full article. So somehow, paginationlinks must contain those five links. Links to the last five posts. How to do that? When I tried this, it worked for the first item in the selector, but not the next four.
To have an extra loop in there would not be desirable, as it would slow down the server.
Hmm by "each of the (in my case) five elements in the selector" do you mean each pagination link should go to a different URL, so if you have 5 pagination links, that means 5 links? If so this is simply done by specifying 5 links inside the paginationlinks option:
Code:paginationlinks: ['http://cnn.com', 'http://google.com', 'http://dynamicdrive.com', 'http://javascriptkit.com', 'http://cssdrive.com'],
Did you read my featured.php? If so, you see that the togglebox queries wordpress for five posts and shows the title, category and author of each. I want the reader to be able to open the permalink to the corresponding post by clicking.
Looking at featured.php in more detail now, I gather this is the portion of each pagination link that you actually want to onmouseover to load a panel, and onclick to go to a specific URL:
?Code:<span class="fet"><?php the_title(); ?></span>
Do you have a link to the fully generated page? It'll make things lot easier to picture.
I have sent you the link in a private message. Please get back to me when you have had a chance to look at it.