Jump to content

Index.html


yrstruly
 Share

Recommended Posts

HelloI have manupilated a Dreamweaver template. I have a created a ProjectMe.php file, which is my index file, and it worked up an till i changes this file to index.html. When i click on the home of my other files, it takes me back to my index.html file. I have made the proper changes in this index.html file to accomodate my other html pages, but it just dont work. I have attached the index.php file and then also one of my other pages file's. Please, can somebody tell me what am i doing wrong here?Do any of you guys know, how to upload a Jommla Template?<!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><!-- Copyright 2008 --><title>The Company</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link rel="stylesheet" href="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/color.css" type="text/css" /></head><body bgcolor="#ff0077" background="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/ff0077"><table border="0" cellspacing="0" cellpadding="0"> <tr bgcolor="#ff0077"> <td width="215" rowspan="2" colspan="2" nowrap="nowrap"><img src="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/beautifull.jpg" alt="Header image" width="200" height="109" border="0" /></td> <td width="455" colspan="2" height="55" nowrap="nowrap" id="logo" valign="bottom">KWOWLEDGE SOLUTIONS</td> <td width="190" rowspan="2"><img src="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/sqxBTA.jpg" alt="header image "2" width="576" height="108" border="0" /></td> <td width="100%" rowspan="2"> </td> </tr> <tr bgcolor="#ff0077"> <td height="67" colspan="2" nowrap="nowrap" id="tagline" valign="top">Information in All Foms</td> </tr> <tr bgcolor="#FF5900"> <td colspan="6"><img src="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/sqxBTA.jpg" alt="" width="1" height="1" border="0" /></td> </tr> <tr bgcolor="#320103"> <td colspan="6"><img src="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/sqxBTA.jpg" alt="" width="1" height="2" border="0" /></td> </tr> <tr bgcolor="#FF3900"> <td colspan="6"><img src="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/sqxBTA.jpg" alt="" width="1" height="1" border="0" /></td> </tr> <tr bgcolor="#320103"> <td colspan="6"><img src="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/sqxBTA.jpg" alt="" width="1" height="18" border="0" /></td> </tr> <tr bgcolor="#FF7900"> <td colspan="6"><img src="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/sqxBTA.jpg" alt="" width="1" height="1" border="0" /></td> </tr> <tr bgcolor="#320103"> <td colspan="6"><img src="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/sqxBTA.jpg" alt="" width="1" height="2" border="0" /></td> </tr> <tr bgcolor="#FF9900"> <td colspan="6"><img src="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td> </tr> <tr> <td width="165" valign="top" id="navborder"><br /> <table border="0" cellspacing="0" cellpadding="0" width="160" id="navigation"> <tr> <td width="160"><a href="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/About_US-4.html" class="navText">ABOUT US</a></td> </tr> <tr> <td width="160"><a href="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/THE Company.html" class="navText">THE Company</a></td> </tr> <tr> <td width="160"><a href="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/The_Team.html" class="navText">The Team</a></td> </tr> <tr> <td width="160"><a href="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/contack_Us.html" class="navText">CONTACT</a></td> </tr> </table> </td> <td width="50"><img src="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/mm_spacer.gif" alt="" width="50" height="1" border="0" /></td> <td width="305" valign="top"><img src="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/sqxBTA.jpg" alt="" width="305" height="1" border="0" /><br />  <br />  <br /> <table border="0" cellspacing="0" cellpadding="0" width="305"> <tr> <td class="pageName">WELCOME </td> </tr> <tr> <td class="bodyText"><p>Welcome to the website of Knowledge and Knowledge Management .</p> <p>Feel free to take a tour and contack us for any website development, system analysis and IT solutions</p> </td> </tr> </table>  <br />  <br /> </td> <td width="50"><img src="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/mm_spacer.gif" alt="" width="50" height="0" border="0" /></td> <td width="190" valign="top"><br /></td> <td width="100%"> </td> </tr> <tr> <td width="165"> </td> <td width="50"> </td> <td width="305"> </td> <td width="50"> </td> <td width="190"> </td> <td width="100%"> </td> </tr> </table><script language="JavaScript"><!-- hide code// this array gives the weekday names var Weekday = new Array(); Weekday[0] = "Sunday"; Weekday[1] = "Monday"; Weekday[2] = "Tuesday"; Weekday[3] = "Wednesday"; Weekday[4] = "Thursday"; Weekday[5] = "Friday"; Weekday[6] = "Saturday";// this array gives month names var MonthA = new Array(); MonthA[0] = "January"; MonthA[1] = "February"; MonthA[2] = "March"; MonthA[3] = "April"; MonthA[4] = "May"; MonthA[5] = "June"; MonthA[6] = "July"; MonthA[7] = "August"; MonthA[8] = "September"; MonthA[9] = "October"; MonthA[10] = "November"; MonthA[11] = "December";// this array gives the number of days in each month var Mdays = new Array(); Mdays[0] = 31; Mdays[1] = 28; Mdays[2] = 31; Mdays[3] = 30; Mdays[4] = 31; Mdays[5] = 30; Mdays[6] = 31; Mdays[7] = 31; Mdays[8] = 30; Mdays[9] = 31; Mdays[10] = 30; Mdays[11] = 31;// this code gets current date information var Today = new Date(); var Date = Today.getDate(); var Month = Today.getMonth(); var dow = Today.getDay(); var Year = Today.getYear();// these are variables for var day = 1; var i, j;// adjust year for browser differences if (Year < 2000) { Year += 1900; }// account for leap year if ((Year % 400 == 0) || ((Year % 4 == 0) && (Year % 100 !=0))) Mdays[1] = 29;// determine day of week for first day of the month var Mfirst = Today; Mfirst.setDate(1); var dow1 = Mfirst.getDay();// write out current date document.write("Today is " + Weekday[dow] + ", " + MonthA[Month]); document.write(" " + Date + ", " + Year);// construct calendar for current month document.write("<BR><BR><TABLE BORDER=5 BORDERCOLOR=INDIGO>" + "<TR><TH COLSPAN=7 ALIGN=CENTER>" + MonthA[Month] + " " + Year + "</TH></TR>"); document.write("<TR><TH>Sun</TH><TH>Mon</TH><TH>Tue</TH><TH>Wed</TH>" + "<TH>Thu</TH><TH>Fri</TH><TH>Sat</TH></TR>"); for (i = 0; i < 6; i++) {// this loop writes one row of days Sun-Sat document.write("<TR>"); for (j = 0; j < 7; j++) {// this loop determines which dates to display and in which column if ((i == 0 && j < dow1) || (day > Mdays[Month])) {// this puts in blank cells at the beginning an end of the month document.write("<TD><BR></TD>"); } else { if (day == Date) {// highlight the current day and display the date for this cell document.write("<TD><FONT COLOR=red>" + day + "</FONT></TD>"); } else {// display the date for this cell document.write("<TD>" + day + "</TD>"); }// increment day counter day++; } }// end of row; determine if more rows needed document.write("</TR>"); if (day > Mdays[Month]) { i = 6; } }// end of table document.write("</TABLE>");// end hiding --></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 /> <p align="bottom"><b>© 2000-2008 by Anthony Apollis. All Rights Reserved.</b><br>Website engine code is © copyright by Anthony Apollis .</p><br> </td></tr> </body></html>-------------------------------------------------<!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>ABOUT US</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link rel="stylesheet" href="color.css" type="text/css" /></head><body bgcolor="#ff0077" background="ff0077"><table border="0" cellspacing="0" cellpadding="0"> <tr bgcolor="#ff0077"> <td width="215" rowspan="2" colspan="2" nowrap="nowrap"><img src="beautifull.jpg" alt="Header image" width="200" height="109" border="0" /></td> <td width="455" colspan="2" height="55" nowrap="nowrap" id="logo" valign="bottom">ABOUT US</td> <td width="190" rowspan="2"><img src="sqxBTA.jpg" alt="header image "2" width="576" height="108" border="0" /></td> <td width="100%" rowspan="2"> </td> </tr> <tr bgcolor="#ff0077"> <tr bgcolor="#320103"> <td colspan="6"><img src="sqxBTA.jpg" alt="" width="1" height="2" border="0" /></td> </tr> <tr bgcolor="#FF3900"> <td colspan="6"><img src="sqxBTA.jpg" alt="" width="1" height="1" border="0" /></td> </tr> <tr bgcolor="#320103"> <td colspan="6"><img src="sqxBTA.jpg" alt="" width="1" height="18" border="0" /></td> </tr> <tr bgcolor="#FF7900"> <td colspan="6"><img src="sqxBTA.jpg" alt="" width="1" height="1" border="0" /></td> </tr> <td colspan="4" height="18" id="dateformat">|| <a href="index.html">HOME</a> ||</td> </tr> <tr bgcolor="#320103"> <td colspan="6"><img src="sqxBTA.jpg" alt="" width="1" height="2" border="0" /></td> </table><body><p>Anthony Apollis <br />Is a bachelor and love challenges. He has also an undying love for music.</p><p>David Bloom <br /> He is a go-getter and he love serving the web</p><p>Brian Citrus <br /> Brian is hardworking person and love's the outdoors</p><p>Celeste Pienaar <br /> She keeps the office running smooth like a well oiled engine. She loves cooking</p><p>Mary Jacobs Diploma <br /> Mary is a fast thinker and always there when you need help. She love's being a mother and career woman</p></body></body></html>

Link to comment
Share on other sites

HelloI have manupilated a Dreamweaver template. I have a created a ProjectMe.php file, which is my index file, and it worked up an till i changes this file to index.html. When i click on the home of my other files, it takes me back to my index.html file. I have made the proper changes in this index.html file to accomodate my other html pages, but it just dont work. I have attached the index.php file and then also one of my other pages file's. Please, can somebody tell me what am i doing wrong here?
so projectme.php became index.html or index.php? I can't make heads or tails of which page is what right now...If you want a page to be the 'index' and it contains php, then call it index.php and make sure all the other pages link to index.php.Also, trying clearing out your browsers cache.
Link to comment
Share on other sites

so projectme.php became index.html or index.php? I can't make heads or tails of which page is what right now...If you want a page to be the 'index' and it contains php, then call it index.php and make sure all the other pages link to index.php.Also, trying clearing out your browsers cache.
Sorry i meant to say projectme.html. I know how to reference. If you look through my first code file you will see i already have dont that. What i dont understand is , when i click on one of my pages(on the home tab- which is index.html) other then the index.html, then it takes me to the index.php, and that is correct. When i click on my index.html page e.g about-us.html, then it tell me, the page dont exist. So what is wrong in my index.html, like i said before i have made the proper chaanges, but it still dont wanna work.
Link to comment
Share on other sites

Hello! ^.^I am a little confused at your question, maybe I read it wrong? Could you provide the names of each file with it eg projectme.html or index.php or whatever. I am sorry if it is only me who became confused reading your post.One thing I noticed is that many of your addresses are absolute but point to your hard-drive (c:) does dreamweaver allow you to convert these en mass to the addresses you will be using online? If not maybe relative addresses may help as if you place your public_html folder in the root of the c: drive you can use the same relative addresses as you would use once it is online. The second page you gave uses (kinda - see below) suitable relative addressing though.So I think you created ProjectMe.php, then re-named it to index.html and now your links are not working? You said you click on "home" and you are taken to the index.html, this is normal. Maybe you meant to link to somewhere else if so I would call the link something other than home. Or is it that you have projectme.php and index.html? If so then it is the addresses that are probably the problem. Lets look at this for a second:

<a href="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/contack_Us.html" class="navText">CONTACT</a>

Firstly this is an absolute address to your hard-drive so if you are testing this online it will not work. Secondly there is a possible typo at the end of the address, "contack_Us.html". I am having a guess that this should be "contact_us.html"? Thirdly is this stored in the same folder as the target? If so try a relative address like you have on the second page and you should not have problems. So I would try this maybe and add class etc once it works:

<a href="/contact_us.html">CONTACT</a>

There is this on the second page:

<a href="index.html">HOME</a>

Which is certainly a link to index.html in the public_html folder. However for me I would have to write:

<a href="/index.html">HOME</a>

for the link to work properly. The / before index.html tells the browser to look in the root of the server, in most cases as far as we are concerned that is the public_html folder, then the file name comes after.I dont know if that is any help at all as I am a little confused as to what you are asking!Good luck! ^.^bOh you just posted, well

<td width="160"><a href="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/About_US-4.html" class="navText">ABOUT US</a></td>

and

When i click on my index.html page e.g about-us.html, then it tell me, the page dont exist.
That explains that maybe. You have a file called about-us.html? You have linked to "About_US-4.html" which is a different document. I would call it "about_us.html" all in lower-case with a standard underscore space between words to ensure that you dont get confused.Sorry I am still a little confused. I think I need a cup of tea! ^.^
Link to comment
Share on other sites

Hello! ^.^I am a little confused at your question, maybe I read it wrong? Could you provide the names of each file with it eg projectme.html or index.php or whatever. I am sorry if it is only me who became confused reading your post.One thing I noticed is that many of your addresses are absolute but point to your hard-drive (c:) does dreamweaver allow you to convert these en mass to the addresses you will be using online? If not maybe relative addresses may help as if you place your public_html folder in the root of the c: drive you can use the same relative addresses as you would use once it is online. The second page you gave uses (kinda - see below) suitable relative addressing though.So I think you created ProjectMe.php, then re-named it to index.html and now your links are not working? You said you click on "home" and you are taken to the index.html, this is normal. Maybe you meant to link to somewhere else if so I would call the link something other than home. Or is it that you have projectme.php and index.html? If so then it is the addresses that are probably the problem. Lets look at this for a second:
<a href="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/contack_Us.html" class="navText">CONTACT</a>

Firstly this is an absolute address to your hard-drive so if you are testing this online it will not work. Secondly there is a possible typo at the end of the address, "contack_Us.html". I am having a guess that this should be "contact_us.html"? Thirdly is this stored in the same folder as the target? If so try a relative address like you have on the second page and you should not have problems. So I would try this maybe and add class etc once it works:

<a href="/contact_us.html">CONTACT</a>

There is this on the second page:

<a href="index.html">HOME</a>

Which is certainly a link to index.html in the public_html folder. However for me I would have to write:

<a href="/index.html">HOME</a>

for the link to work properly. The / before index.html tells the browser to look in the root of the server, in most cases as far as we are concerned that is the public_html folder, then the file name comes after.I dont know if that is any help at all as I am a little confused as to what you are asking!Good luck! ^.^bOh you just posted, well

<td width="160"><a href="file:///C|/Documents and Settings/Anthony/My Documents/Anthony/About_US-4.html" class="navText">ABOUT US</a></td>

and That explains that maybe. You have a file called about-us.html? You have linked to "About_US-4.html" which is a different document. I would call it "about_us.html" all in lower-case with a standard underscore space between words to ensure that you dont get confused.Sorry I am still a little confused. I think I need a cup of tea! ^.^

I have all the files, just look at my index.html file, where i link to that files. Thats al the files i have...
Link to comment
Share on other sites

Sorry i meant to say projectme.html. I know how to reference. If you look through my first code file you will see i already have dont that. What i dont understand is , when i click on one of my pages(on the home tab- which is index.html) other then the index.html, then it takes me to the index.php, and that is correct. When i click on my index.html page e.g about-us.html, then it tell me, the page dont exist. So what is wrong in my index.html, like i said before i have made the proper chaanges, but it still dont wanna work.
do you have the correct addresses throughout everypage in your site?Personally, I think you should do what mehashi said, and just make a root folder and put all your pages in it, with an images folder inside that for your images. That way you can get out of having absolute addresses and use relative addresses instead, which will most likely cut down on spelling errors and will help you out infinitely when it comes time to uploading these pages to a server. I would do this and then go through each page and change the links to the new relative addresses. Should be much less of a hassle just pointing to "about_us.html" rather than "////C://Documents......blah blah blah...../web_folder/about_us.html". Hope that helps some. I mean, if the pages aren't showing up when you click/link to them, then it's most likely a spelling/address problem. Edited by thescientist
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...