Empfohlen: Interpretieren Sie die Liste häufig verwendeter ASP-Funktionen 1 Mathematische Funktionen 1.1 Die Rundungsfunktion int(x) nimmt die größte ganze Zahl an, die nicht größer als x ist. fix(x) rundet den Dezimalteil von x ab. 1.2 Absolutwertfunktion abs(x) ermittelt den Absolutwert von x. 1.3 Die Vorzeichenfunktion sgn(x) ermittelt den Vorzeichencode von x. Wenn x eine negative Zahl ist, ist der Funktionswert -1. 1.4 Die Quadratwurzelfunktion sqr(x) ermittelt die arithmetische Quadratwurzel von x, x muss größer als 0 sein. 1.5 Exponentialfunktion Bsp
Ergebnis:| <!doctypehtmlpublic-//W3C//DTDHTML4.0Transitional//EN> <html> <Kopf> <title>NeuesDokument</title> <metaname=Generatorcontent=EditPlus> <metaname=Authorcontent=> <metaname=Keywordscontent=> <metaname=Descriptioncontent=> </head> <Körper> <!-- Datumseingabesteuerung Autor: Verlorener Sohn Urheberrecht: EOB-Forum http://www.eob.cn/bbs 28.05.2005 -> <scriptsprache=javascript> <!-- FunktionAnzeige(Datum) { vartemphtml=<style>td{font-size:9pt;text-align:center;}</style><tablecellpadding=3cellspacing=1border=0bgcolor=FFFFFFwidth=320><trbgcolor=FFFFFF><tdalign=leftwidth=50>< ahref='javascript:parent.Display(newDate(+ date.getYear()+,+(date.getMonth()-1)+,+date.getDate()+));'><<<<</a></td><tdwidth= 220>> date.getYear()+year +(date.getMonth()+1)+month +</td><tdalign=right width=50><ahref='javascript:parent.Display(newDate(+date.getYear()+,+(date.getMonth()+1)+,+date.getDate()+ ));'>>>>></a></td></tr></table><tablecellpadding=3cellspacing=1border=0bgcolor=669933width=320><t rbgcolor=99BB66><td>Sonntag</td><td>Montag</td><td>Dienstag</td><td>Mittwoch</td><td>Donnerstag</td><td>Freitag< / td><td>Samstag</td></tr><tr>; varcurdate=newDate(); varldate=newDate(); varj=1; curdate.setFullYear(date.getFullYear(),date.getMonth(),1); for(varn=0;n<curdate.getDay();n++,j++) { if((j%7)==0) { temphtml+=<tdbgcolor=FFFFFF> </td></tr><tr>; } anders { temphtml+=<tdbgcolor=FFFFFF> </td>; } } n=1 for(vari=1;date.getMonth()==curdate.getMonth();i++,j++,curdate.setFullYear(date.getFullYear(),date.getMonth(), ich)) { if(parseInt(ldate.getDate(),10)==parseInt(curdate.getDate(),10)&& parseInt(ldate.getMonth(),10)==parseInt(curdate.getMonth(),10)&& parseInt(ldate.getYear(),10)==parseInt(curdate.getYear(),10) ) { if((j%7)==0) { temphtml+=<tdbgcolor=FFFFFFonmouseover='this.style.background=/99BB66/'onmouseout='this.style.background=/FFFFFF/'style='cursor:hand;'onclick= 'parent.SetValue(/+curdate.getYear()+-+(curdate.getMonth()+1)+-+curdate.getDate()+/);'><fontcolor=red>+curdate.getDate()+ </font></td></tr><tr>; } anders { temphtml+=<tdbgcolor=FFFFFFonmouseover='this.style.background=/99BB66/'onmouseout='this.style.background=/FFFFFF/'style='cursor:hand;'onclick='parent.SetValue(/+curdate. getYear()+-+ (curdate.getMonth()+1)+-+curdate.getDate()+/);'><fontcolor=red>+curdate.getDate()+</font></td>; } } anders { if((j%7)==0) { temphtml+=<tdbgcolor=FFFFFFonmouseover='this.style.background=/99BB66/'onmouseout='this.style.background=/FFFFFF/'style='cursor:hand;'onclick='parent.SetValue(/+curdate. getYear()+-+ (curdate.getMonth()+1)+-+curdate.getDate()+/);'>+curdate.getDate()+</td></tr><tr>; } anders { temphtml+=<tdbgcolor=FFFFFFonmouseover='this.style.background=/99BB66/'onmouseout='this.style.background=/FFFFFF/'style='cursor:hand;'onclick='parent.SetValue(/+curdate. getYear()+-+ (curdate.getMonth()+1)+-+curdate.getDate()+/);'>+curdate.getDate()+</td>; } } |
Teilen: Eine kurze Analyse der Notwendigkeit, den übergeordneten Pfad beim Schreiben von ASP-Code in Win2003 zu aktivieren Beim Schreiben von ASP-Code in Windows2003Server wird die Fehlermeldung „Übergeordneter Pfad nicht zulässig“ angezeigt. Die beteiligten Codes sind: Server.MapPath(.../)
Insgesamt 2 Seiten Vorherige Seite 12 Nächste Seite