PDA

View Full Version : Overlib goes crazy


boles
01-06-2004, 10:21 AM
Antoher question.

I have tried to include the calendar into another php-page using the
<?php include "neatcal.php"; ?> command.

Everything works, except for the overlib function. Instead of showing the overlib on the mousepoint it displays a few centimeters lower. But when I open the calendar page outside the other page it works fine.

Can anyone tell me what I did wrong?



Thanks.

boles
01-12-2004, 06:03 AM
I have found the solution to this problem and I like to share it with you.

When you include your calendar into an existing php-page and want to use the overlib function there is only one simple thing that you must do.

You have to move the lines below from the calendar page to the existing php-page.


<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<script language="JavaScript" src="overlib_mini.js"><!-- overLIB &copy; Erik Bosrup --></script>


If both pages aren't in the same directory make sure the link to the js-file is changed correctly.