Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
xsyst3m0v3rl0adx #1
table trouble
I have created a very basic HTML document and a few tables. I am trying to
align the second set of tables (Body) on the right side of the HTML document
beside the Modules table. I am new to HTML programming and cannot get it to
cooperate. can anyone please help me. my code is below: (very simple code, just
cannot align it right.) THANKS!!!! :)
<!-- CODE -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>TS Homepage</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body,td,th {
font-family: Trebuchet MS;
font-size: 10px;
color: #FFFFFF;
}
body {
background-color: #000000;
}
a:link {
color: #FF0000;
text-decoration: underline;
}
a:visited {
text-decoration: underline;
color: #FFFFFF;
}
a:hover {
text-decoration: none;
color: #FFFFFF;
}
a:active {
text-decoration: underline;
color: #FF0000;
}
-->
</style>
<link rel=stylesheet href=./index.css type=text/css>
<script language=JavaScript>
<!--
content = new Array ();
content [0] = new Array (
false,
new Array('sub_1_1','sub_1_2','sub_1_3','sub_1_4','sub _1_5','sub_1_6')
);
content [1] = new Array (
false,
new Array('sub_2_1','sub_2_2')
);
isOPERA = (navigator.userAgent.indexOf('Opera') >= 0)? true : false;
isIE = (document.all && !isOPERA)? true : false;
isDOM = (document.getElementById && !isIE && !isOPERA)? true : false;
function processTree (id)
{
if (content [id][0])
{
for (i = 0; i < content [id][1].length; i++)
hide (content [id][1]);
content [id][0] = false;
}
else
{
for (i = 0; i < content [id][1].length; i++)
show (content [id][1], 'table-row');
content [id][0] = true;
}
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>
<table class="contactTable" border="1" cellspacing="0" cellpadding="0"
width="160" bordercolor="#CC0000">
<tr><td width="160" height="20" bgcolor="#000033" class="text" align="left"
style="word-wrap:break-word">
<span class="whitetext12"><font face="Trebuchet MS" pointsize="12"
color="#FFFFFF"><b>Modules</b></font></span></td></tr>
<table cellspacing="1" cellpadding="1" bgcolor="#333333" width="160"
border="1" bordercolor="#CC0000" style="word-wrap:break-word">
<tr><td>
<table width=150 height=40 border=0 cellpadding=0 cellspacing=1>
<tr>
<td width=1 class=Item><img src="icons/home_no-expand.png"></td>
<td width=149 height=20 class=Item><a href="index.htm">Home</a></td>
</tr>
<tr>
<td width=1 class=Item><img src="icons/arrow_expand.png"></td>
<td width=149 height=20 class=Item><a href=./ class=Item
onClick="processTree (0); return false;">Downloads</a></td>
</tr>
<tr id='sub_1_1' class=SubItemRow>
<td width=10> </td>
<td width=149 height=20 class=SubItem><a
href="user_files/reshack.zip">ResHack</a></td>
</tr>
<tr id='sub_1_2' class=SubItemRow>
<td width=10> </td>
<td width=149 height=20 class=SubItem><a href="user_files/advanced IP
Scan.zip">Advanced IP Scanner</a></td>
</tr>
<tr id='sub_1_3' class=SubItemRow>
<td width=10> </td>
<td width=149 height=20 class=SubItem><a href="user_files/advanced port
scanner.zip">Advanced Port Scanner</a></td>
</tr>
<tr id='sub_1_4' class=SubItemRow>
<td width=10> </td>
<td width=149 height=20 class=SubItem><a href="user_files/ipscan12.zip">IP
Scanner</a></td>
</tr>
<tr id='sub_1_5' class=SubItemRow>
<td width=10> </td>
<td width=149 height=20 class=SubItem><a href="user_files/IP
Sniffer.zip">IP Sniffer</a></td>
</tr>
<tr id='sub_1_6' class=SubItemRow>
<td width=10> </td>
<td width=149 height=20 class=SubItem><a
href="user_files/nmap-3.81-win32.zip">nmap</a></td>
</tr>
<tr>
<td width=1 class=Item><img src="icons/arrow_expand.png"></td>
<td width=149 height=20 class=Item><a href=./ class=Item
onClick="processTree (1); return false;">Tutorials</a></td>
</tr>
<tr id='sub_2_1' class=SubItemRow>
<td width=10> </td>
<td width=149 height=20 class=SubItem><a href="user_files/mass mailer
script.zip">Mass Mailer</a></td>
</tr>
<tr id='sub_2_2' class=SubItemRow>
<td width=10> </td>
<td width=149 height=20 class=SubItem><a
href="user_files/HTML_FOR_NEWBIES.zip">HTML For Newbies</a></td>
</tr>
<tr>
<td width=1 class=Item><img src="icons/donut_no-expand.png"></td>
<td width=149 height=20 class=Item><a href="ftp/index.php">FTP
Access</a></td>
</tr>
<tr>
<td width=1 class=Item><img src="icons/donut_no-expand.png"></td>
<td width=149 height=20 class=Item><a href="news.htm">News</a></td>
</tr>
<tr>
<td width=1 class=Item><img src="icons/donut_no-expand.png"></td>
<td width=149 height=20 class=Item><a href="other.htm">Other</a></td>
</tr>
</table>
</td></tr>
</table>
</td>
</tr>
</table>
</table>
<table class="contactTable" border="1" cellspacing="0" cellpadding="0"
width="160" bordercolor="#CC0000">
<tr><td width="160" height="20" bgcolor="#000033" class="text" align="left"
style="word-wrap:break-word">
<span class="whitetext12"><font face="Trebuchet MS" pointsize="12"
color="#FFFFFF"><b>Body</b></font></span></td></tr>
<table cellspacing="1" cellpadding="1" bgcolor="#333333" width="160"
border="1" bordercolor="#CC0000" style="word-wrap:break-word">
<tr><td>
Hello<br><br>
</td></tr>
</table>
</table>
</body>
</html>
xsyst3m0v3rl0adx Guest
-
Trouble creating temporary memory table
I tried to create a temporary memory table using the following: CREATE TEMPORARY TABLE mytable_tmp LIKE mytable ENGINE=MEMORY; However, I... -
Trouble copying data from old table to new table
Hello all, I am working with a ColdFusion MX 6.1 frontend and a SQL Server 2000 backend - There is a "CUSTOMER_INFO" table for every month and... -
Trouble accessing the MS Access 'MSysObjects' system table through an ASP page
Earlier on this board, I got a solution from Ray (thanks again) on how to run a querry to see if a table exists and it works fine in Access. But... -
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table.
We are getting this error after clearing the web.config of database infomation - even after using the wizard to re-enter the information. I could... -
VisualAge 6 installation trouble on aix 5.2, gcc trouble too :)
I've installed gcc 3.x from UCLA site. and I got this error - In file included from test.c:23: /usr/include/pthread.h:554: error: parse error... -
Murray *TMM* #2
Re: table trouble
Put each table into the respective cells of a two column, one row table.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"xsyst3m0v3rl0adx" <webforumsuser@macromedia.com> wrote in message
news:df87bp$o2s$1@forums.macromedia.com...>I have created a very basic HTML document and a few tables. I am trying to
> align the second set of tables (Body) on the right side of the HTML
> document
> beside the Modules table. I am new to HTML programming and cannot get it
> to
> cooperate. can anyone please help me. my code is below: (very simple code,
> just
> cannot align it right.) THANKS!!!! :)
>
>
> <!-- CODE -->
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <title>TS Homepage</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <style type="text/css">
> <!--
> body,td,th {
> font-family: Trebuchet MS;
> font-size: 10px;
> color: #FFFFFF;
> }
> body {
> background-color: #000000;
> }
> a:link {
> color: #FF0000;
> text-decoration: underline;
> }
> a:visited {
> text-decoration: underline;
> color: #FFFFFF;
> }
> a:hover {
> text-decoration: none;
> color: #FFFFFF;
> }
> a:active {
> text-decoration: underline;
> color: #FF0000;
> }
> -->
> </style>
> <link rel=stylesheet href=./index.css type=text/css>
> <script language=JavaScript>
> <!--
> content = new Array ();
>
> content [0] = new Array (
> false,
> new Array('sub_1_1','sub_1_2','sub_1_3','sub_1_4','sub _1_5','sub_1_6')
> );
> content [1] = new Array (
> false,
> new Array('sub_2_1','sub_2_2')
> );
>
> isOPERA = (navigator.userAgent.indexOf('Opera') >= 0)? true : false;
> isIE = (document.all && !isOPERA)? true : false;
> isDOM = (document.getElementById && !isIE && !isOPERA)? true : false;
>
> function processTree (id)
> {
> if (content [id][0])
> {
> for (i = 0; i < content [id][1].length; i++)
> hide (content [id][1]);
>
> content [id][0] = false;
> }
> else
> {
> for (i = 0; i < content [id][1].length; i++)
> show (content [id][1], 'table-row');
>
> content [id][0] = true;
> }
>
> 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>
> <table class="contactTable" border="1" cellspacing="0" cellpadding="0"
> width="160" bordercolor="#CC0000">
> <tr><td width="160" height="20" bgcolor="#000033" class="text"
> align="left"
> style="word-wrap:break-word">
> <span class="whitetext12"><font face="Trebuchet MS" pointsize="12"
> color="#FFFFFF"><b>Modules</b></font></span></td></tr>
> <table cellspacing="1" cellpadding="1" bgcolor="#333333" width="160"
> border="1" bordercolor="#CC0000" style="word-wrap:break-word">
> <tr><td>
> <table width=150 height=40 border=0 cellpadding=0 cellspacing=1>
> <tr>
> <td width=1 class=Item><img src="icons/home_no-expand.png"></td>
> <td width=149 height=20 class=Item><a href="index.htm">Home</a></td>
> </tr>
> <tr>
> <td width=1 class=Item><img src="icons/arrow_expand.png"></td>
> <td width=149 height=20 class=Item><a href=./ class=Item
> onClick="processTree (0); return false;">Downloads</a></td>
> </tr>
> <tr id='sub_1_1' class=SubItemRow>
> <td width=10> </td>
> <td width=149 height=20 class=SubItem><a
> href="user_files/reshack.zip">ResHack</a></td>
> </tr>
> <tr id='sub_1_2' class=SubItemRow>
> <td width=10> </td>
> <td width=149 height=20 class=SubItem><a href="user_files/advanced IP
> Scan.zip">Advanced IP Scanner</a></td>
> </tr>
> <tr id='sub_1_3' class=SubItemRow>
> <td width=10> </td>
> <td width=149 height=20 class=SubItem><a href="user_files/advanced
> port
> scanner.zip">Advanced Port Scanner</a></td>
> </tr>
> <tr id='sub_1_4' class=SubItemRow>
> <td width=10> </td>
> <td width=149 height=20 class=SubItem><a
> href="user_files/ipscan12.zip">IP
> Scanner</a></td>
> </tr>
> <tr id='sub_1_5' class=SubItemRow>
> <td width=10> </td>
> <td width=149 height=20 class=SubItem><a href="user_files/IP
> Sniffer.zip">IP Sniffer</a></td>
> </tr>
> <tr id='sub_1_6' class=SubItemRow>
> <td width=10> </td>
> <td width=149 height=20 class=SubItem><a
> href="user_files/nmap-3.81-win32.zip">nmap</a></td>
> </tr>
> <tr>
> <td width=1 class=Item><img src="icons/arrow_expand.png"></td>
> <td width=149 height=20 class=Item><a href=./ class=Item
> onClick="processTree (1); return false;">Tutorials</a></td>
> </tr>
> <tr id='sub_2_1' class=SubItemRow>
> <td width=10> </td>
> <td width=149 height=20 class=SubItem><a href="user_files/mass mailer
> script.zip">Mass Mailer</a></td>
> </tr>
> <tr id='sub_2_2' class=SubItemRow>
> <td width=10> </td>
> <td width=149 height=20 class=SubItem><a
> href="user_files/HTML_FOR_NEWBIES.zip">HTML For Newbies</a></td>
> </tr>
> <tr>
> <td width=1 class=Item><img src="icons/donut_no-expand.png"></td>
> <td width=149 height=20 class=Item><a href="ftp/index.php">FTP
> Access</a></td>
> </tr>
> <tr>
> <td width=1 class=Item><img src="icons/donut_no-expand.png"></td>
> <td width=149 height=20 class=Item><a href="news.htm">News</a></td>
> </tr>
> <tr>
> <td width=1 class=Item><img src="icons/donut_no-expand.png"></td>
> <td width=149 height=20 class=Item><a href="other.htm">Other</a></td>
> </tr>
> </table>
> </td></tr>
> </table>
> </td>
> </tr>
> </table>
> </table>
>
> <table class="contactTable" border="1" cellspacing="0" cellpadding="0"
> width="160" bordercolor="#CC0000">
> <tr><td width="160" height="20" bgcolor="#000033" class="text"
> align="left"
> style="word-wrap:break-word">
> <span class="whitetext12"><font face="Trebuchet MS" pointsize="12"
> color="#FFFFFF"><b>Body</b></font></span></td></tr>
> <table cellspacing="1" cellpadding="1" bgcolor="#333333" width="160"
> border="1" bordercolor="#CC0000" style="word-wrap:break-word">
> <tr><td>
> Hello<br><br>
> </td></tr>
> </table>
> </table>
> </body>
> </html>
>
>
Murray *TMM* Guest



Reply With Quote

