Ho estratto questo script da un template pronto per poi adattarlo nella mia pagina.
Presa la pagina standard, ridotta alla sola area che mi interessa e provata... tutto ok!
Copio il tutto dentro una cella del mio template e nella lettura sorgente di Firefox mi da 2 errori rispettivamente ad inizio e fine pagina. Vi posto il tutto con allegati i link:
Codice Originale:
che potete visualizzare correttamente a: FunzionaCodice PHP:<html>
<head>
<title>- Supreme Template 2</title>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<link rel="stylesheet" href="style1.css" type="text/css" media="screen">
<script type="text/javascript" src="mover.js"></script>
<style type="text/css">
<!--
.Stile1 {color: #FFFFFF}
-->
</style>
</head>
<body bgcolor="#000000" marginwidth="5" marginheight="5" leftmargin="5" topmargin="5">
<table width="536" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>[img]images/con_area_01.gif[/img]</td>
<td>[img]images/con_area_02.gif[/img]</td>
<td><a href="#" onMouseover="moveup()" onMouseout="clearTimeout(moveupvar)">
[img]images/butt_up.gif[/img]</a></td>
</tr><tr>
<td>[img]images/con_area_04.gif[/img]</td>
<td width="500" height="250" valign="top">
<script language="JavaScript1.2">
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=5
if (iens6){
document.write('<div id="container" style="position:relative;width:495;height:245;border:0px solid white;overflow:hidden">')
document.write('<div id="content" style="position:absolute;width:495;left:0;top:0">')
}
</script>
<ilayer name="nscontainer" width=490 height=240 clip="0,0,175,160">
<layer name="nscontent" width=490 height=240 visibility=hidden>
[img]images/title1-2.jpg[/img]
<p class="Stile1">Questa Minchia di coso cosi funziona mentre da me no..... SGRUNT!!!!!!!!!!!!!</p>
<span class="Stile1"><font size="2">[b]Aiutatemiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii![/b]</font>
[url="http://fijixsite.altervista.org"]<font size="2">[b]Please[/b]</font>[/url]
</span>
</layer>
</ilayer>
<script language="JavaScript1.2">
if (iens6)
document.write('</div></div>')
</script>
<script language="JavaScript1.2">
if (iens6){
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",20)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",20)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height
</script></td>
<td>[img]images/con_area_06.gif[/img]</td>
</tr><tr>
<td>[img]images/con_area_07.gif[/img]</td>
<td>[img]images/con_area_08.gif[/img]</td>
<td>[img]images/con_area_09.gif[/img]</td>
</tr><tr>
<td>[img]images/con_area_10.gif[/img]</td>
<td width="500" height="20" align="center">
[b]Grazie della Visita! [/b] </td>
<td><a href="#" onMouseover="movedown()" onMouseout="clearTimeout(movedownvar)">
[img]images/butt_down.gif[/img]</a></td>
</tr><tr>
<td colspan="2">[img]images/con_area_13.gif[/img]</td>
<td>[img]images/con_area_14.gif[/img]</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
e lo stesso codice nella mia pagina:
che da su firefox questo:
Codice PHP:<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>...:::My Focus:::...</title>
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<script type="text/javascript" src="mover.js"></script>
</head>
<body>
<td width="618" align="center">
<table width="536" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20" height="20"></td>
<td width="500" height="20"></td>
<td><a href="#" onMouseover="moveup()" onMouseout="clearTimeout(moveupvar)">
[img]images/butt_up.gif[/img]</a></td>
</tr><tr>
<td width="20" height="250"></td>
<td width="500" height="250" valign="top">
<script language="JavaScript1.2">
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=5
if (iens6){
document.write('<div id="container" style="position:relative;width:495;height:245;border:0px solid white;overflow:hidden">')
document.write('<div id="content" style="position:absolute;width:495;left:0;top:0">')
}
</script>
<ilayer name="nscontainer" width=490 height=240 clip="0,0,175,160">
<layer name="nscontent" width=490 height=240 visibility=hidden>
</layer>
</ilayer>
<script language="JavaScript1.2">
if (iens6)
document.write('</div></div>')
</script>
<script language="JavaScript1.2">
if (iens6){
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",20)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",20)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height
</script></td>
<td width="16" height="250"></td>
</tr><tr>
<td colspan="2"></td>
<td width="16"><a href="#" onMouseover="movedown()" onMouseout="clearTimeout(movedownvar)">
[img]images/butt_down.gif[/img]</a></td>
</tr>
</table>
<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;
function SymOnUnload()
{
window.open = SymWinOpen;
if(SymRealOnUnload != null)
SymRealOnUnload();
}
function SymOnLoad()
{
if(SymRealOnLoad != null)
SymRealOnLoad();
window.open = SymRealWinOpen;
SymRealOnUnload = window.onunload;
window.onunload = SymOnUnload;
}
SymRealOnLoad = window.onload;
window.onload = SymOnLoad;
//-->
</script>
Vi prego aiutatemi...non so nulla di javascript e non capisco cosa possa essere!!!!!!!!!!!![]()

Rispondi quotando