Avatar billede g-lock Nybegynder
08. november 2002 - 13:25 Der er 2 kommentarer og
1 løsning

samming koding af to script

1. script
-----------------------------------------------------------
<HTML>
<SCRIPT LANGUAGE="JavaScript">
function checkTime()
{
var time=new Date();
var date=time.getDate();
var year=time.getYear();
var month = time.getMonth();
if(date == 8 && month == 10 && year == 2002)
    window.open("http://www.hotmail.com");
}
</SCRIPT>
<body onLoad="checkTime();">
-----------------------------------------------------------
2.script
-----------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Page-Exit" content="blendTrans(Duration=3.0)">
<script language="JavaScript1.2">
<!--hide


//To change the title:where it says Welcome todays date is: just put you own text in if you would like to--
var isnMonth = new
Array("Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December");
var isnDay = new
Array("Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag");
today = new Date () ;
Year=today.getYear();
if (Year < 1000)
Year+=1900
Date=today.getDate();
function setdate(){
document.title="Welcomme to G-LOCK today is "+isnDay[today.getDay()]+" "+Date+" "+isnMonth[today.getMonth()]+" "+Year+""
}
if (document.all)
setdate()
else if (document.getElementById)
window.onload=setdate
//--hide-->
</script>
Avatar billede nikolajdu Nybegynder
08. november 2002 - 13:33 #1
Hvad er det du vil?
Avatar billede g-lock Nybegynder
11. november 2002 - 10:26 #2
lige nu liger de i to filer men de skal samles i en index.html fil
Avatar billede jeden Nybegynder
11. november 2002 - 12:21 #3
Jeg går ud fra at det er i header-delen du skal bruge det øverste script????

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Page-Exit" content="blendTrans(Duration=3.0)">
<script language="JavaScript1.2">
<!--hide


//To change the title:where it says Welcome todays date is: just put you own text in if you would like to--
var isnMonth = new
Array("Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December");
var isnDay = new
Array("Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag");
today = new Date () ;
Year=today.getYear();
if (Year < 1000)
Year+=1900
Date=today.getDate();
function setdate(){
document.title="Welcomme to G-LOCK today is "+isnDay[today.getDay()]+" "+Date+" "+isnMonth[today.getMonth()]+" "+Year+""
}
if (document.all)
setdate()
else if (document.getElementById)
window.onload=setdate
//--hide-->
</script>
<SCRIPT LANGUAGE="JavaScript">
function checkTime()
{
var time=new Date();
var date=time.getDate();
var year=time.getYear();
var month = time.getMonth();
if(date == 8 && month == 10 && year == 2002)
    window.open("http://www.hotmail.com");
}
</SCRIPT>
</head>
<body onLoad="checkTime();">
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester