Bonjour a tous j'ai un petit souci j'aimerais ralier un html dans mon html a ce que j'ai pu voir il faut que j'utilise la balise <objet>
mais le problème c'est que cela ne fonctionne pas
Mon html
Voila celui que je voudrai rallier avec la balise objet
Donc moi j'ai tente de mettre sa dans mon html
Mais sa ne marche pas donc help me
Merci d'avance[/code]
Modifié par kelkun89 (04 Nov 2010 - 21:19)
mais le problème c'est que cela ne fonctionne pas
Mon html
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html><head>
<base href="Widgets/"/>
<link rel="stylesheet" href="Configuration/lockscreen.css">
<script type="text/javascript">
function updateClock ( )
{
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
var currentMinutes = currentTime.getMinutes ( );
var currentSeconds = currentTime.getSeconds ( );
// Pad the minutes and seconds with leading zeros, if required
currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
// Convert an hours component of "0" to "12"
//currentHours = ( currentHours == 0 ) ? currentHours + 24 : currentHours;
// Convert the hours component to 12-hour format if needed
//currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
// Convert an hours component of "0" to "12"
//currentHours = ( currentHours == 0 ) ? 12 : currentHours;
// Compose the string for display
var currentTimeString = currentHours + ":" + currentMinutes;
// Update the time display
document.getElementById("heure").firstChild.nodeValue = currentTimeString ;
}
function calendarDate ( )
{
var this_date_name_array = new Array ("0", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27" ,"28", "29" ,"30", "31")
var this_weekday_name_array = new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi")
var this_month_name_array = new Array("Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novembre","Décembre") //predefine month names
var this_date_timestamp = new Date()
var this_weekday = this_date_timestamp.getDay()
var this_date = this_date_timestamp.getDate()
var this_month = this_date_timestamp.getMonth()
document.getElementById("date").firstChild.nodeValue = this_weekday_name_array[this_weekday] + " " + this_date + " " + this_month_name_array[this_month] //concat long date string
}
</script></head>
<body>
<div id="wall">
<img src="Images/wall.png" width=320 height=480/>
</div>
<div id="cadre">
<img src="Images/cadre.png" width=189 height=251/>
</div>
<div id="cadre_fond">
<img src="Images/cadre_fond.png" width=189 height=251/>
</div>
<div id="cadre_fond_img">
<img src="Images/cadre_fond_img.png" width=189 height=251/>
</div>
<div id="image_1">
<img src="Images/1.png" width=189 height=251/>
</div>
<div id="image_2">
<img src="Images/2.png" width=189 height=251/>
</div>
<div id="image_3">
<img src="Images/3.png" width=189 height=251/>
</div>
<div id="image_4">
<img src="Images/4.png" width=189 height=251/>
</div>
<div id="image_5">
<img src="Images/5.png" width=189 height=251/>
</div>
<div id="image_6">
<img src="Images/6.png" width=189 height=251/>
</div>
<div id="image_7">
<img src="Images/7.png" width=189 height=251/>
</div>
<div id="image_8">
<img src="Images/8.png" width=189 height=251/>
</div>
<div id="image_9">
<img src="Images/9.png" width=189 height=251/>
</div>
<div id="image_10">
<img src="Images/10.png" width=189 height=251/>
</div>
<div id="image_11">
<img src="Images/11.png" width=189 height=251/>
</div>
<div id="image_12">
<img src="Images/12.png" width=189 height=251/>
</div>
<div id="image_13">
<img src="Images/13.png" width=189 height=251/>
</div>
<div id="saint">
<script language="JavaScript" src="../fetes.js"></script>
</div>
<table>
<tr><td>
<span id="date">
<script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script></span>
</tr></td>
</table>
<table>
<tr><td>
<span id="heure">
<script language="JavaScript">updateClock(); setInterval('updateClock()', 1000 )</script></span>
</td></tr>
</table>
</body>
</html>
Voila celui que je voudrai rallier avec la balise objet
<html><head><title>Weather</title></head>
<base href=""/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="../Configs/Weather-Config.js"/>
<script type="text/javascript" src="Weather.js"/>
</head>
<body bgcolor="Transparent" onload="onLoad()">
<div id="WeatherContainer"> <div id="TextContainer"> <p id="city">Loading...</p> <p id="temp">...</p> <p id="desc">...</p> </div>
<img id="weatherIcon" src=""/> </div>
</body></html>
Donc moi j'ai tente de mettre sa dans mon html
<object data="Weather.html" type="text/html" height="480" width="320"></object>
Mais sa ne marche pas donc help me
Merci d'avance[/code]
Modifié par kelkun89 (04 Nov 2010 - 21:19)