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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:47:17+00:00 2026-06-13T03:47:17+00:00

can only use Mootools here! Okay so I have a basic input box: <input

  • 0

can only use Mootools here!

Okay so I have a basic input box:

<input id='input_box' value='Name' class="validate['required']" />

The class is for MooTools floor validation.

So what I have in mind is this:

1) The input box has the text of the value inside.
2) When the user clicks on the input box, the left side of the box slides inwards (left to right), so it now shows:

Name [inputbox]

3) If the user clicks out of the box area without typing anything, then it slides back to its original position with Name inside the box area.

I was thinking of doing it this way:

Have the text positioned behind the input box, onlick animate the size of the box, then fade in the text in the position. However, my Mootools knowledge is really bad, maybe something like this (as a starting point)?

        function introFunction() {
        var input = new Fx.Style($('input_box'),'width':'200');
            input.start(200);
    }

Then apply that to onlick, but it doesnt work :/

  • 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-13T03:47:18+00:00Added an answer on June 13, 2026 at 3:47 am

    I gave it a try. http://jsfiddle.net/fJjTN/1/

    I used tween instead of Fx. Instead of doing the effect on the input field, I did it on the label.

    Edit after feedback in comments
    http://jsfiddle.net/47CAH/1/

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

Sidebar

Related Questions

I have an assignment, This is my HashMap initialization.. I can only use standard
Currently it seems that I can only use effects in their most basic form
I have a file as a resource. I can only use read() , write()
Idea taken from here - this time you can only use PHP. Is this
I have 8 GB of RAM, but Haskell programs seemingly can only use 1.3
I am finally moving to GitHub for source control. We can only use a
Can i only use HTTP handlers or HTTP modules if i use my ASP.NET
When Matlab is installed in its 64 bit version, it can use only 64
From a terminal window: When I use the rm command it can only remove
Initiated by the reply . How can I use only Regex instead of wildcards?

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.