-
Notifications
You must be signed in to change notification settings - Fork 0
/
shakti.js
27 lines (25 loc) · 946 Bytes
/
shakti.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function finIntro() { document.body.className = 'introOK'; }
document.getElementById('intro').onended = finIntro;
document.getElementById('btn').onclick = function() {
var player = document.getElementById('intro');
if ( player.paused ) { player.play(); }
else { player.pause(); }
};
function finIntro() { document.body.className = 'introOK'; }
document.getElementById('intro').onended = finIntro;
document.getElementById('btn2').onclick = function() {
var player = document.getElementById('intro');
if ( player.paused ) { player.play(); }
else { player.pause(); }
};
sfHover = function() {
var sfEls = document.getElementById("menu").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);