Results 1 to 3 of 3

Thread: Y aint that working

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    156

    Unhappy

    i m trying runing this page on NetScape and it not working.
    can any1 tell me y ?
    on IE5 it works.

    the code:
    <html>
    <head>
    <META NAME="VI60_defaultClientScript" CONTENT=JavaScript>
    <META NAME="GENERATOR" CONTENT="Microsoft Visual Studio 6.0">
    <LINK REL="stylesheet" HREF="StyleSheets/csslinks.css">
    <BASE TARGET="main">
    <TITLE></TITLE>

    <SCRIPT LANGUAGE=javascript>
    <!--

    function openit(strUrl)
    {
    parent.frames.main.location.href=strUrl;
    }
    function btn_mouseover(btn)
    {
    btn.style.backgroundColor="#c0e0e6";
    }
    function btn_mouseout(btn)
    {
    btn.style.backgroundColor="#f4e7cd";
    }
    function btn_mousedown( btn)
    {
    btn.style.borderBottom ="#f4e7cd inset";
    btn.style.borderLeft ="#f4e7cd inset";
    btn.style.borderRight="#f4e7cd inset";
    btn.style.borderTop = "#f4e7cd inset";
    }

    function btn_mouseup( btn)
    {
    btn.style.borderBottom ="#f4e7cd outset";
    btn.style.borderLeft ="#f4e7cd outset";
    btn.style.borderRight="#f4e7cd outset";
    btn.style.borderTop = "#f4e7cd outset";
    }

    //-->
    </SCRIPT>


    </HEAD>
    <BASE TARGET="main">
    <BODY BGCOLOR="#ffffff" >
    <TABLE WIDTH="20%" ALIGN="center" BORDER="0" CELLSPACING="1" CELLPADDING="1">
    <TR>
    <TD><INPUT TYPE="button" NAME="btnShow" VALUE="Main" onmouseup ="btn_mouseup(btnShow);" onmouseover=" btn_mouseover(btnShow);" onmouseout=" btn_mouseout(btnShow);" onclick="openit('showall.asp');" onmousedown="btn_mousedown(btnShow);"><P></P></TD>
    </TR>
    <TR>
    <TD><INPUT TYPE="button" NAME="btnAdd" VALUE="Add New" onmouseup ="btn_mouseup(btnAdd);" onmouseover=" btn_mouseover(btnAdd);" onmouseout=" btn_mouseout(btnAdd);" onclick="openit('Add.htm');" onmousedown="btn_mousedown(btnAdd);"> <P></P></TD>
    </TR>
    </TABLE>

    </BODY>
    </HTML>


    And another thing the NS dont recognize my CSS, Y?
    The MORE I get to know,
    I realize that I know NOTHING !

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Firstly, it seem that in NS buttons have to be on a form.
    This will make the buttons visible but the javascript then fails.

    Just a guess here, but I think you are using a lot of features which are IE only.




    [Edited by Mark Sreeves on 07-11-2000 at 04:06 AM]
    Mark
    -------------------

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    156

    Thumbs up thanks !!!

    Very v v v helpfull.
    The MORE I get to know,
    I realize that I know NOTHING !

Posting Permissions

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



Click Here to Expand Forum to Full Width