home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Two questions..

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2129
Discussions: 200,948, Posts: 2,379,401, Members: 246,309
Old June 20th, 2002, 10:58 PM   Digg it!   #1 (permalink)
ILC
Senior Member
 
ILC's Avatar
 
Join Date: Oct 2001
Location: Eastern Shore
Posts: 701
Two questions..

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
ILC is offline   Reply With Quote
Old June 20th, 2002, 11:01 PM     #2 (permalink)
it's me
 
Bob The Great's Avatar
 
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.
Bob The Great is offline   Reply With Quote
Old June 22nd, 2002, 06:28 PM     #3 (permalink)
Member
 
bebeangel's Avatar
 
Join Date: May 2002
Location: Pearl Harbor
Posts: 57
Send a message via AIM to bebeangel
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>
bebeangel is offline   Reply With Quote
Old June 23rd, 2002, 05:31 PM     #4 (permalink)
ILC
Senior Member
 
ILC's Avatar
 
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
ILC is offline   Reply With Quote
Old June 23rd, 2002, 06:50 PM     #5 (permalink)
Member
 
bebeangel's Avatar
 
Join Date: May 2002
Location: Pearl Harbor
Posts: 57
Send a message via AIM to bebeangel
Just go to www.dynamicdrive.com they should have the explaination.

bebe
bebeangel is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (173)
Is It Just Me? (2936)
The disrespect of Obama by Russian .. (22)
Wireless Televisions. (12)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (5)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
How to convert MP3's (4)
Wireless Televisions. (12)
Graphics Card Upgrade Question (3)
Laptop with wireless problem. (2)
Internet Lost (1)
Hp Artist Edition + Matching Bag (0)
My monitor won't turn on after instal.. (0)
Asus P4G8X Mobo (6)
radeon x850xt platinum & shader 3 (5)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
windows 7 internet problem (5)
Multiple Restarts Required at Boot (0)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Have you switched yet? (86)
screen resolution vs monitor size (2)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)


All times are GMT -4. The time now is 09:15 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28