Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I'm so glad I found this site... Now I can get some sleep, because my problem is solved..."

Geography

Where in the world do Tek-Tips members come from?
KAINCJ1 (TechnicalUser)
10 Apr 07 11:58
Hi guys, Im really new to DW2004MX so please excuse me.

My problem is this:
On my homepage I want to use a flash banner across the top including my navigation menu, under that to the left side of my page I want to have a php calendar,(I have the code in a file called calendar.htm) and underneath that an email subscription form, but I want them both and the flash banner to remain constant.
I want my other pages to load into the bottom right section of the page.

I have created a table on my homepage, and in one of the cells I would like it to display a calendar script automatically when the whole homepage loads.

underneath is the code for the layout of my homepage...


PAGE CODE

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
  <!--DWLayoutDefaultTable-->
  <tr>
    <td height="150" colspan="2" valign="top">FLASH BANNER AND NAVIGATION </td>
  </tr>
  <tr>
    <td width="230" height="230" valign="top">CALENDAR</td>
    <td width="570" rowspan="2" valign="top">AREA TO LOAD EXTERNAL PAGES </td>
  </tr>
  <tr>
    <td height="150" valign="top">EMAIL SUBSCRIPTION </td>
  </tr>
  <tr>
    <td height="70" colspan="2" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
</table>
</body>
</html>


CALENDAR CODE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

    <title>
        Calendar
    </title>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<head>
<style type='text/css' media='screen'>@import "calendar_stylesheet.css";</style>
</head>

<h1>may 2007</h1>

<ol class="dayheaders">
    <li><abbr title="sunday">s</abbr></li>
    <li><abbr title="monday">m</abbr></li>
    <li><abbr title="tuesday">t</abbr></li>
    <li><abbr title="wednesday">w</abbr></li>

    <li><abbr title="thursday">t</abbr></li>
    <li><abbr title="friday">f</abbr></li>
    <li><abbr title="saturday">s</abbr></li>
</ol>

<ol class="calendar tuesdaystart">
  <li class="firstday">
  <a href="#"><span>1</span></a>
  <div class="events"><p><h1>Heading</h1></p>
  </div>
  </li>

  <li>
  <a href=" ><span>2</span></a>
  <div class="events"><p>Manchesters first nude lap dancing venue</p>
  </div>
  </li>

  <li>
  <a href="#"><span>3</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>4</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>5</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>6</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>7</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>8</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>9</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>10</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>11</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>12</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>13</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>14</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>15</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>16</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>17</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>18</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>19</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>20</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>21</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>22</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>23</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>24</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>25</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>26</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>27</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>28</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>29</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>30</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>

  <li>
  <a href="#"><span>31</span></a>
  <div class="events"><p>TEXT</p>
  </div>
  </li>
</ol>

</body>
</html>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>



CALENDAR CSS

body {
    background: #eeeee7;
}

ol { list-style: none; }

.calendar, .dayheaders {
    width: 175px;
    overflow:auto;
    margin: 0px;
    padding: 0px;
    _height:1%;
}

.calendar {
    border: 1px solid #ccc;
    border-bottom-color: #665;
    border-right-color: #665;
    background: #ccb;
    /*position: relative;*/
}

.calendar li a, .calendar li {
    display: block;
    width: 23px;
    height: 23px;
}

.dayheaders li {
    display: block;
    width: 25px;
    height: 15px;
    text-transform: lowercase;
}

.calendar li, .dayheaders li { float: left; }
.calendar a, .dayheaders li { text-align: center; }

.calendar li {
    border: 1px solid #666;
    border-bottom-color: #ddb;
    border-right-color: #ddb;
    background: #aa9;
    display: inline; /* For IE */
}

.calendar a {
    height: 18px;
    text-decoration: none;    
    background: #bba;
}

.calendar a:hover {
    background: #ccb;
}

.calendar a span {
    position: relative;
    top: 4px;
}

.sundaystart .firstday { margin-left: 0px; }
.mondaystart .firstday { margin-left: 25px; }
.tuesdaystart .firstday { margin-left: 50px; }
.wednesdaystart .firstday { margin-left: 75px; }
.thursdaystart .firstday { margin-left: 100px; }
.fridaystart .firstday { margin-left: 125px; }
.saturdaystart .firstday { margin-left: 150px; }

a, li, h1, p {
    font-family: Verdana,Arial,sans-serif;
    font-size: 10px;
    color: #552;
}

h1 { font-size: 18px; }

.events {
    position: absolute;
    left: 185px;
    padding: 20px;
    top: 0px;
    width: 200px;
    display: none;
}

.calendar li:hover .events, .events:hover {
    display: block;
}






How do I incorporate the calendar script into a table cell on my homepage so it loads when the whole page loads?

Should i be using tables/cells or should i be using frames, or should I be using both?

If anyone can advise how to solve this problem I would be very grateful


Regards
KAINCJ
traingamer (Programmer)
10 Apr 07 13:51
Tables or frames?
To be blunt, I'd use neither. Your data doesn't appear to be tabular in nature, so you're just adding weight to the pages by using tables. Use divs and proper css to sort things out.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill

CTekMedia (Programmer)
11 Apr 07 17:45
Use Div.  I never use frames.

Cheers,

Bluetone

GUJUm0deL (Programmer)
4 May 07 15:47
If you had to choose between one or the other, then use table.  Frames are a no-no.

____________________________________
Just Imagine.
http://www.imajinarts.com

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close