Solved

Jquery conflict

Posted on 2014-03-25
5
365 Views
Last Modified: 2014-03-25
Hello,

I'm using colorbox and wow slider on the same page when i use colorbox with in the slider it doesn't seem to work no matter what I do ...

The small thumbs right under the news text also load colorbox and work fine , the issue is with the banner on the right... It flips the images but never loads colorbox...

http://latlb.com/news2.php?id=4

Thanks
0
Comment
Question by:zahimezher
  • 3
  • 2
5 Comments
 
LVL 30

Expert Comment

by:Marco Gasi
Comment Utility
You didn't set class='cboxElement' for the a tag of the right image.
0
 
LVL 30

Expert Comment

by:Marco Gasi
Comment Utility
<div style="position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 10; background: none repeat scroll 0% 0% rgb(255, 255, 255); opacity: 0;">
<a class='cboxElement' style="display: block; position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;" href="http://latlb.com/images/small_banner/dsc000572014-03-25-124525.JPG" target=""></a>
</div>

Open in new window


And maybe you have to set the group also:

<a class='group1 cboxElement'...
0
 
LVL 1

Author Comment

by:zahimezher
Comment Utility
echo '<li>';
echo '<a class="group1" href="'.$mainItem['picture'].'"><img src="'.gd_image2($mainItem['picture'],"cropratio=300:200&width=300&height=200").'" id="wows2_0"/>';
echo '</a>';
echo '</li>';

Open in new window


:( I did set the class just like I did in the pictures under the news text. But it simply doesnt show when I inspect element in firefox just like you pointed out.
0
 
LVL 30

Accepted Solution

by:
Marco Gasi earned 500 total points
Comment Utility
The problem is that the markup is generated by WOW SLider so it siumply replace any markup you can write by your self.

So now you have two choices: or you edit the source of the wow slider or you look for another slider which let you customize the markup: there are a bunch all over the web. Personally, I would choose the latter, simply because I find irritating anything prevent me to do what I want with my code. :)
0
 
LVL 1

Author Closing Comment

by:zahimezher
Comment Utility
Thanks :) cant agree more! I thought I was overlooking something.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now