Разработка web-сайта ТФ МГУКИ. Создание информационного массива "Учебная часть"
Дипломная работа - Компьютеры, программирование
Другие дипломы по предмету Компьютеры, программирование
Timeout("moveUp("+num+","+snum+")",timspeed)swmenu2(num,snum)
}
}swmenu2(num,snum){=0;=0;(active>-1 && snum==-1){
//Hiding submenus(j=0;j<oSlide[active].subs;j++){oSlide[active].sub[j].hideIt()}[active].bgImg(level0_regular)[active].moveIt(0,oSlide[active].starty)
}(sactive>-1){
//Hiding submenus(j=0;j<oSlide[active][sactive].sub.length;j++){oSlide[active][sactive].sub[j].hideIt()}[active].sub[sactive].bgImg(oSlide[active].sub[sactive].origimg)[active].sub[sactive].moveIt(10,oSlide[active].sub[sactive].starty)
//Move back to place(i=sactive+1;i<oSlide[active].sub.length;i++){[active].sub[i].moveIt(oSlide[active].sub[i].x,oSlide[active].sub[i].starty)
}
}=num
-1){=snum(j=0;j-1){=snum(j=0;j<oSlide[num][snum].sub.length;j++){oSlide[num][snum].sub[j].showIt()}[num].sub[snum].moveBy(10,3)[num].sub[snum].bgImg(level1_round2)
}else{=-1(j=0;j<oSlide[active].subs;j++){oSlide[active].sub[j].showIt()}[num].moveBy(10,3)[num].bgImg(level0_round)
}(num!=oSlide.length-1) moveDown(num,snum){=num(num,snum)
}
}moveDown(num,snum){
//if(num==oSlide.length-1) isthere=num(i=num+1;i<oSlide.length;i++){(snum==-1){(oSlide[i].y<(oSlide[num].subs-1)*subheight+oSlide[i].starty+between-pxspeed) oSlide[i].moveBy(0,pxspeed){oSlide[i].moveIt(oSlide[i].x,(oSlide[num].subs-1)*subheight+oSlide[i].starty+between); isthere=i}
}else{(oSlide[i].y<(oSlide[num].subs-1)*subheight+oSlide[i].starty+between-pxspeed + (oSlide[num][snum].subs-1)*subheight+between) oSlide[i].moveBy(0,pxspeed){oSlide[i].moveIt(oSlide[i].x,(oSlide[num].subs-1)*subheight+oSlide[i].starty+between + (oSlide[num][snum].subs-1)*subheight+between); isthere=i}
}
}(snum!=-1){(i=snum+1;i<oSlide[num].sub.length;i++){(oSlide[num].sub[i].y<(oSlide[num][snum].subs-1)*subheight+oSlide[num].sub[i].starty+between-pxspeed) oSlide[num].sub[i].moveBy(0,pxspeed){oSlide[num].sub[i].moveIt(oSlide[num].sub[i].x,(oSlide[num][snum].subs-1)*subheight+oSlide[num].sub[i].starty+between); sisthere=i}
}
}(snum==-1){(isthere<oSlide.length-1) setTimeout("moveDown("+num+","+snum+")",timspeed)going=false
}else{(isthere<oSlide.length-1 || (sisthere<oSlide[num].sub.length-1 && snum!=oSlide[num].sub.length-1)) setTimeout("moveDown("+num+","+snum+")",timspeed)going=false
}
}test=0=new Array(); var a=0; var b=0; var c=0; var d=0makeMenu(type,text,lnk,target,end){=""; tg="";
if(target) tg=target="+target+"
if(!lnk) lnk="#"
\n(type=="top"){[a]=newArray();(text=="seperator"){+=\t\n[a].seperator=1
}else{
<a href="+lnk+" +tg+ onclick="swmenu(+a+,-1,-1); if(bw.ie || bw.ns6) this.blur();
if(lnk=="#") str+=return false
str+=">
}
menus[a].subs=0; a++; b=0
<a +tg+ onclick="swmenu(+(a-1)+,+b+,-1); if(bw.ie || bw.ns6) this.blur();
if(lnk=="#") str+=return false
str+=" href="+lnk+">
}else if(type=="sub2"){+=\t\t\n++; menus[a-1][b-1].subs=c; menus[a-1][b-1][c-1]=new Array(); d=0; menus[a-1][b-1][c-1].subs=0
}(end) str+="".write(str)
}preLoadBackgrounds(){
for(i=0;i<arguments.length;i++){
this[i]=new Image()
this[i].src=arguments[i]
}
return this
}
<!--caution = falsesetCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "")
if (!caution || (name + "=" + escape(value)).length <= 4000)
document.cookie = curCookie
else
if (confirm("Cookie exceeds 4KB and will be cut!"))
document.cookie = curCookie
}getCookie(name) {
var prefix = name + "="
var cookieStartIndex = document.cookie.indexOf(prefix)
if (cookieStartIndex == -1)
return null
var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
if (cookieEndIndex == -1)
cookieEndIndex = document.cookie.length
return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))
}deleteCookie(name, path, domain) {
if (getCookie(name)) {
document.cookie = name + "=" +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
"; expires=Thu, 01-Jan-70 00:00:01 GMT"
}
}fixDate(date) {
var base = new Date(0)
var skew = base.getTime()
if (skew > 0)
date.setTime(date.getTime() - skew)
}now = new Date()(now).setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000)visits = getCookie("counter")(!visits)
visits = 1
visits = parseInt(visits) + 1("counter", visits, now).write("Посещение сайта:"+ visits +"")
// -->
=28=25=22=13=15=200=10_regular="files/level0_regular.gif"_round="files/level0_round.gif"_regular="files/level1_regular.gif"_round="files/level1_round.gif"_sub="files/level1_sub.gif"_sub_round="files/level1_sub_round.gif"_round2="files/level1_round2.gif"_regular="files/level2_regular.gif"_round="files/level2_round.gif"(level0_regular,level0_round,level1_regular,level1_round,level1_sub,level1_sub_round,level1_round2,level2_regular,level2_round)">=28 =25 =22 =13 =15 =200 =10 _regular="files/level0_regular.gif"_round="files/level0_round.gif"_regular="files/level1_regular.gif"_round="files/level1_round.gif"_sub="files/level1_sub.gif"_sub_round="files/level1_sub_round.gif"_round2="files/level1_round2.gif"_regular="files/level2_regular.gif"_round="files/level2_round.gif"(level0_regular,level0_round,level1_regular,level1_round,level1_sub,level1_sub_round,level1_round2,level2_regular,level2_round)
//There are 3 different types of menus you can make
//top = Main menus
//sub = Sub menus
//sub2 = SubSub