Code:
<html>
<head>
<style type="text/css">
/*<![CDATA[*/
.caption {
position:absolute;
z-Index:101;
visibility:hidden;
left:20px;
top:20px;
height:25px;
width:400px;
background-Color:#66CC99;
text-Align:center;
font-Size:20px;
}
/*]]>*/
</style>
<style type="text/css">
<!--
a { text-decoration : none; color : #000; }
</style>
<bgsound src="#" id="soundeffect" loop=1 autostart="true" />
<script type="text/javascript">
/***********************************************
* JavaScript Sound effect- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
var soundfile="http://www.bigwood.nottingham.sch.uk/wp-content/uploads/2014/PE/What does Aerobic mean.mp3" //path to sound file, or pass in filename directly into playsound()
var soundfile="http://www.bigwood.nottingham.sch.uk/wp-content/uploads/2014/PE/What are Anabolic Steroids.mp3" //path to sound file, or pass in filename directly into playsound()
var soundfile="http://www.bigwood.nottingham.sch.uk/wp-content/uploads/2014/PE/What does Anorexia mean.mp3" //path to sound file, or pass in filename directly into playsound()
var soundfile="http://www.bigwood.nottingham.sch.uk/wp-content/uploads/2014/PE/What is a Balanced Diet.mp3" //path to sound file, or pass in filename directly into playsound()
var soundfile="http://www.bigwood.nottingham.sch.uk/wp-content/uploads/2014/PE/What does Blood Pressure mean.mp3" //path to sound file, or pass in filename directly into playsound()
var soundfile="http://www.bigwood.nottingham.sch.uk//wp-content/uploads/2014/PE/What does Cardiac Output mean.mp3" //path to sound file, or pass in filename directly into playsound()
var soundfile="http://www.bigwood.nottingham.sch.uk/wp-content/uploads/2014/PE/What are Diuretics.mp3" //path to sound file, or pass in filename directly into playsound()
var soundfile="http://www.bigwood.nottingham.sch.uk/wp-content/uploads/2014/PE/What is an Endomorph.mp3" //path to sound file, or pass in filename directly into playsound()
var soundfile="http://www.bigwood.nottingham.sch.uk/wp-content/uploads/2014/PE/What does Exercise mean.mp3" //path to sound file, or pass in filename directly into playsound()
function playsound(soundfile){
if (document.all && document.getElementById){
document.getElementById("soundeffect").src="" //reset first in case of problems
document.getElementById("soundeffect").src=soundfile
}
}
function bindsound(tag, soundfile, masterElement){
if (!window.event) return
var source=event.srcElement
while (source!=masterElement && source.tagName!="HTML"){
if (source.tagName==tag.toUpperCase()){
playsound(soundfile)
break
}
source=source.parentElement
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>PE Pocasts</title>
</head>
<body>
<div id="pop1" class="caption" style="top:-60px; left:10px; background-Color:#DF01D7;" >What does Aerobic mean?</div>
<div id="pop2" class="caption" style="top:-60px; left:10px; background-Color:#00FF80;" >What are Anabolic Steroids?</div>
<div id="pop3" class="caption" style="top:-60px; left:-100px; background-Color:#F5A9F2;" >What does Anorexia mean?</div>
<div id="pop4" class="caption" style="top:-60px; left:-100px; background-Color:#9A2EFE;" >What is a Balanced Diet?</div>
<div id="pop5" class="caption" style="top:-60px; left:-100px; background-Color:#01DFD7;" >What does Blood Pressure mean?</div>
<div id="pop6" class="caption" style="top:-60px; left:-100px; background-Color:#DF013A;" >What does Cardiac Output mean?</div>
<div id="pop7" class="caption" style="top:-60px; left:-100px; background-Color:#D7DF01;" >What are Diuretics?</div>
<div id="pop8" class="caption" style="top:-60px; left:-100px; background-Color:#0080FF;" >What is an Endomorph?</div>
<div id="pop9" class="caption" style="top:-60px; left:-100px; background-Color:#FF4000;" >What does Exercise mean?</div>
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="75" align="center" valign="middle"> </td>
<td align="center" valign="middle"> </td>
<td align="center" valign="middle"> </td>
</tr>
<tr>
<td width="100" align="center" valign="middle">
<img src="http://www.bigwood.nottingham.sch.uk/wp-content/uploads/2014/PE/aerobic.jpg" width="100" height="100" onClick="playsound('http://www.bigwood.nottingham.sch.uk//wp-content/uploads/2014/PE/What does Aerobic mean.mp3')" class="zxcCaptionOvelay:pop1 FadeIn:100 Speed:1000" />
</td>
<td width="100" align="center" valign="middle">
<img src="http://www.bigwood.nottingham.sch.uk//wp-content/uploads/2014/PE/steroids.jpg" alt="" width="100" height="100" onClick="playsound('http://www.bigwood.nottingham.sch.uk/wp-content/uploads/2014/PE/What are Anabolic Steroids.mp3')" class="zxcCaptionOvelay:pop2 FadeIn:100 Speed:1000" /></td>
<td width="100" align="center" valign="middle"><img src="http://www.bigwood.nottingham.sch.uk//wp-content/uploads/2014/PE/anorexia.jpg" alt="" width="100" height="100" onClick="playsound('http://www.bigwood.nottingham.sch.uk/wp-content/uploads/2014/PE/What does Anorexia mean.mp3')" class="zxcCaptionOvelay:pop3 FadeIn:100 Speed:1000" /></td>
</tr>
</table>
<script type="text/javascript">
/*<![CDATA[*/
// Caption Ovelay (23-April-2013)
// by: Vic Phillips - http://www.vicsjavascripts.org.uk/
var zxcCaptionOvelay={
init:function(op){
op=typeof(op)=='object'?op:{};
var clds=document.getElementsByTagName('IMG'),obj,o,s,i,f,z0=0;
for (;z0<clds.length;z0++){
s=clds[z0].className;
if (s&&(s).match('zxcCaptionOvelay:')){
s=s.split(' ');
o={lk:clds[z0]};
for (z0a=0;z0a<s.length;z0a++){
i=s[z0a].indexOf(':');
if (i>3){
o[s[z0a].substring(0,i).toLowerCase()]=s[z0a].substring(i+1);
}
}
o.obj=document.getElementById(o.zxccaptionovelay);
if (o.obj){
f=o.fadein;
s=o.speed;
o.osx=o.obj.offsetLeft;
o.osy=o.obj.offsetTop;
o.iw=o.lk.offsetWidth;
o.ih=o.lk.offsetHeight;
o.ud=false;
o.f=[o.obj,0,isFinite(f*1)&&f>10?f*1:50,0];
o.ms=o.static!='true'&&isFinite(s*1)&&s>20?s*1:50;
o.static!='true'?this.addevt(document,'mousemove','move',o):this.addevt(document,'resize','caption',o);
this.caption(o,o.static=='true');
}
}
}
},
move:function(o,e){
var p=this.pos(o.lk),xy=e?this.mse(e):o.xy,x=xy[0],y=xy[1];
ud=x>p[0]&&x<p[0]+o.lk.offsetWidth&&y>p[1]&&y<p[1]+o.lk.offsetHeight;
if (ud!=o.ud){
this.caption(o,ud);
}
o.ud=ud;
},
caption:function(o,ud){
var p=this.pos(o.lk);
o.obj.style.left=p[0]+o.osx+'px';
o.obj.style.top=p[1]+o.osy+'px';
o.obj.style.visibility='visible';
this.animate(o,o.f,o.f[3],o.f[ud?2:1],new Date(),o.ms);
},
animate:function(o,a,f,t,srt,mS){
clearTimeout(a[4]);
var oop=this,ms=new Date().getTime()-srt,n=(t-f)/mS*ms+f;
if (isFinite(n)){
oop.opc(a[0],n);
a[3]=n;
}
if (ms<mS){
a[4]=setTimeout(function(){ oop.animate(o,a,f,t,srt,mS); },10);
}
else {
a[3]=t;
oop.opc(a[0],t);
t==0?a[0].style.visibility='hidden':null;
}
},
opc:function(o,n){
o.style.filter='alpha(opacity='+n+')';
o.style.opacity=o.style.MozOpacity=o.style.WebkitOpacity=o.style.KhtmlOpacity=n/100-.001;
},
mse:function(e){
if (window.event){
var s=[document.body.scrollLeft,document.body.scrollTop];
if (!s[1]){
s=[document.documentElement.scrollLeft,document.documentElement.scrollTop];
}
return [e.clientX+s[0],e.clientY+s[1]];
}
return [e.pageX,e.pageY];
},
pos:function(obj){
var rtn=[0,0];
while(obj){
rtn[0]+=obj.offsetLeft;
rtn[1]+=obj.offsetTop;
obj=obj.offsetParent;
}
return rtn;
},
addevt:function(o,t,f,p,p1){
var oop=this;
if (o.addEventListener){
o.addEventListener(t,function(e){ return oop[f](p,e);}, false);
}
else if (o.attachEvent){
o.attachEvent('on'+t,function(e){ return oop[f](p,e); });
}
}
}
zxcCaptionOvelay.init();
/*]]>*/
</script>
</body>
</html>
Bookmarks