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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:49:23+00:00 2026-06-04T15:49:23+00:00

I need fadeout a div in my page using prototype. How can I fadeout

  • 0

I need fadeout a div in my page using prototype. How can I fadeout following jquery code in prototype?

$('.exercise-main .content .loading-failure').fadeOut(function(){

    //my code

}
  • 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-04T15:49:25+00:00Added an answer on June 4, 2026 at 3:49 pm

    I think you will need to use script.aculo.us (which is an excellent add-on to the fantastic prototype.js) so as to achieve the Fade effect.

    Basic Syntax

    new Effect.Fade('id_of_element', [options]);
    
     OR
    
    new Effect.Fade(element, [options]);

    Complete Code.

    <html>
    <head>
    <title>script.aculo.us examples</title>
    
       <script type="text/javascript" 
       src="/javascript/prototype.js"></script>
       <script type="text/javascript" 
       src="/javascript/scriptaculous.js?load=effects"></script>
       <script type="text/javascript">
    
       function FadeEffect(element){
           new Effect.Fade(element, 
           { duration:1});
       }
       function ShowEffect(element){
           new Effect.Appear(element, 
           {duration:1, from:1.0, to:1.0});
       }
    
       </script>
    </head>
    <body>
    <div onclick="FadeEffect('hideshow')">
        Click me to fade out the image
    </div>
    <br />
    <div onclick="ShowEffect('hideshow')">
        Click me to display the image once again
    </div>
    <br />
    <div id="hideshow">
        <img src="/images/scriptaculous.gif" alt="script.aculo.us" />
    </div>
    
    </body>
    </html>
    

    Tutorial link – http://www.tutorialspoint.com/script.aculo.us/scriptaculous_fade_effect.htm

    I myself have used prototype.js and this add-on very heavily so just in case you face any issue, feel free to comment.. 🙂

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

Sidebar

Related Questions

I'm loading some some html into a div through ajax using jquery. Once the
I am using the following code: function deleteImage2($item) { $item.fadeOut(function() { var $list =
I need to call a function in the following fashion: var f = 'fadeOut';
I am loading images externally using jQuery load function.. but not able add light
I'm using a jquery plugin on my page, vTicker , for easy and simple
How do I refresh the page(from overlay) using jQuery with Fade In effect? I
I am using jQuery and Joomla. Sinca I need to use jQuery.noConlict() due to
Using jquery, I currently append html to a div on a click event. The
I've got the following code which I've put together, and I need to change
Need to insert selected text on the page into textarea. There must be some

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.