Two questions..  | |
June 20th, 2002, 10:58 PM
|
#1 (permalink)
| | Senior Member
Join Date: Oct 2001 Location: Eastern Shore
Posts: 701
|
Things are finally starting to come along, however, have two questions:
The first: What is a good pixel widh to make pages? i.e. when creating headers etc, what is a good all around general width?
The second: On my homepage, I am trying to create a "button like" symbol that shows the current date in the for Name, Month Day, Year. i.e. Thursday, June 20, 2002.
So, how do I go about setting this up, and what all do I have to create?
Thanks for the help!
ILC |
| |
June 20th, 2002, 11:01 PM
|
#2 (permalink)
| | it's me
Join Date: Oct 2001 Location: perpetual delerium
Posts: 4,705
|
For pixel size, I usually make one about 672x200 and then use the % command to set them to change size depending on the users moniter res. |
| |
June 22nd, 2002, 06:28 PM
|
#3 (permalink)
| | Member
Join Date: May 2002 Location: Pearl Harbor
Posts: 57
|
I found the below at www.dynamicdrive.com hope this is what you had wanted.
bebe <BODY onload=goforit()>
<SCRIPT>
/*
Live Date Script-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use,
visit http://www.dynamicdrive.com
*/
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thu rsday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May"," June","July","August","September","October","Novem ber","December")
function getthedate(){
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 hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate="<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn
+"</b></font></small>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}
</SCRIPT>
<SPAN id=clock></SPAN> |
| |
June 23rd, 2002, 05:31 PM
|
#4 (permalink)
| | Senior Member
Join Date: Oct 2001 Location: Eastern Shore
Posts: 701
|
Bebeangel,
Thanks for the information. What did you search for to find this code though? Im gonna a larger explanation than just that code in order for me in implement it into my site.
ILC |
| |
June 23rd, 2002, 06:50 PM
|
#5 (permalink)
| | Member
Join Date: May 2002 Location: Pearl Harbor
Posts: 57
| |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |