moving my date in html source!

  mco 18:19 03 Nov 05
Locked

Hi again (FE? ade? anyone on NOF?) I've inserted cut and paste html date into the html source but it's not where I want it - I want it underneath the banner not at the very top of the page. Could someone tell me in which bit of html I should be pasting it? ( or is this not the right way to do it?) Thanks.
PS Please don't knock the site yet; it's only in its early stages and I only published it so you could help me change the date!
click here

  mco 18:21 03 Nov 05

I want it under the writing 'geography dept website'

  djinn 21:25 03 Nov 05

Hey,

Find the bit in your code like this.....

TD COLSPAN=6 WIDTH=479>
<P><FONT FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"></FONT><FONT COLOR="#990000" SIZE="+1" FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif">                     Our Lady’s Catholic High School Preston                                     Geography Department website </FONT></P>

</TD>

and replace with this........

<td colspan="6" width="479">
<p align="center"><font face="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"></font><font color="#990000" face="Arial,Helvetica,Geneva,Sans-serif,sans-serif" size="+1">Our
Lady’s Catholic High School Preston Geography Department website<br>
</font><font color="#990000" face="Arial,Helvetica,Geneva,Sans-serif,sans-serif" size="+1">
<script>
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</b></font></small>")

</script>
</font></p>
</td>

Then remove this at the top of your code......

<script>


var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</b></font></small>")

</script><small><font color="#000000" face="Arial"><b>Thursday, November 03, 2005</b></font></small>

HTH

Cheers

  mco 22:02 03 Nov 05

Will have a look and try - last time I looked I couldn't find the exact text - just things like text 1, text 2 etc..but will look again.

  mco 22:57 03 Nov 05

Got it now - thanks very much! click here
although....don't suppose there's a way I can centre it is there?

  djinn 23:08 03 Nov 05

Yup - my code above will center it for you.

HTH
Cheers

This thread is now locked and can not be replied to.

Nintendo Switch review: Hands-on with the intuitive modular console and its disappointing games…

1995-2015: How technology has changed the world in 20 years

New Corel ParticleShop plugin now available: 11 new brushes & 6 new brush packs

Apple AirPods review: Apple's beautiful new Bluetooth headphones bring true intelligence to…