ho diverse pagine tutte strutturate allo stesso modo. Dovrei da qs pagine ricavare le varie materie (quelle con nell'img la scritta "Unità formativa" e NON quelle con scritto "fase") tipo:
Elementi per la sostenibilità
Accoglienza e Orientamento
Pari Opportunità
ect...
... ho provato usando le funzioni mid, instr, left e right, ma ho ottenuto solo pasticci...
qualcuno mi può aiutare? scusate la lunghezza del codice ma purtroppo non posso rilasciare il sito perchè protetto da pwd! :-(
grazie
Luisa
codice:
<html>
<head>
<TITLE>Struttura del Percorso</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<meta name="OWNER" content="appeling@appeling.it">
<meta name="AUTHOR" lang="it" content="Apprendimenti & Linguaggi">
<meta name="COPYRIGHT" content="©2001Apprendimenti & Linguaggi">
<link rel="stylesheet" href="/Templates/Default/css/gen.css" type="text/css">
<link rel="stylesheet" href="/Templates/Default/css/percorsi.css" type="text/css">
<script language="JavaScript" src="../Js/FunctionMM.js"></script>
<script language="JavaScript" src="Js/Gen.js"></script>
<script language="javascript">//<!--
function download(url,w,h,modulo,tipo)
{
url = "DownloadMngr.asp?IDPercorso=45431&Modulo=" + modulo + "&Tipo=" + escape(tipo);
window.open(url,"","menubar=yes,scrollbars=no,width=" + w + ", height=" + h + ",statusbar=no,toolbar=no,resizable=yes");
return;
}
function fitLayer()
{
var curHdnLayer;
if(document.layers){
for(var i=0;i<document.layers.length;i++){
if(document.layers[i].id.toString().search(/H$/)==-1){
curHdnLayer = document.layers[i].id+'H';
document.layers[i].x = document.layers[curHdnLayer].pageX;
document.layers[i].y = document.layers[curHdnLayer].pageY;
}
}
}
}
function riportaInfo(wnd,objName,text)
{
var obj = null;
var ne4 = false;
if(document.all){ //ie
obj = wnd.document.all[objName];
} else if(ne4 = document.layers){ //ne4
obj = wnd.document.layers[objName];
} else { //ne6
obj = wnd.document.getElementById(objName);
}
if(ne4) {
obj.document.open();
obj.document.write(text);
obj.document.close();
} else {
obj.innerHTML = text;
}
}
function numElChecked(arr)
{
var frm = document.forms.frmQstCreaSchDom;
var num = 0;
if(arr.length){
for(var i=0;i<arr.length;i++){
if(arr[i].checked)
num++;
}
} else {
if(arr.checked)num++;
}
return num;
}
function numElChecked2(arr)
{
//var frm = document.forms.frmQstCreaSchDom;
var num = 0;
if(arr.length){
for(var i=0;i<arr.length;i++){
if(arr[i].checked)
num++;
}
} else {
if(arr.checked)num++;
}
return num;
}
function numElCheckedByName(frm,elName,minEle,totEle)
{
var num =0;
for(var i=minEle;i<totEle;i++){
if(frm.elements[elName+i].checked){
num++;
}
}
return num;
}
function numElCheckedNoIdx(frm,prefix)
{
var re = new RegExp("^" + prefix + "[0-9]+") ///^chkAttrib[0-9]+/i;
var n =0;
for(var el in frm.elements){
if(el.search(re)>=0){
n += numElChecked(frm.elements[el]);
}
}
return n;
}
function fileNameExists(files,fname)
{
return (files.indexOf(fname)!=-1);
}
function specialChars(fname)
{
var forbiddenChars = "\\/:*?\"<>|,";
for(var i=0;i<fname.length;i++){
if(forbiddenChars.indexOf(fname.substr(i,1))!=-1){
return true;
}
}
return false;
}
function selectAll(chkName,frm,value)
{
if(frm.elements[chkName].length){
for(var i=0;i<frm.elements[chkName].length;i++){
frm.elements[chkName][i].checked = value
}
} else {
frm.elements[chkName].checked = value
}
}
//-->
</script>
<script language="JavaScript" src="Js/PercStru.js"></script>
<script language="JavaScript">
function LinkFile(txtEl,hdnEl)
{
var objOut =txtEl+','+hdnEl
var par = "?IDPercorso=45431&Modulo=FILE&Tipo=FILE&aggOpe=0&frmout=frm&objout="+objOut;
var wnd = window.open("PopUpAssociaFile.asp"+par,wnd,"scrollbars=yes,width=450, height=230,statusbar=no,toolbar=no,resizable=yes")
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onLoad="initGlobal()">
<form name="frm" method="post" action="PercStru.asp">
<input type="hidden" name="IDCatalogo" value="">
<input type="hidden" name="FromCatalogo" value="False"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" id="completa">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" id="testata">
<tr>
<td rowspan="2">[img]/Templates/Default/img/gen/logoal.gif[/img]</a></td>
<td rowspan="2"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>[img]/Templates/Default/img/gen/home.gif[/img]</td>
</tr>
<tr>
<td>[img]/Templates/Default/img/gen/strumenti.gif[/img]</td>
</tr>
<tr>
<td>[img]/Templates/Default/img/gen/elenco.gif[/img]</td>
</tr>
</table></td>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>[img]/Templates/Default/img/gen/lpercorsi.gif[/img]</td>
<td>[img]/Templates/Default/img/gen/loghi.gif[/img]</td>
<td width="100%"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="UTENTE">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>[img]/Templates/Default/img/trasp.gif[/img]</td>
<td width="100%" class="UTENTE">Utente: Pino Daniele - Gruppo: C.F.P. ITIS TORINO (C4-33) - Codice Utente: 623552</td>
<td>[img]/Templates/Default/img/trasp.gif[/img]</td>
<td><span title="Contatta il Servizio Assistenza A&L">[img]/Templates/Default/img/assist_small.gif[/img]</span></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" id="oggetto">
<tr>
<td>[img]/LearningPlayers/img/gen/trasp.gif[/img]</td>
<td>[img]/LearningPlayers/img/gen/ogg_start.gif[/img]</td>
<td nowrap background="/LearningPlayers/img/gen/ogg_mid.gif" class="OGGETTO">PERCORSO:Tecnico grafico per il multimedia e web design - C.F.P. ITIS "TORINO"</td>
<td>[img]/LearningPlayers/img/gen/ogg_end.gif[/img]</td>
</tr>
</table></td>
</tr>
</table>