1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Fancybox left and right arrows

Discussion in 'JavaScript' started by drew68, Apr 13, 2012.

  1. #1
    drew68, Apr 13, 2012 IP
  2. e-abi

    e-abi Member

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    3
    Trophy Points:
    38
    #2
    Scroll to the bottom of this page:
    http://fancybox.net/howto

    It talks about supplying rel attributes. You should have unique rel attribute inside the a tag for each picture group.
    Then the arrows would appear automatically.
     
    e-abi, Apr 14, 2012 IP
  3. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #3
    thanks...this site is a bit unique in the sense that ...all she does is put images in thru Media. i go inside the pages and there are NO pictures in there. so other than putting images in thru Media "Add New" ...there is no other way she puts in images. usually i will see the images in the page file and the code will look like this...

    <a class="grouped_elements" rel="group1" href="image_big_1.jpg"><img src="image_small_1.jpg" alt=""/></a>
    <a class="grouped_elements" rel="group1" href="image_big_2.jpg"><img src="image_small_2.jpg" alt=""/></a>

    ....but i don't see this HTML anywhere in any of the pages.

    that's what i don't get. whoever built this site, had fancybox working for all the images put in thru Media ...i guess
     
    drew68, Apr 14, 2012 IP
  4. e-abi

    e-abi Member

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    3
    Trophy Points:
    38
    #4
    What system is your site built on? or who built your site?
    This task is for someone who knows HTML or PHP
     
    e-abi, Apr 15, 2012 IP
  5. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #5
    built in wordpress.

    i know html and php...i'd say on a grade level with php a... c-. but well versed with html/css.

    i didn't initially build this site..although i altered a bunch of stuff to it, never altered fancybox. i did everything mentioned in there. here's the catch. when she puts images in the gallery...she doesn't insert the image inside the page. that gallery is nowhere in any page or post. not in any content. she just inserts the images thru Media. and that's the catch. any 'rel' reference to the html tag isn't doable because it's nowhere to be found. all she does is add the image in Media and that's it. that's what's so strange about this. i've used lightbox a lot ...but never fancybox and i think this was the reason why...just too much involved for just a simple left right cursor. it's like the difference between wordpress and joomla. one's more basic and simple and the other is 10x's more intricate
     
    drew68, Apr 15, 2012 IP
  6. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #6
    it could also be that she's using an older version of fancybox and not fancybox2? idk...i'm completely stumped over arrows
     
    drew68, Apr 15, 2012 IP
  7. e-abi

    e-abi Member

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    3
    Trophy Points:
    38
    #7
    What is the exact version of Fancybox?
     
    e-abi, Apr 15, 2012 IP
  8. e-abi

    e-abi Member

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    3
    Trophy Points:
    38
    #8
    e-abi, Apr 15, 2012 IP
  9. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #9
    well, usually in a gallery...you could see the code but in this case, as i mentioned there is no code because she just inserts them via Media. which i find strange. i'll look at that link...

    i appreciate your help e-abi...thanks so much..i'll let you know how it goes
     
    drew68, Apr 15, 2012 IP