language="java">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
>
< type="text/java">
var soundfile="camera1.wav" //path to sound file, or pass in filename directly into playsound()
function playsound(camera1.wav){
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(camera1.wav)
break
}
source=source.parentElement
}
}
>
< language="Java">
var theImages = new Array()
theImages[0] = 'images/revolving/0.jpg'
theImages[1] = 'images/revolving/1.jpg'
theImages[2] = 'images/revolving/2.jpg'
theImages[3] = 'images/revolving/3.jpg'
theImages[4] = 'images/revolving/4.jpg'
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document('');
}
//-->
>
< language=Java>
>
|
|