I gang

Jquery Fancybox

I need some help with regards to using fancybox/jquery within my dynamic php site.

This is my html/php code...

//

<a id="example6" href="uploads/originals/news/<?php echo $rows['news_photo']?>"><img src="uploads/120x72/news/<?php echo $rows['news_photo']?>" alt="example6" width="120" height="72" class="friendpicsborder4" title="view larger pic" /></a>

//

This is my jquery code...

//

<script type="text/javascript">

$(document).ready(function() {

$("a#example6").fancybox({

'titlePosition' : 'outside',

'overlayColor' : '#000',

'overlayOpacity' : 0.9

});

});

</script>

//

The issue I have if more than 1 image is outputed (from the php query), the fancybox does not work.

If 1 image is outputed the fancybox works perfectly, however in reality there will be lots of images.

Any ideas how I can get the jquery to load fancybox?

Thanks

Færdigheder: HTML, Javascript, jQuery / Prototype, PHP

Se mere: this class jquery, jquery class, jquery 1.9, jquery 1, fancybox jquery, jquery fancybox, no jquery, jquery, jquery script, jquery image, jquery html, jquery c, c jquery, php javascript class, jquery dynamic, php image href, html img, jquery using, php image jquery, javascript document ready, image query, pic view, jquery images, jquery site, document ready javascript

Om arbejdsgiveren:
( 110 bedømmelser ) London, United Kingdom

Projekt-ID: #1003411

Tildelt til:

ichurakov

Please check inbox. Thnx.

$30 USD in 0 dage
(251 bedømmelser)
6.4

21 freelancere byder i gennemsnit $49 for dette job

TakeReal

Please, see private message.

$30 USD på 1 dag
(1288 bedømmelser)
7.5
ZenithTechnoSol

Please see details in PMB..

$50 USD på 1 dag
(62 bedømmelser)
6.9
webofsolutions

please check private message.

$101 USD in 2 dage
(236 bedømmelser)
6.9
halezabux

Hi,Please see PM.Thanks.

$30 USD in 0 dage
(44 bedømmelser)
6.2
cygital

Let me fix it for you.

$60 USD in 2 dage
(35 bedømmelser)
6.0
kun01

Please check my personal message in your inbox.

$30 USD in 0 dage
(54 bedømmelser)
5.4
slaaxy

please check pm

$30 USD in 0 dage
(28 bedømmelser)
4.7
MinorityPath

hi, please check pmb

$30 USD in 0 dage
(18 bedømmelser)
4.3
mohsulaiman

hi, check pm

$50 USD in 2 dage
(4 bedømmelser)
4.1
dataentry17

It is very easy to fix. I can fix this in few minutes. I'll take < $30 for this job @@ CHECK PM @@. Discuss with me once before choosing other provider.

$30 USD in 0 dage
(10 bedømmelser)
3.5
fasttps

Kindly check your PMB

$80 USD på 1 dag
(3 bedømmelser)
3.4
nexussoftgroup

please see your pmb. thank you

$30 USD på 1 dag
(7 bedømmelser)
3.3
claum

i am able to this in 0 days.

$30 USD in 0 dage
(2 bedømmelser)
2.9
jamesjithin

Please look at the PM

$30 USD på 1 dag
(1 bedømmelse)
1.4
Ozarka

please see pm

$75 USD in 0 dage
(1 bedømmelse)
1.0
maebo

Ready to work for you....

$30 USD på 1 dag
(0 bedømmelser)
0.0
andrewdryder

please check pm

$30 USD på 1 dag
(0 bedømmelser)
0.0
netcomlive

i will do this in 10 minutes time sir .i am using the script for my projects

$30 USD in 0 dage
(0 bedømmelser)
0.0
code14Infocom

please check private message.

$30 USD in 0 dage
(0 bedømmelser)
0.0
braintoppers1

=============================Please check PMB==============================

$200 USD in 5 dage
(0 bedømmelser)
0.0