girando per internet ho trovato questa libreria per creare delle finestre ajax, non popup, ma finestrelle con grafica personalizzabile
http://prototype-window.xilinus.com/
il difetto è che la grafica non è come dovrebbe venire...
vi posto il codice della mia pagina
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>ADMIN</title>
<link href="http://localhost:85/php2/Admin/../Theme/classic/spread.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" title="main" href="http://localhost:85/php2/Admin/../Theme/classic/stile.css" type="text/css" />
<script type="text/javascript" src="http://localhost:85/php2/Admin/javascripts/prototype.js"> </script>
<script type="text/javascript" src="http://localhost:85/php2/Admin/javascripts/effects.js"> </script>
<script type="text/javascript" src="http://localhost:85/php2/Admin/javascripts/window.js"> </script>
<script type="text/javascript" language="javascript">
if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
} else if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
function callServer(url) {
xmlHttp.open("GET", url, true);
xmlHttp.onreadystatechange = updatePage;
xmlHttp.send(null);
}
function updatePage() {
if (xmlHttp.readyState == 4) {
var response = xmlHttp.responseText;
document.getElementById("tot").innerHTML = response;
setTimeout("callServer(\'../includes/php/modules/rtoc.php\')",2500);
}
}
callServer("../includes/php/modules/rtoc.php");
</script>
</head>
<body>
<div id="javascript">Hai javascript bloccato o il tuo browser non lo supporta...aggiornalo!</div>
<div id="loading">
Loading...</div>
<div id="error" style="border:#FF0000 thin dashed; color:#FF0000;display:none;"></div>
<script>
var win = new Window('new', {className: "spread", title: "Ruby on Rails", top:70, left:100, width:300, height:200, resizable: true, url: "http://www.rubyonrails.org/", showEffectOptions: {duration:3}}); win.show();</script>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="67" valign="top" width="96%" class="part"><div id="tot"></div></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" width="18%" height="100" id="left" class="part" valign="top"><div id="menu">
<ul id="men">[*]
Home
[*]
Contattami
[*]
Contattami
[*]
Forum
[*]
Chat
[/list]
</div></td>
<td width="58%" align="left" valign="top" id="tcc">
<div class="news">
Edita :prima news
</div>
<div class="news">
Edita :seconda
</div></td>
<td width="20%" valign="top" id="right" class="part"></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="80%" align="center" valign="top" class="part">© 2005-2006 - Grafica e layout sono di esclusiva proprietà di Il sito di francy
|admin</td>
<td width="16%" align="left" valign="top" class="part">
Powered by:
</td>
</tr>
</table>
</body>
</html>