Hvordan kan jeg centrer tekten i min form?
Koden:
<Html>
<Head>
<Title>
Test
</Title>
</Head>
<Body BgColor="FFFFFF">
<Div Align="center">
<Table Border="0" CellPadding="0" CellSpacing="0">
<Tr>
<Td Valign="top">
<Table Border="0" CellPadding="0" CellSpacing="0">
<Tr>
<Td height="50" valign="bottom"><img src="img/tl.gif"
Border="0"></Td>
<Td height="50" valign="bottom"><img src="img/top680.gif"
Border="0"></Td>
<Td height="50" valign="bottom"><img src="img/tr.gif"
Border="0"></Td>
</Tr>
<Tr>
<Td colspan="3" BackGround="img/center.gif">
<table border="0" cellpadding="20" cellspacing="0" Align="Center">
<tr>
<td align="Middle" Valign="Middle" style="font-family:arial;">
<Center>
<Form Name="COUNT">
<Input Type="TEXT" Size="75" Name="COUNT2">
</Form>
</Center>
</td>
</tr>
</table>
</td>
</Tr>
<Tr>
<Td><img src="img/bl.gif"></Td>
<Td><img src="img/But680.gif"></Td>
<Td><img src="img/br.gif"></Td>
</Tr>
</Table>
</Td>
</Tr>
</Table>
</Div>
</Body>
<Script>
var before="Zlatibor"
var current="Zaltibore evo stigli smo"
var montharray=new
Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec
")
function COUNTdown(yr,m,d){
theyear=yr;themonth=m;theday=d
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todayh=today.getHours()
var todaymin=today.getMinutes()
var todaysec=today.getSeconds()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+"
"+todayh+":"+todaymin+":"+todaysec
futurestring=montharray[m-1]+" "+d+", "+yr
dd=Date.parse(futurestring)-Date.parse(todaystring)
dday=Math.floor(dd/(60*60*1000*24)*1)
dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
if(dday==0&&dhour==0&&dmin==0&&dsec==1)
{
document.forms.COUNT.COUNT2.value=current
return
}
else
document.forms.COUNT.COUNT2.value="Jos "+dday+ " dana, "+dhour+" sati,
"+dmin+" minuta, i "+dsec+" sekunda nazat do dolazatka na "+before
setTimeout("COUNTdown(theyear,themonth,theday)",1000)
}
COUNTdown(2002,10,11)
</Script>
</Html>
På forhånd tak
Nenad Dragic
|