The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Pirobox Help
Justin G
post Jun 24 2012, 06:16 PM
Post #1





Group: Members
Posts: 1
Joined: 24-June 12
Member No.: 17,324



I have a pirobox gallery on my site (jguffphotography.com) and everything is working ok, but im wondering if I can improve something.

Currently, when you click an image.. it loads on the screen, and you can click "open in new window." When you do that it opens the .jpg url which is just a plain white background with the image top left. If there a way I can change that so instead of opening a new window that directs to the actual jpg file, and have it direct to a another webpage (that way I can make it look halfway decent, while displaying the image).

I'm pretty novice to html, I'm surprised I even got my site to look the way it does now lol.

Thanks!

I found this in the pirobox .js file. Do you think I can change some of these parameters to specify that I don't want it to open "this url", and add a parameter specification to the actual link in the body?

$(piro_gallery).each(function(array) {
var item = $(this);
item.bind('click',function© {
c.preventDefault();
piro_open(item.attr('href'));
var this_url = item.attr('href');
var descr = item.attr('title');
var number = item.attr('rel');
if( descr == ""){
caption.html('<p>'+ this_url+'<em class="number">' + number + '</em><a href='+ this_url +' class="link_to" target="_blank" title="Open Image in a new window"></a></p>');
}else{
caption.html('<p>'+ descr+'<em class="number">' + number + '</em><a href='+ this_url +' class="link_to" target="_blank" title="Open Image in a new window"></a></p>');

This post has been edited by Justin G: Jun 24 2012, 06:31 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Jun 26 2012, 03:24 AM
Post #2


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



AFAICS, it's a Lightbox alternative. I couldn't find any such code at pirobox. I have the impression you are using an older version of the script.

I strongly advice you to pass your page through the HTML and CSS validators and fix the errors:
http://htmlhelp.com/tools/validator/ or http://validator.w3.org/
http://jigsaw.w3.org/css-validator/
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 04:18 PM