
Originally Posted by
Dance10Looks10
As it is now, trying to capture the User's screen resulotion and/or current window size on the fly and calculate the position of the icons based on lower-right coordinates is almost impossible. In addition, there's no way to tell if the user has resized the window. The icons don't move, by the way. they just disappear in to lah-lah land.
This is not how the demo appears here using either IE6 or FF on a windows platform. What OS and browser are you using? The demo appears here to work at any screen res or window size. Resizing the window has no effect on the visibility of the icons as, they move to accommodate. If the demo works this way for you too and it is just your implementation of the script that has these problems, perhaps you have changed the code or surrounded it in an element that cannot adapt. There are other possibilities so, if it is just your implementation:
PLEASE: Include the URL to your problematic webpage that you want help with.
If you really want the icons in the upper left, change:
Code:
if (document.all||document.getElementById){
cross_obj.style.left=parseInt(dsocleft)+parseInt(window_width)-Hoffset+"px"
cross_obj.style.top=dsoctop+parseInt(window_height)-Voffset+"px"
}
to:
Code:
if (document.all||document.getElementById){
cross_obj.style.left=Hoffset+"px"
cross_obj.style.top=dsoctop+Voffset+"px"
}
This works here. It may or may not work for you, depending upon why the original script wasn't working for you.
Bookmarks