Solved

javascript or JS calander

Posted on 2004-04-12
7
756 Views
Last Modified: 2010-08-05
I have looked for mouse over JS calander, not the new window pop up calendar.
When the user mouse over the link or button, the calendar is showed up and it can be selected month day and year. Pretty straght forward question.

Thank you
0
Comment
Question by:riskyricky1972
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 4

Accepted Solution

by:
g_damodar earned 100 total points
ID: 10811184
0
 
LVL 7

Expert Comment

by:mark-b
ID: 10815954
This is best of breed that I have seen:  http://dynarch.com/mishoo/calendar/
0
 
LVL 2

Expert Comment

by:iloya
ID: 10820329
Its is easy to convert a pop up calendar into a mouse over calendar using a hidden DIV element and loading the calendar in that DIV.  Only problem is that you'll have to do some extra coding for positioning but again you can always have a reusable function that does that.  I am ready to help you write such code if you give me more details
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:riskyricky1972
ID: 10823718
Where can I download js file. Plus when it does not offer mouseout function.

iloya: You can want to check mark-b web links

0
 
LVL 7

Expert Comment

by:mark-b
ID: 10825887
You can download the calendar I mentioned at: http://prdownloads.sourceforge.net/jscalendar/jscalendar-0.9.6.zip?download

As far as mouseOut and mouseOver goes- here's one way you can do it with this calendar:

1)  For the mouseover, when you call the Calendar.setup constructior, add the value pair:
              eventName     : "mouseover"

For example: In the test-position.html (root directory the distribution) change:

            Calendar.setup({
              inputField    : "cal-field-1",
              button         : "cal-button-1",
              align           : "Tr"
            });

to

            Calendar.setup({
              inputField    : "cal-field-1",
              button         : "cal-button-1",
              align           : "Tr",
              eventName  : "mouseover"
            });

This will make the mouseover on the '...' button pop up the calendar.

2) For the mouseout, you will have to modify the calendar.js file:

 a) Add a js function in this file (calendar.js):

    Calendar.calMouseOut = function(ev) {
      var el = Calendar.getTargetElement(ev);
      if ( el && el.id == 'someId' ) {
        window.calendar.callCloseHandler();
        Calendar.stopEvent(ev);
      }
    };

 b) Find the function in the calendar.js file that has this signature:
       Calendar.prototype.create = function (_par) :
 
     There is a block of code in this function that looks like this:

     if (this.isPopup) {
        div.style.position = "absolute";
        div.style.display = "none";
     }

     we need to add two lines in this block to fire the mouseout event:

     if (this.isPopup) {
        div.style.position = "absolute";
        div.style.display = "none";
->    div.id='someId';
->    calendar.addEvent(div, "mouseout", Calendar.calMouseOut);
     }

That's it.  Now the calendar will pop up when the mouse is over the button and it will disappear when the mouse is moved out of the calendar.
0
 
LVL 7

Expert Comment

by:mark-b
ID: 10978379
Did this work for you or is there a problem?
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 10993255
riskyricky1972  Last 10 Grades Given: C C C C C C C C C C
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question