09/07/09 12:43
Mte90
1) sul sito non vedo nessun orologio
2) bisogna vedere cosa crea il codice javascript in termini di css e html
3) posta il codice javascript dell' orologio
2) bisogna vedere cosa crea il codice javascript in termini di css e html
3) posta il codice javascript dell' orologio
aaa
10/07/09 11:18
ibrido2009
strano che non visualizzi l'orologio... cmq il codice è il seguente:
<HEAD>
<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" />
<object id="VMLRender" codebase="vgx.dll" classid="CLSID:10072CEC-8CC1-11D1-986E-00A0C955B42E">
</object>
<style>
<!--
v\:* { behavior: url(#VMLRender); }
-->
</style>
<script language="JavaScript1.2">
<!--
/*
DHTML analog clock II (By Erik Arvidsson at webfx.eae.net)
Slight modifications to script made by Dynamicdrive.com
Permission granted to Dynamicdrive.com to include script in archive
For this and 100's more DHTML scripts, visit dynamicdrive.com
*/
//specify clock size in pixels
var clocksize=135
function updatePointers() {
var now = new Date();
secondsPointer.style.rotation = now.getSeconds() * 6;
minutesPointer.style.rotation = now.getMinutes() * 6 + now.getSeconds() / 10;
hoursPointer.style.rotation = now.getHours() * 30 + now.getMinutes() / 2;
}
if (document.all&&window.print){
window.attachEvent("onload", initVMLClock);
window.attachEvent("onresize", resizeObjects);
}
function initVMLClock() {
resizeObjects();
updatePointers();
window.setInterval("updatePointers()", 1000);
}
function resizeObjects() {
var size = Math.min(clocksize, clocksize);
clock.style.pixelWidth = size - 2*(size * 0.045);
clock.style.pixelHeight = size - 2*(size * 0.045);
clock.childNodes.item(0).childNodes.item(0).weight = size * 0.01;
secondsPointer.childNodes.item(0).childNodes.item(0).weight = size * 0.001;
minutesPointer.childNodes.item(0).childNodes.item(0).weight = size * 0.002;
hoursPointer.childNodes.item(0).childNodes.item(0).weight = size * 0.004;
}
function toggle(sId) {
var el = document.getElementById(sId);
el.style.display = (el.style.display == "none" ? "block" : "none";
}
//-->
</script>
</HEAD>
<v:group id="clock" coordsize="100 100" style="position: relative;">
<v:oval style="width: 100%; height: 100%">
<v:stroke weight="10px" color="gray"/>
<v:fill type="gradient" color="white" color2="#eeeeff" angle="225deg"/>
</v:oval>
<v:group id="secondsPointer" style="width: 100%; height: 100%; position: absolute; top: 0px; left: 0px;">
<v:line from="50,50" to="50,5">
<v:stroke weight="2px" endcap="round" color="navy"/>
</v:line>
</v:group>
<v:group id="minutesPointer" style="width: 100%; height: 100%; position: absolute; top: 0px; left: 0px;">
<v:line from="50,50" to="50,8">
<v:stroke weight="4px" endcap="round" color="navy"/>
</v:line>
</v:group>
<v:group id="hoursPointer" style="width: 100%; height: 100%; position: absolute; top: 0px; left: 0px;">
<v:line from="50,50" to="50,18">
<v:stroke weight="7px" endcap="round" color="navy"/>
</v:line>
</v:group>
</v:group>
grazie
<HEAD>
<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" />
<object id="VMLRender" codebase="vgx.dll" classid="CLSID:10072CEC-8CC1-11D1-986E-00A0C955B42E">
</object>
<style>
<!--
v\:* { behavior: url(#VMLRender); }
-->
</style>
<script language="JavaScript1.2">
<!--
/*
DHTML analog clock II (By Erik Arvidsson at webfx.eae.net)
Slight modifications to script made by Dynamicdrive.com
Permission granted to Dynamicdrive.com to include script in archive
For this and 100's more DHTML scripts, visit dynamicdrive.com
*/
//specify clock size in pixels
var clocksize=135
function updatePointers() {
var now = new Date();
secondsPointer.style.rotation = now.getSeconds() * 6;
minutesPointer.style.rotation = now.getMinutes() * 6 + now.getSeconds() / 10;
hoursPointer.style.rotation = now.getHours() * 30 + now.getMinutes() / 2;
}
if (document.all&&window.print){
window.attachEvent("onload", initVMLClock);
window.attachEvent("onresize", resizeObjects);
}
function initVMLClock() {
resizeObjects();
updatePointers();
window.setInterval("updatePointers()", 1000);
}
function resizeObjects() {
var size = Math.min(clocksize, clocksize);
clock.style.pixelWidth = size - 2*(size * 0.045);
clock.style.pixelHeight = size - 2*(size * 0.045);
clock.childNodes.item(0).childNodes.item(0).weight = size * 0.01;
secondsPointer.childNodes.item(0).childNodes.item(0).weight = size * 0.001;
minutesPointer.childNodes.item(0).childNodes.item(0).weight = size * 0.002;
hoursPointer.childNodes.item(0).childNodes.item(0).weight = size * 0.004;
}
function toggle(sId) {
var el = document.getElementById(sId);
el.style.display = (el.style.display == "none" ? "block" : "none";
}
//-->
</script>
</HEAD>
<v:group id="clock" coordsize="100 100" style="position: relative;">
<v:oval style="width: 100%; height: 100%">
<v:stroke weight="10px" color="gray"/>
<v:fill type="gradient" color="white" color2="#eeeeff" angle="225deg"/>
</v:oval>
<v:group id="secondsPointer" style="width: 100%; height: 100%; position: absolute; top: 0px; left: 0px;">
<v:line from="50,50" to="50,5">
<v:stroke weight="2px" endcap="round" color="navy"/>
</v:line>
</v:group>
<v:group id="minutesPointer" style="width: 100%; height: 100%; position: absolute; top: 0px; left: 0px;">
<v:line from="50,50" to="50,8">
<v:stroke weight="4px" endcap="round" color="navy"/>
</v:line>
</v:group>
<v:group id="hoursPointer" style="width: 100%; height: 100%; position: absolute; top: 0px; left: 0px;">
<v:line from="50,50" to="50,18">
<v:stroke weight="7px" endcap="round" color="navy"/>
</v:line>
</v:group>
</v:group>
grazie
aaa
10/07/09 12:11
Mte90
il sito non si visualizza perchè io sn su linux e a quanto pare il codice hce hai meso mi ricorda asp..
per me è meglio se prendi un altro orologio.
per me è meglio se prendi un altro orologio.
aaa
10/07/09 12:42
ibrido2009
quello puo anche darsi ma non capisco perkè tempo addietro funzionava correttamente al layout da me impostato e ora invece girovaga a suo piacimento ...
aaa