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 7968113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:01:33+00:00 2026-06-04T07:01:33+00:00

This script is working here https://jsfiddle.net/ByEzF/ but in the site that stopping working: <script

  • 0

This script is working here https://jsfiddle.net/ByEzF/ but in the site that stopping working:

<script type="text/javascript">
    var Add = {
        setOptions: function(number) {
            $('battle-options')
            .removeClass('five-options')
            .removeClass('four-options')
            .removeClass('three-options')
            .removeClass('two-options');

            var option3 = $('option-3');
            var option4 = $('option-4');
            var option5 = $('option-5');

            var versus3 = $('versus-3');
            var versus4 = $('versus-4');
            var versus5 = $('versus-5');

            var elements5 = new Elements([option3, option4, option5, versus3, versus4, versus5]);
            elements5.setStyle('display','none');

            if(number == 5) {
                $('battle-options').addClass('five-options');
                elements5.setStyle('display','block');
                $$('.battle-option input[type="file"]').set('size', 10);
            } else if(number == 4) {
                $('battle-options').addClass('four-options');
                new Elements([option3, option4, versus3, versus4]).setStyle('display','block');
                $$('.battle-option input[type="file"]').set('size', 15);
            } else if(number == 3) {
                $('battle-options').addClass('three-options');
                new Elements([option3, versus3]).setStyle('display','block');
                $$('.battle-option input[type="file"]').set('size', 19);
            } else if(number == 2) {
                $('battle-options').addClass('two-options');
                $$('.battle-option input[type="file"]').set('size', 22);
            }
        }
    };

    window.addEvent('domready', function(){
        Add.setOptions(2);
    });
</script>

I have this error message:

Uncaught TypeError:[object window] has no method ‘addEvent’?

  • 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-06-04T07:01:34+00:00Added an answer on June 4, 2026 at 7:01 am

    window.addEvent is only available through MooTools (which is being loaded on the jsfiddle page).

    https://mootools.net/docs/core/Element/Element.Event

    From the docs:

    Notes: This method is also attached to Document and Window.

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

Sidebar

Related Questions

can someone explain me why this script is not working? <script type=text/javascript> function destroy(ID)
I have this function working <script type=text/javascript> $(window).scroll(function() { if ($(window).scrollTop() == $(document).height() -
Here is a JSfiddle link to the script I am working with: http://jsfiddle.net/TSM_mac/bnjWQ/ To
Why is it that this works: http://jsfiddle.net/w82W8/1/ But this doesn't?: http://jsfiddle.net/w82W8/2/ This question may
I used this script to create a jQuery accordion. Check out the working jsFiddle
I'm working on a Python script that transforms this: foo bar Into this: [[Component
I am working on a Bash shell script that does something like this: #!/bin/bash
I am trying to write my very first python script. This was working but
I'm using the ajaxify-html5.js script found here: https://github.com/browserstate/ajaxify The script is working great, except
I have the following script: http://jsfiddle.net/oshirowanen/8mQ7x/1/ Which works fine, but as soon as I

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.