Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    i add java script but i m facing problems....

    see this.....
    http://gandhidhaval.googlepages.com/jshelp.html

    now my question is....

    see this 2 image...

    http://gandhidhaval.googlepages.com/q1.jpg

    http://gandhidhaval.googlepages.com/q2.jpg

    i hope u help me...

    please fix my problem....

    thanks in advance....
    __________________

  • #2
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,466
    Thanks
    3
    Thanked 495 Times in 482 Posts
    Code:
    <HTML>
    <HEAD>
    <TITLE>help needed...</TITLE>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <META NAME="GENERATOR" CONTENT="Microsoft FrontPage 4.0">
    <META NAME="ProgId" CONTENT="FrontPage.Editor.Document">
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    content = new Array ();
    
    content [0] = new Array (
    false,
    new Array('sub_0_0','sub_0_1','sub_0_2','sub_0_3','sub_0_4','sub_0_5')
    );
    content [1] = new Array (
    false,
    new Array('sub_1_1','sub_1_2','sub_1_3')
    );
    content [2] = new Array (
    false,
    new Array('sub_2_1','sub_2_2','sub_2_3')
    );
    
    isOPERA = (navigator.userAgent.indexOf('Opera') >= 0)? true : false;
    isIE = (document.all && !isOPERA)? true : false;
    isDOM = (document.getElementById && !isIE && !isOPERA)? true : false;
    
    function processTree (id,path)
    {
    if (content [id][0])
    {
    
    document.getElementById(path).src="arrow.jpg";
    for (i = 0; i < content [id][1].length; i++)
    hide (content [id][1][i]);
    content [id][0] = false;
    
    document.getElementById('BufferCell').height = "385";
    
    }
    else
    {
    
    document.getElementById(path).src="down-arrow.jpg";
    for (i = 0; i < content [id][1].length; i++)
    show (content [id][1][i], 'table-row');
    content [id][0] = true;
    
    document.getElementById('BufferCell').height = "289";
    }
    
    return false;
    }
    
    function show (id, displayValue)
    {
    if (isDOM)
    document.getElementById(id).style.display = (displayValue)? displayValue : "block";
    else if (isIE)
    document.all[id].style.display = "block";
    }
    
    function hide (id)
    {
    if (isDOM)
    document.getElementById(id).style.display = "none";
    else if (isIE)
    document.all[id].style.display = "none";
    }
    if (isDOM || isIE)
    {
    document.writeln('<style type="text/css">');
    document.writeln('.SubItemRow \{ display: none; \}');
    document.writeln('</style>');
    }
    
    // -->
    </SCRIPT>
    </HEAD>
    <BODY BGCOLOR="#e2e2e2">
    <TABLE BORDER="0" WIDTH="638" HEIGHT="736" CELLSPACING="0" CELLPADDING="0" ALIGN="center" BACKGROUND="main-bg.gif" ID="Table1">
    <TR>
    <TD WIDTH="638" COLSPAN="2" HEIGHT="156" VALIGN="top" BACKGROUND="mainheader.jpg">
    <TABLE WIDTH="638" BORDER="0" CELLSPACING="0" CELLPADDING="0" ID="Table2">
    </TABLE>
    here i add mainh header
     WIDTH=&quot;638&quot; HEIGHT=&quot;156&quot;
     <TABLE ALIGN="right" ID="Table3">
    <TR>
    <TD><IMG BORDER="0" SRC="1.jpg" WIDTH="18" HEIGHT="19"></TD>
    <TD><IMG BORDER="0" SRC="2.jpg" WIDTH="24" HEIGHT="18"></TD>
    <TD><IMG BORDER="0" SRC="3.jpg" WIDTH="21" HEIGHT="19"></TD>
    <TD>&nbsp;</TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    <TR>
    <TD WIDTH="160" HEIGHT="565" VALIGN="top">
    <div style="position:relative;" >
    <TABLE WIDTH="160" CELLSPACING="0" CELLPADDING="0" ALIGN="right" ID="Table4">
    <TR>
    <TD WIDTH="100%" ALIGN="right"><IMG BORDER="0" SRC="h2-line.jpg" WIDTH="158" HEIGHT="1"></TD>
    </TR>
    <TR>
    <TD WIDTH="100%">&nbsp;&nbsp;<IMG BORDER="0" SRC="arrow.jpg" WIDTH="9" HEIGHT="7">
    <FONT COLOR="#7394cc">main menu 1</FONT></TD>
    </TR>
    <TR>
    <TD WIDTH="100%" ALIGN="right"><IMG BORDER="0" SRC="h-line.jpg" WIDTH="158" HEIGHT="1"></TD>
    </TR>
    <TR>
    <TD WIDTH="100%">&nbsp;&nbsp;<IMG BORDER="0" SRC="arrow.jpg" WIDTH="9" HEIGHT="7" ID="img1">
    <A HREF="./" CLASS="Item" ONCLICK="processTree (0,'img1'); return false;" STYLE='TEXT-DECORATION: none'>
    <FONT COLOR="#7394cc">main menu 2</FONT></A></TD>
    </TR>
    <TR ID='sub_0_0' CLASS="SubItemRow">
    <TD WIDTH="100%" ALIGN="right" SIZE="2"><IMG BORDER="0" SRC="h-line.jpg" WIDTH="158" HEIGHT="1"></TD>
    </TR>
    <TR ID='sub_0_1' CLASS="SubItemRow">
    <TD WIDTH="100%" CLASS="SubItem">&nbsp;&nbsp;<IMG BORDER="0" SRC="down-arrow.jpg" WIDTH="9" HEIGHT="7">
    <FONT COLOR="#7394cc" SIZE="2">sub menu1</FONT></TD>
    </TR>
    <TR ID='sub_0_2' CLASS="SubItemRow">
    <TD WIDTH="100%" CLASS="SubItem">&nbsp;&nbsp;<IMG BORDER="0" SRC="down-arrow.jpg" WIDTH="9" HEIGHT="7">
    <FONT COLOR="#7394cc" SIZE="2">sub menu2</FONT></TD>
    </TR>
    <TR ID='sub_0_3' CLASS="SubItemRow">
    <TD WIDTH="100%" CLASS="SubItem">&nbsp;&nbsp;<IMG BORDER="0" SRC="down-arrow.jpg" WIDTH="9" HEIGHT="7">
    <FONT COLOR="#7394cc" SIZE="2">sub menu3</FONT></TD>
    </TR>
    <TR ID='sub_0_4' CLASS="SubItemRow">
    <TD WIDTH="100%" CLASS="SubItem">&nbsp;&nbsp;<IMG BORDER="0" SRC="down-arrow.jpg" WIDTH="9" HEIGHT="7">
    <FONT COLOR="#7394cc" SIZE="2">sub menu4</FONT></TD>
    </TR>
    <TR ID='sub_0_5' CLASS="SubItemRow">
    <TD WIDTH="100%" CLASS="SubItem">&nbsp;&nbsp;<IMG BORDER="0" SRC="down-arrow.jpg" WIDTH="9" HEIGHT="7">
    <FONT COLOR="#7394cc" SIZE="2">sub menu5 this is long</FONT></TD>
    </TR>
    <TR>
    <TD WIDTH="100%" ALIGN="right"><IMG BORDER="0" SRC="h-line.jpg" WIDTH="158" HEIGHT="1"></TD>
    </TR>
    <TR>
    <TD WIDTH="100%">&nbsp;&nbsp;<IMG BORDER="0" SRC="arrow.jpg" WIDTH="9" HEIGHT="7">
    <FONT COLOR="#7394cc">main menu 3</FONT></TD>
    </TR>
    <TR>
    <TD WIDTH="100%" ALIGN="right"><IMG BORDER="0" SRC="h-line.jpg" WIDTH="158" HEIGHT="1"></TD>
    </TR>
    <TR>
    <TD WIDTH="100%">&nbsp;&nbsp;<IMG BORDER="0" SRC="arrow.jpg" WIDTH="9" HEIGHT="7">
    <FONT COLOR="#7394cc">main menu 4</FONT></TD>
    </TR>
    <TR>
    <TD WIDTH="100%" ALIGN="right"><IMG BORDER="0" SRC="h-line.jpg" WIDTH="158" HEIGHT="1"></TD>
    </TR>
    <TR>
    <TD WIDTH="100%">&nbsp;&nbsp;<IMG BORDER="0" SRC="arrow.jpg" WIDTH="9" HEIGHT="7">
    <FONT COLOR="#7394cc">main menu 5</FONT></TD>
    </TR>
    
    <TD WIDTH="100%" ALIGN="right"><IMG BORDER="0" SRC="h-line.jpg" WIDTH="158" HEIGHT="1"></TD>
    </TR>
    <TR>
    <TD VALIGN="top" ALIGN="right" WIDTH="158" HEIGHT="385" ID="BufferCell"></TD>
    </TR>
    <TR>
    <TD ALIGN="right" VALIGN="bottom"></TD>
    </TR>
    <TR>
    <TD></TD>
    </TR>
    </TABLE>
    <IMG style="position:absolute;left:0px;top:300px;" SRC="http://www.vicsjavascripts.org.uk/StdImages/One.gif" WIDTH="158" HEIGHT="59"></div>
    </TD>
    <TD WIDTH="486" HEIGHT="565" ALIGN="left" VALIGN="top">
    <TABLE WIDTH="466" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="left" ID="Table5">
    <TR>
    <TD WIDTH="466" HEIGHT="565" BACKGROUND="back-mid.gif" VALIGN="top" ALIGN="left">&nbsp;</TD>
    </TR>
    <TR>
    <TD HEIGHT="5"></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>
    Vic

    God Loves You and will never love you less.

    http://www.vicsjavascripts.org/Home.htm

    If my post has been useful please donate to http://www.operationsmile.org.uk/

  • #3
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks it's working......

    thanks a lot.....


  •  

    Posting Permissions

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