Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6744677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:06:44+00:00 2026-05-26T12:06:44+00:00

I think my problem is very small, but i still need for help in

  • 0

I think my problem is very small, but i still need for help in my jquery code, I think it’s all about js syntax:

$(function() {

    // Options for SuperBGImage
    $.fn.superbgimage.options = {
            randomtransition: 2, // 0-none, 1-use random transition (0-7)
            z_index: -1, // z-index for the container
            slideshow: 1, // 0-none, 1-autostart slideshow
            slide_interval: 2000, // interval for the slideshow
            randomimage: 1, // 0-none, 1-random image
            speed: 'slow' // animation speed
     };
     // initialize SuperBGImage
     $('#thumbs').superbgimage().hide();
});



$(function() {
var $j = jQuery.noConflict();
    $j(document).ready(function(){
    $j('.menu-nav li').hover(
        function() {
            $j(this).addClass("active");
            $j(this).find('.ulwrapper').stop(false, true).fadeIn();
            $j(this).find('.ulwrapper .ulwrapper').stop(false, true).fadeOut('fast');
        },
        function() {
            $j(this).removeClass("active");        
            $j(this).find('div').stop(false, true).fadeOut('fast');
        }
    );
    $j('.ulwrapper').hover(
        function() {
            $j('.parent').addClass("active_tab");
        },
        function() {
            $j('.parent').removeClass("active_tab");        
        }
    );
});
});

the first code is for the Big image where the other is to work with my multi-level menu. I tried to workaround this by changing

$(function() {

to

$j(document).ready(function(){

but the browser only runs one code! and gives me:

Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function
(anonymous function)

I am waiting your help, thanks too much.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:06:45+00:00Added an answer on May 26, 2026 at 12:06 pm

    Once you call jQuery.noConflict, the “$” binding won’t work anymore. You don’t say why you’re calling it, but you can use just “jQuery” instead of “$”. Your “$j” variable is local to that function where you call “noConflict”.

    Also, it doesn’t make sense to do this:

    $(function() {
      $(function() {
        // ...
      });
    });
    

    which is what you’re doing in that second “ready” handler. That is, you’re setting up a “ready” handler from inside another one, which makes no sense really.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got over a problem, I think a very specific one. I've got 2
My problem is one that you would think is quite common, but I haven't
I think I have a synchronization problem...It may be too basic..Please help.. I have
I have a small Python program consisting of very few modules (about 4 or
Here is a small problem I am having. 3 very simple models : >>>
I have very small and quick question. Is it neceseary for all the developers
hey guys, i have very small issue please see the code below // this
I actually have two questions regarding the same problem but I think it is
I have got a lengthy question to ask. First of all Im still very
I am having a small problem with the jQuery cycle plugin and its timeout.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.