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
    May 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry PLEASE help a javascript newb. :(

    Hey everybody, PLEASE help with this if you know the following:

    I'm retarded at best... and have spent 2 days on this crap:

    Code:
    <html>
    <body>
    <script>
    if (!document.layers)
    document.write('<div id="divStayTopLeft" style="position:absolute">')
    </script>
    
    <layer id="divStayTopLeft">
    <table border="1" width="150" cellspacing="0" cellpadding="0">
      <tr>
        <td width="100%" bgcolor="wheat">
          <p align="center"><b><font size="3">Menu</font></b></td>
      </tr>
      <tr>
        <td width="100%" bgcolor="#FFFFFF">
    <a href="" style="text-decoration:none"><B>Home</B></a><BR>
    <a href="" style="text-decoration:none"><B>Contact Us</B></a><BR>
    <a href="" style="text-decoration:none"><B>blank</B></a><BR>
    <a href="" style="text-decoration:none"><B>blank</B></a><BR>
    <a href="" style="text-decoration:none"><B>blank</B></a><BR>
    <a href="" style="text-decoration:none"><B>blank</B></a><BR>
    <a href="" style="text-decoration:none"><B>blank</B></a></TD>
      </tr>
    </table>
    </script>
    <br><br><br><br><br><br><br><br><br>
    <br><br><br><br><br><br><br><br><br>
    <br><br><br><br><br><br><br><br><br>
    <br><br><br><br><br><br><br><br><br>
    <br><br><br><br><br><br><br><br><br>
    <br><br><br><br><br><br><br><br><br>
    </body>
    </html>
    If you save that as an html file and check that out you'll see the effect that i'm going for. What I need to know is how to get that into a normal website table:

    Code:
    <html>
    <head>
    <title></title>
    <META content="" name=description>
    <META content="i" name=keywords>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
    <META content="MSHTML 6.00.2800.1491" name=GENERATOR>
    <link rel="stylesheet" type="text/css" href=""></HEAD>
    
    <body topmargin="0" leftmargin="0" bgcolor="#C0C0C0">
    
    <center><br>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="520">
    
    <tr>
          <td width="100%">
    
    <table border="0" cellspacing="0" width="650" cellpadding="0"bgcolor="#FFFFFF" style="border-collapse: collapse"
    
    bordercolor="#111111">
    
        <tr>
            <td><p></p></td>
        </tr>
    </table>
    </body>
    </html>
    Is there a way to nest that into a centered table? Is there another way somebody can get the menu effect that i'm going for inside a typical style (centered) default website-- or just outside of it?

    !!PLEASE HELP!!


    Thanks very much!

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,603
    Thanks
    0
    Thanked 645 Times in 635 Posts
    First step would be to rewrite it into HTML so that you have something properly defined that you can apply styles to. You don't have anything in your page that needs a table.

    Code:
    <html>
    <body>
    <h1>Menu</h1>
     <ul>
    <li><a href="" style="text-decoration:none;font-weight:bold">Home</a></li>
    <li><a href="" style="text-decoration:none;font-weight:bold">Contact Us</a></li>
    <li><a href="" style="text-decoration:none;font-weight:bold">blank</a></li>
    <li><a href="" style="text-decoration:none;font-weight:bold">blank</a></li>
    <li><a href="" style="text-decoration:none;font-weight:bold">blank</a></li>
    <li><a href="" style="text-decoration:none;font-weight:bold">blank</a></li>
    <li><a href="" style="text-decoration:none;font-weight:bold">blank</a></li>
      </ul>
    </body>
    </html>
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    New to the CF scene
    Join Date
    May 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy

    well, if you save the two in .html files and view them... you'll see that i'm going for this "hovering" menu thing.

    and i'm trying to add it to the outside of the second .html simple centered box, so that it's scrollable along with the page.

    that's the goal.

    there's gotta be a way to do this.

    thanks.


  •  

    Posting Permissions

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