Okay I picked one that should do the job but....when I cut and pasted the code as directed it won't run! Am I doing something wrong or is the script not working? ? Anyway, there was a link on the site to a forum and it linked back here so...anybody want to help me?
@UltimaterNov 07.2005 — #It works fine for me in both IE and Firefox. You just need to download the overlib JS file and put it in the same folder directory as your page.
Another method would be to externally link to thier overlib script which would mean to change: <i> </i><script language="JavaScript" src="overlib_mini.js"></script> </HEAD>
I'm trying to get the same JS to work for me, and I've done all the necessary steps, including downloading the overlib_mini.js file. I copied and pasted the text of the script into an HTML file and tried to run it, all files in the same directory, but no luck!!
I get an erorr saying "Object Expected" and it says it's related to the line where the second text box is...
Unfortunately, I'm dealing with an internal website, so I can't offer you a link to the actual pages I'm working with. I did copy the two source files to my personal website, you can check out what happens here: http://natuscape.com/natalia/calendarpicker.html
One tip that might help you diagnose is that I don't even get the tool tip that's supposed to appear when the cursor rolls over the calendar picker image. The error refers to the lines of code where the JS functions are summoned at the calendar picker image. Was there anything I should've replaced in there? Could this be a browser setting issue?
However, the only changes you need to do are within the onmouseover event handlers of both A tags and retaining your overlib_mini JS file back to the way it was before you started editing it.
You cannot put SCRIPT HTML tags in JS files. The JS file is very flexable and can be adjusted from the webpage. You have total control over the functionality from your webpage and there should NEVER be a need to edit the JS file.
Oh yeah, and on a server, src="overlib.js" searchs the root-level directory for the file, not the directory you are currently in, simply add a forwardslash to the file location or use an absolute URL. <i> </i><script type="text/javascript src="http://natuscape.com/natalia/overlib_mini.js"></script>
The problem was that I didn't notice I had put the DIV tag before the TR and TD tags of the cell where the field is located, so that's what was tripping the script up. Lesson learned: if your field is on a table cell, put the DIV tag INSIDE the cell!!!