On 28/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Warning: This Doctype will fail to trigger Standards mode in some browsers. This will cause them to emulate bugs in earlier browsers (such as the serious problem with the width property in MSIE. HTML 4.01 Strict (with the URL to the DTD) is most suitable for the majority of documents authored today. http://www.w3.org/QA/2002/04/valid-dtd-list.html > /* get the mouse left position */ > x = event.clientX + document.body.scrollLeft; I think that this assumes Internet Explorer. Really rather poor authoring practice - it doesn't even test for support. My JavaScript isn't up to the task of making this cross browser, but this list isn't the right place for that. http://css-discuss.incutio.com/?page=OffTopic > y = event.clientY + document.body.scrollTop + 35; > Popup.style.left = x; Oh dear. The left property takes a length, but this is being set to an integer. Popup.style.left = x + 'px'; -- David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/