Pop-up su div ...stò impazzendo

giovedì 01 giugno 2006 - 10.24

DesartStudio Profilo | Newbie

Ciao a tutti premetto che programmo da tempo in .net ma di js ne sò un cavolo

ora vengo al dunque stò usifruendo di questo esempio

http://javascript.html.it/script/ve...he-crea-pop-up/

dopo aver presonalizzato la mia finestra con immaginine e altro la testo e tutto ok
quando vado a portare il codice in'altra pagina non riesco a vedere nulla..
eppure il broswer non mi dà nessun errore..
per paura che non leggesse il js allegato ho provato anche a mettere il codice in <script..
ma nulla
la parte Script di codice è così composta

codice:

<script language="JavaScript" src="../js/popup.js"></script>
<script language="JavaScript">
window.onload=function(){
new popUp(200, 100, 300, 250, "Div", ".##...", "#eff3fb", "black", "bold 10px verdana", "Titolo", "#507cd1", "white", "#b5c7de", "gray", "666666", true, true, true, true, false);
//hidebox('Div');
}
</script>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!--
gauche5=5;
haut5= 25;
document.write('<STYLE TYPE="text/css">#Help { position:absolute;top:'+haut5+';left:'+gauche5+'; }</STYLE>');
ie4=document.all
ns6=document.getElementById&&!document.all
ns4=document.layers
window.onload = placeHelp;
function placeHelp() {
if (ie4) {Help.style.pixelTop=document.body.scrollTop+haut5}
else if (ns6) {document.getElementById("Help").style.top=window.pageYOffset+haut5}
else if (ns4) {eval(document.Help.top=eval(window.pageYOffset+haut5));}
if(ie4 || ns6 || ns4)
setTimeout("placeHelp()",1);
}
function open_win(url_add){
window.open(url_add,'Nome','width=800,height=600,menubar=no,status=no,location=yes,toolbar=no,scrollbars=yes');
}
//-->
</SCRIPT>




ho rpovato anche così :

codice:

<script language="JavaScript" src="../js/popup.js"></script>
<script language="JavaScript">
<!--
window.onload = placeHelp; MyPop;
function MyPop(){
new popUp(200, 100, 300, 250, "Div", ".##...", "#eff3fb", "black", "bold 10px verdana", "Titolo", "#507cd1", "white", "#b5c7de", "gray", "666666", true, true, true, true, false);
//hidebox('Div');
}
gauche5=5;
haut5= 25;
document.write('<STYLE TYPE="text/css">#Help { position:absolute;top:'+haut5+';left:'+gauche5+'; }</STYLE>');
ie4=document.all
ns6=document.getElementById&&!document.all
ns4=document.layers
function placeHelp() {
if (ie4) {Help.style.pixelTop=document.body.scrollTop+haut5}
else if (ns6) {document.getElementById("Help").style.top=window.pageYOffset+haut5}
else if (ns4) {eval(document.Help.top=eval(window.pageYOffset+haut5));}
if(ie4 || ns6 || ns4)
setTimeout("placeHelp()",1);
}
function open_win(url_add){
window.open(url_add,'Nome','width=800,height=600,menubar=no,status=no,location=yes,toolbar=no,scrollbars=yes');
}
//-->
</SCRIPT>



Secondo voi dove è il problema?
se lo script non dà errori come poso fare un minimo di debug in js?

Ciauz


Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5