SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Threaded View

  1. #1
    SitePoint Zealot
    Join Date
    Jan 2002
    Posts
    167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    back again: Moving Layers (the Wilco Thread)

    moving on from getting the cell position

    Code:
    <script language="javascript">
    <!--
    var agt=navigator.userAgent.toLowerCase();
       var is_gecko = (agt.indexOf('gecko') != -1);
       var keep_menu = false;
    
    function show_clan_links(ob,clanid)
    {
    		var layer = document.getElementById('clanlinks');
    		layer.offsetLeft = 
    		ob.offsetLeft;
    		
    		var title_table = document.getElementById('title_table');	
    		layer.offsetTop = ob.offsetTop + title_table.height + ob.height;
    		layer.visible = true;
    		//alert(ob.offsetLeft);
    }
    # -->
    </script>
    <div id="clanlinks" style="position:absolute; left:55px; top:109px; width:215px; height:222px; z-index:1; overflow: visible;"></div>


    <td class="clan_links" onMouseOver="this.className='clan_links_mover';show_clan_links(this,'1');" onMouseOut="this.className='clan_links';">



    error on "layer.offsetLeft = " This object does not support this property or action. when the MSDN page says it does.



    ** also how do I set the visibility of a Div tag?
    Last edited by Wilco; Oct 7, 2002 at 11:47.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •