SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2001
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Swap Layer in NS6

    Hello,

    I have swap layer code on mouseover that I made using Dreamweaver 3. When mousing over images on the left side of the page, a layer in the middle of the page changes (different text and background image per layer). Anyway, works great in IE 4 to 6 and NS 4, but no worky in Netscape 6 (layers don't change - stays on the one that is visible when no mouseover behavior).

    Here is the function:

    function MM_showHideLayers() { //v3.0
    var i,p,v,obj,args=MM_showHideLayers.arguments;
    for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
    }

    Here are the first 2 div tags:

    <!-- 1 -->
    <div id="off" style="position:absolute; left:166; top:127; width:400; height:258; z-index:1; visibility: visible; overflow: visible; background-image: url(/images/home.jpg); layer-background-image: url(/images/home.jpg); border: 1px none #000000">

    <table border="0" cellspacing="0" cellpadding="5" background="">
    <tr>
    <td>
    <p><font face="verdana, arial, helvetica, sans-serif" size="5" color="#EF1008"><b>ASI Computer Systems</b></font><br>
    <img src="/images/clear.gif" border="0" width="100" height="10" alt=""><br>
    <font face="Times New Roman, Times, serif" size="3">"<i>Our mission
    is to establish a committed partnership with each of our customers and
    to provide the necessary products and services to help their business
    become more successful and profitable.</i>"</font><br>
    <br>
    </p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp; </p>
    </td>
    </tr>
    </table>
    </div>

    <!-- 2 -->
    <div id="pm" style="position:absolute; left:166; top:127; width:400; height:258; z-index:2; overflow: visible; background-image: url(/images/gu_home1.jpg); layer-background-image: url(/images/gu_home1.jpg); border: 1px none #000000; visibility: hidden">
    <table border="0" cellspacing="0" cellpadding="5" background="">
    <tr>
    <td>
    <br>
    <br>

    <font face="verdana, arial, helvetica, sans-serif" size="5" color="#EF1008"><b>ProfitMaker</b></font><br>
    <br>
    <font face="verdana, arial, helvetica, sans-serif" size="2">
    A fully-integrated program that automates many of the functions for promotional products distributor's operations<br>
    </td>
    </tr>
    </table>
    </div>

    Here is the 2nd div link:

    <a href="/guest/products/gu_profitmaker.asp" onMouseOver="MM_showHideLayers('off','','hide','pm','','show','pro','','hide','plus','','hide','max','','hide','pros','','hide','ecom','','hide');MM_swapImage('pml','','/images/gu_pmon.gif',1);MM_displayStatusMsg('ProfitMaker');return document.MM_returnValue" onMouseOut="MM_showHideLayers('off','','show','pm','','hide','pro','','hide','plus','','hide','max','','hide','pros','','hide','ecom','','hide');MM_swapImgRestore();MM_displayStatusMsg('');return document.MM_returnValue"><img src="/images/gu_pm.gif" width="120" height="40" name="pml" border="0"></a>

    Any thoughts? Thanks!

  2. #2
    SitePoint Enthusiast
    Join Date
    Sep 2001
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dreamweaver 4 fixed it....
    Last edited by jamesb; Sep 14, 2001 at 13:01.


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
  •