Advertisement:

Author Topic: how to use light box effects for images?  (Read 3334 times)

dalasco

  • Newbie
  • *
  • Posts: 9
how to use light box effects for images?
« on: April 06, 2011, 09:55:57 pm »
how to use light box effects for images?

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: how to use light box effects for images?
« Reply #1 on: April 08, 2011, 01:06:51 pm »
You can use fancybox

dalasco

  • Newbie
  • *
  • Posts: 9
Re: how to use light box effects for images?
« Reply #2 on: April 09, 2011, 10:30:32 pm »
where I put fancybox code in osclass files?

code monkey

  • Full Member
  • ***
  • Posts: 204
Re: how to use light box effects for images?
« Reply #3 on: April 10, 2011, 06:33:54 am »
osclass/oc-content/themes/modern
file in /js folder
item.php for inserting js in <head>

alien

  • Jr. Member
  • **
  • Posts: 61
Re: how to use light box effects for images?
« Reply #4 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

alien

  • Jr. Member
  • **
  • Posts: 61
Re: how to use light box effects for images?
« Reply #5 on: April 10, 2011, 01:04:02 pm »
« Last Edit: April 10, 2011, 01:08:26 pm by alien »

dalasco

  • Newbie
  • *
  • Posts: 9
Re: how to use light box effects for images?
« Reply #6 on: April 12, 2011, 03:12:22 pm »
Thanks all!