Bonjour à tous,
Voila j'ai un petit probleme avec mes script JavaScript lorsque j'en
met deux il y a en a qui disparait. J'ai un Jscrip qui fait le
menu et un autre qui fais un compte a rebour et le compte à rebour ne
s'affiche pas mais si on retire le onload dans le tag body il s'affiche
bien
voici le code source de la page
Merci d'avance
<html>
<head>
<meta http-equiv= "Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="/themes/office_xp/office_xp.css" title="Office XP" />
<link rel=" alternate stylesheet" type="text/css" href="/themes/classic/classic.css" title="Classic" />
<script type="text/javascript" src="jsdomenu.js">
/***********************************************
* JSDOMenu v1.3- By Toh Zhiqiang (webmaster@REMOVETHIStohzhiqiang.per.sg)
* Script featured on Dynamic Drive DHTML code library
* Visit
http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<script type="text/javascript" src="democonfig5.js"></script>
<script language="JavaScript1.2">
/*
Dynamic countdown Script- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS,
visit
http://www.dynamicdrive.com
*/
function setcountdown(theyear,themonth,theday){
yr=theyear;mo=themonth;da=theday
}
//////////CONFIGURE THE COUNTDOWN SCRIPT HERE//////////////////
//STEP 1: Configure the countdown-to date, in the format year, month, day:
setcountdown(2005,04,15)
//STEP 2: Change the two text below to reflect the occasion, and message to display on that occasion, respectively
var occasion="eurobot 2005!"
var message_on_occasion="Et c est parti pour la compet!"
//STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countdown area
var countdownwidth='480px'
var countdownheight='20px'
var countdownbgcolor= '#AABFFF'
var opentags='<small>'
var closetags='</small>'
//////////DO NOT EDIT PASS THIS LINE//////////////////
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var crosscount=''
function start_countdown(){
if (document.layers)
document.countdownnsmain.visibility="show"
else if (document.all||document.getElementById)
crosscount=document.getElementById&&!document.all?document.getElementById("countdownie") : countdownie
countdown()
}
if (document.all||document.getElementById)
document.write('')
window.onload=start_countdown
function countdown(){
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[mo-1]+" "+da+", "+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 on day of occasion
if(dday<=0&&dhour<=0&&dmin<=0&&dsec<=1&&todayd==da){
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+message_on_occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+message_on_occasion+closetags
return
}
//if passed day of occasion
else if (dday<=-1){
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+dday+
" jours, "+dhour+" heure, "+dmin+" minutes, and "+dsec+" secondes
jusqu'a "+occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+"Occasion already passed! "+closetags
return
}
//else, if not yet
else{
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+dday+
" jours, "+dhour+" heure, "+dmin+" minutes, and "+dsec+" secondes
jusqu'a "+occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+dday+ " jours, "+dhour+" heure, "+dmin+"
minutes, and "+dsec+" secondes jusqu'a "+occasion+closetags
}
setTimeout("countdown()",1000)
}
</script>
</head>
<table width="100%" border="0" height="100%" align="right">
----,
<table
width=\"948\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\" height=\"70%\">
----
,
<layer id="countdownnssub"
width=&{countdownwidth}; height=&{countdownheight}; left=100
top=100></layer> |
</td>
<td width ="23%" height= "104">
</td>
</tr>
</table>
</td>
</tr>
<tr height="664">
<td valign="top" height="664">
<table width="100%" border="0" height="437">
----
,
</td>
----
,
----
<table width="100%" border="0" height="145">
----
Les
statistiques |
----,
<% 'Response.Write(Application(\"visiteur\")) %>
<!--- Code à insérer Ocount --->
<script language =\"Javascript\"
src= \"
http://www.ocount.com/client.php?bdd=34&id=3484&type=3&col1=000000&col2=aabfff&col3=FFFFFF&col4=557faa&col5=FFFFFF&cheat=0&use_cookie=0&show=yes&st=visiteur(s)
sur le site\">
</script>
<!---Fin du code Ocount --->
</td>
</td>
</tr>
</table>
</td>
<td valign="top" width="62%" height="100%" align="center">
<%
' Const ForReading
1, ForWriting 2,
ForAppending = 3
' Dim fs, f
' Set fs =
CreateObject("Scripting.FileSystemObject")
' Set f =
fs.OpenTextFile(Server.MapPath("pagearticles") & "" &
request.QueryString("page") & ".asp", ForReading, TristateFalse)
' response.Write(f.readall)
' f.Close
select case
request.QueryString("page")
case "accueil"
: %> <!-- #include file="intro.asp" -->
<% case
"presse" : %> <!-- #include file="presse.asp" -->
<% case
"proinfo" : %> <!-- #include file="proinfo.asp" -->
<% case
"concours" : %> <!-- #include file="concours.asp" -->
<% case
"equipes" : %> <!-- #include file="equipes.asp" -->
<% case
"inscription" : %> <!-- #include file="intro.asp" -->
<% case
"confpanier" : %> <!-- #include file="intro.asp" -->
<% case
else %>
<!--
#include file="intro.asp" -->
<% end select %>
</td>
<td bgcolor="#557faa" width="23%" height="100%">
!! Venez nous voir en direct !!,
----
|
----
<!-- #include file ="actualites.asp" -->,
----
,
----
</td>
</tr>
</table>
</td>
</tr>
</table>
</html>
Afficher la suite