Results 1 to 3 of 3

Thread: Featured Content Glider - prototype.js

  1. #1
    Join Date
    Jul 2009
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Featured Content Glider - prototype.js

    1) Featured Content Glider

    2) http://www.dynamicdrive.com/dynamici...tentglider.htm

    3) Hi, 2 things about Featured Content Glider, by the way, I love this script, thanks for it and supporting it.

    I wanted to use Feature content on the same page with a light box that uses prototype.js. When I install prototype on the page the glider stops working. Any way for the two of them to live together?

    Second thing, I have 3 different versions of Glider, the original, one that fades and one that changes with mouse hover. And I cut and pasted one that hovers and fades. Any way to wrap these all into one script? Add fade as an option along with updown leftright and an initalization option for hover?

    Thanks again, great scripts!

  2. #2
    Join Date
    Oct 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i know that this thread is old but some people out there still have issues with this function so my answer could be helpful to other people who google this.

    to solve this issue you gotta use the latest version of jQuery wich has included jQuery.noconflict() function

    many other libraries and Frameworks uses the symbol "$" as jQuery does... so whenever you are calling to that function it enters in some sort of conflict with jQuery

    you can do the following to avoid that

    <code>

    <script type="text/javascript">
    var j = jQuery.noConflict(true);
    </script>
    <script type="text/javascript">

    </code>

    in there you are creating a variable named j and setting the noConflict to it

    then you can replace in your code whenever you have the symbol "$" for the var "j" in this eg.

    $(document).ready(function() {

    can be replaced with

    j(document).ready(function() {

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Or, at least in the case of the original question, you could use a jQuery based lightbox. A better solution really as far as code economy and efficiency goes. In fact, almost anything you might want to do with prototype can be done with jQuery, so this solution has a broader aspect to it as well.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •