...

View Full Version : PLEASE help a javascript newb. :(



stinkbum
05-15-2007, 08:03 PM
Hey everybody, PLEASE help with this if you know the following:

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



<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:



<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! :o :o :o

felgall
05-15-2007, 09:49 PM
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.


<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>

stinkbum
05-15-2007, 09:53 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum