Osclass forums

Support forums => General help => Topic started by: dalasco on April 06, 2011, 09:55:57 pm

Title: how to use light box effects for images?
Post by: dalasco on April 06, 2011, 09:55:57 pm
how to use light box effects for images?
Title: Re: how to use light box effects for images?
Post by: Juan Ramón on April 08, 2011, 01:06:51 pm
You can use fancybox (http://fancybox.net/)
Title: Re: how to use light box effects for images?
Post by: dalasco on April 09, 2011, 10:30:32 pm
where I put fancybox code in osclass files?
Title: Re: how to use light box effects for images?
Post by: code monkey on April 10, 2011, 06:33:54 am
osclass/oc-content/themes/modern
file in /js folder
item.php for inserting js in <head>
Title: Re: how to use light box effects for images?
Post by: alien on April 10, 2011, 12:00:57 pm
ok JS in <head> but
what i do for
Create a link element (js call) (<a href>)
like for example fancybox site :
<a id="single_image" href="image_big.jpg"><img src="image_small.jpg" alt=""/></a>
for images ?

item.php code
Code: [Select]
<div id="photos">
                        <?php while ( osc_has_item_resources() ) { ?>
                            <img src="<?php echo osc_resource_url() ; ?>" width="320" alt="" title=""/>
                        <?php ?>
                    </div>

thanks
Title: Re: how to use light box effects for images?
Post by: alien on April 10, 2011, 01:04:02 pm
ok i found answer on this post :

http://forums.osclass.org/index.php/topic,364.msg1649.html#msg1649 (http://forums.osclass.org/index.php/topic,364.msg1649.html#msg1649)
Title: Re: how to use light box effects for images?
Post by: dalasco on April 12, 2011, 03:12:22 pm
Thanks all!