[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

netscape compatible - div tags

Asked by baskar786 in JavaScript, Extensible HTML (XHTML)

Tags: javascript, netscape

i had a script which works in IE but i need that to work in netscape ...this script uses div tags and show and hide depending upon the condition ...


pls help me its urgent

thanks in advance

Baskar

here is the code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Simulation</TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">


<SCRIPT LANGUAGE="JavaScript">
<!--

function changeImage()
{
var lis1=document.simu.lis1.selectedIndex;
var lis2=document.simu.lis2.selectedIndex;


if (lis1==0 && lis2==0)
      document.images['logo'].src='g.gif';
else
      document.images['logo'].src='r.gif';

if (lis1==1 && lis2==1)
      document.images['logo'].src='y.gif';
else
      document.images['logo'].src='r.gif';

if (lis1==2 && lis2==2)
      document.images['logo'].src='r.gif';
}

function addText()
{
var str = "";
      document.all.quest9_3.outerHTML = "<div id='quest9_3'></div>";
            str = '  <table border="2" cellpadding="0" cellspacing="0" width="50%" align="center">'+
' <tr align="center">'+
 '       <td > <select name="lis1" size="5">'+
'            <option value="1">Choice1</option>'+
 '           <option value="2">Choice2</option>'+
  '         <option value="3">Choice3</option>'+
   '    </select> </td><td><td>'+
'   <select name="lis2" size="5">'+
'            <option value="1">Choice1</option>'+
 '           <option value="2">Choice2</option>'+
  '         <option value="3">Choice3</option>'+
   '    </select>'+
'   </td><tr></table>' ;
                  document.all.quest9_3.innerHTML = str;
      
}
function addTextt()
{
var str = "";
      document.all.quest9_4.outerHTML = "<div id='quest9_4'></div>";
            str = '  <table border="2" cellpadding="0" cellspacing="0" width="50%" align="center">'+
' <tr align="center">'+
 '       <td > <select name="lis1" size="5">'+
'            <option value="1">Choice1</option>'+
 '           <option value="2">Choice2</option>'+
  '         <option value="3">Choice3</option>'+
   '    </select> </td><td><td>'+
'   <select name="lis2" size="5">'+
'            <option value="1">Choice1</option>'+
 '           <option value="2">Choice2</option>'+
  '         <option value="3">Choice3</option>'+
   '    </select>'+
'   </td><tr></table>' ;
                  document.all.quest9_4.innerHTML = str;
      
}

function addInfoText(checkedValue)
{
var ser=document.simu.service.selectedIndex;
var att=document.simu.attribute.selectedIndex;

if (ser >= 1 && att >= 1 )
{

var str = "";
      document.all.quest9_1.outerHTML = "<div id='quest9_1'></div>";

      if (checkedValue == 'Yes')
      {
            str = '  <table border="0" cellpadding="0" cellspacing="0" width="50%" align="center">'+
' <tr align="center">'+
 '       <td ><img src="image1.gif" width="100" height="100" onMouseOver=addTextt("yes");></td>'+
  '      <td colspan="2"><img src="w.gif" width="100" height="100" name="logo"></td>'+
    '   <td><img src="image2.gif" width="100" height="100" onMouseOver=addTextt("yes");></td>'+
   ' </tr>'+
      ' <tr>'+
   '     <td>&nbsp;</td>'+
  '      <td>&nbsp;</td>'+
 '       <td>&nbsp;</td>'+
'        <td>&nbsp;</td>'+
 '   </tr>'+
'    <tr>'+
        '<td width="25%"><p align="center"><font size="1"'+
       ' face="Arial">'+
'</font></p>'+
  '      </td>'+
 '       <td width="25%"><p align="center">&nbsp;</p>'+
'&nbsp;        </td>'+
 '       <td width="25%"><p align="center">&nbsp;</p>'+
'&nbsp;        </td>'+
       ' <td width="25%"><p align="center"><font size="1"'+
      '  face="Arial"><div id="quest9_2" style="position:absolute;VISIBILITY: hidden"><select name="lis1" size="5">'+
      '      <option value="1">Choice1</option>'+
     '       <option value="2">Choice2</option>'+
    '        <option value="3">Choice3</option>'+
   '     </select></div></font></p>'+
   '     </td>'+
  '  </tr>'+
 '   <tr>'+
'        <td>&nbsp;</td>'+
  '      <td>&nbsp;</td>'+
 '       <td>&nbsp;</td>'+
'        <td>&nbsp;</td>'+
 '   </tr>'+
'    <tr>'+
    '    <td>&nbsp;</td>'+
   '     <td colspan="2" align="Center"><div id="quest9_4" style="position:absolute;VISIBILITY: hidden"><input type="button" name="btnOOK" value="  OK  " onClick=changeImage();></div></td>'+
  '      <td>&nbsp;</td>'+
 '   </tr>'+
'</table>' ;

                  document.all.quest9_1.innerHTML = str;
            }
      }
}
function addLossInfoText(checkedValue)
{
      var tt=document.simu.items.selectedIndex;
      if (tt==1)
      {

      var str = "";
      document.all.quest9_0.outerHTML = "<div id='quest9_0'></div>";

      if (checkedValue == 'Yes')
      {
            str = '  <table border="1" cellpadding="2" cellspacing="2" width="50%" align="center">'+
    '            <tr>'+
      '            <td width="100%">'+'<table border="0" cellpadding="2"    cellspacing="2" width="100%">'+
    '            <tr>'+'<td width="50%"><table border="0" cellpadding="3" cellspacing="3" width="100%" bgcolor="#EDEDFE">'+
    '                <tr>'+
    '                   <td width="25%" valign="top"><font size="2" face="Arial">Services</font></td>'+
    '                    <td width="25%" valign="top"><font size="1"   face="Arial"> '+
      '                                    <select name="service" size="1">'+
    '                        <option value="">--------------</option>'+
    '                        <option value="1">IP Address 1</option>'+
      '                           <option value="2">IP Address 2</option>'+
      '                           <option value="3">IP Address 3</option>      '+
      '                            <option value="4">IP Address 4</option>'+
      '                        </select></font></td>'+
      '                        <td width="25%" valign="top"><font size="2"'+
      '                     face="Arial">Attributes</font></td>'+
    '                   <td width="25%" valign="top"><font size="1"'+
    '                    face="Arial"><select name="attribute" size="5">'+
     '                       <option value="1">Choice1</option>'+
      '                      <option value="2">Choice2</option>'+
       '                     <option value="3">Choice3</option>'+
        '                    <option value="4">Choice4</option>'+
         '               </select></font></td>'+
          '          </tr>'+
           '         <tr>'+
            '            <td>&nbsp;</td>'+
             '           <td>&nbsp;</td>'+
              '          <td>&nbsp;</td>'+
               '         <td>&nbsp;</td>'+
                '    </tr>'+
                 '   <tr>'+
                   '     <td colspan="4"><p align="center"><input'+
                    '    type="button" name="btnOk" value="   OK   " onClick=addInfoText("Yes");>'+
            '<input'+
             ' type="submit" name="btnCancel"'+
                        'value="Cancel"></p>'+
'                      </td>'+

'                 </tr>'+
'            </table>'+
'           </td>'+
'      </tr>'+
' </table>'+
'      </td>'+
'  </tr>'+
'      </table>' ;

                  document.all.quest9_0.innerHTML = str;
            }
      }
      else
      {
      var str = "";
      document.all.quest9_0.outerHTML = "<div id='quest9_0'></div>";

      if (checkedValue == 'Yes')
      {
            str = '  <table border="1" cellpadding="2" cellspacing="2" width="50%" align="center">'+
    '            <tr>'+
      '            <td width="100%">'+'<table border="0" cellpadding="2"    cellspacing="2" width="100%">'+
    '            <tr>'+'<td width="50%"><table border="0" cellpadding="3" cellspacing="3" width="100%" bgcolor="#EDEDFE">'+
    '                <tr>'+
    '                   <td width="25%" valign="top"><font size="2" face="Arial">Services</font></td>'+
    '                    <td width="25%" valign="top"><font size="1"   face="Arial"> '+
      '                                    <select name="service" size="1">'+
    '                        <option value="">--------------</option>'+
    '                        <option value="1">ATM 1</option>'+
      '                           <option value="2">ATM  2</option>'+
      '                           <option value="3">ATM  3</option>      '+
      '                            <option value="4">ATM 4</option>'+
      '                        </select></font></td>'+
      '                        <td width="25%" valign="top"><font size="2"'+
      '                     face="Arial">Attributes</font></td>'+
    '                   <td width="25%" valign="top"><font size="1"'+
    '                    face="Arial"><select name="attribute" size="5">'+
     '                       <option value="1">Choice1</option>'+
      '                      <option value="2">Choice2</option>'+
       '                     <option value="3">Choice3</option>'+
        '                    <option value="4">Choice4</option>'+
         '               </select></font></td>'+
          '          </tr>'+
           '         <tr>'+
            '            <td>&nbsp;</td>'+
             '           <td>&nbsp;</td>'+
              '          <td>&nbsp;</td>'+
               '         <td>&nbsp;</td>'+
                '    </tr>'+
                 '   <tr>'+
                   '     <td colspan="4"><p align="center"><input'+
                    '    type="button" name="btnOk" value="   OK   " onClick=addInfoText("Yes");>'+
            '<input'+
             ' type="submit" name="btnCancel"'+
                        'value="Cancel"></p>'+
'                      </td>'+

'                 </tr>'+
'            </table>'+
'           </td>'+
'      </tr>'+
' </table>'+
'      </td>'+
'  </tr>'+
'      </table>' ;

                  document.all.quest9_0.innerHTML = str;
            }


      }
}




//-->
</SCRIPT>
</HEAD>

<BODY>
<form name="simu" method="post" action="kanda.htm">
 <table border="1" cellpadding="2" cellspacing="2"
            width="40%" align="center" height="40">
                  <tr>
                  <td >
 <table border="0" cellpadding="2" cellspacing="2"
            width="100%" align="center" height="40">
                  <tr>
                  <td colspan="2">
                  <font size="3" face="Arial" color="blue">Choose Your Options Below to Proceed</font>
                  </td>
                  </tr>

                <tr>
                    <td width="50%" align="center"><p align="center"><font
                    size="1" face="Arial" valign="top"><strong>LABLE 1</strong></font></p>
                    </td>
                    <td width="50%" align="center"><font size="1" face="Arial"><select
                    name="items" size="1" onClick="if(document.all)addLossInfoText('Yes'); ">
                        <option value="">----------</option>
                           <option value="1">IP Address</option>
                        <option value="2">ATM</option>
                        <option value="3">Frame Relay</option>
                        <option value="4">POTS</option>
                    </select></font></td>
                </tr>
            </table>
      </td>
                </tr>
            </table>
<br>
<DIV id=quest9_0></DIV>
<br>
<DIV id=quest9_1></DIV>
<br>
<DIV id=quest9_3></DIV>
<br>
<DIV id=quest9_4></DIV>
      </form>
</BODY>
</HTML>
 
Related Solutions
Keywords: netscape compatible - div tags
 
Loading Advertisement...
 
[+][-]03/07/01 02:33 PM, ID: 5908919Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: JavaScript, Extensible HTML (XHTML)
Tags: javascript, netscape
Sign Up Now!
Solution Provided By: mplungjan
Participating Experts: 4
Solution Grade: A
 
[+][-]03/07/01 03:21 PM, ID: 5909050Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/08/01 02:52 AM, ID: 5910575Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/08/01 10:01 AM, ID: 5911701Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/08/01 01:58 PM, ID: 5912213Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/01/02 01:21 PM, ID: 7122974Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/07/02 01:12 PM, ID: 7269695Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/22/02 02:04 PM, ID: 7297608Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81