I am using this script:
<script type="text/javascript">
onload="loadImgs()"
// image construct begin
var imgArray = new Array()
var imgNames = new Array()
function loadImgs() {
var i=0;
while (i<imgNames.length) {
imgArray[i] = new Image()
imgArray[i].src = imgNames[i]
i++
}
}
function setToLoadImg(imgName) {
var nextNum = imgNames.length
imgNames[nextNum] = imgName
return nextNum
}
function setImg(x,y) {
document.images[x].src = imgArray[y].src
}
// image contruct end
var img1 = setToLoadImg("images/animecover.jpg");
var img2 = setToLoadImg("images/mangacover.jpg");
var img3 = setToLoadImg("images/konnichiwa.gif");
var img4 = setToLoadImg("profiles/major/pictures/anime/inuyashahanyou.jpg");
var img5 = setToLoadImg("profiles/major/pictures/manga/inuyashahanyou.jpg");
var img6 = setToLoadImg("profiles/major/names/inuyasha.jpg");
var img7 = setToLoadImg("thumbnails/miroku.gif");
var img8 = setToLoadImg("thumbnails/naraku.gif");
var img9 = setToLoadImg("thumbnails/sango.gif");
var img10 = setToLoadImg("thumbnails/kirara.gif");
var img11 = setToLoadImg("thumbnails/kouga.gif");
function si(imgName,imgNum) {
//imgNames is set up by the images' construct
imgName.src=imgNames[imgNum]
}
</SCRIPT>with this attached to the word:
<a href="inuyasha.html" onclick="parent.document.whopic2.img4;parent.document.whopic3.img5;parent.document.whopic4.img6;parent.right.location.href='stats.inuyasha.html'">Inuyasha</a>where, when you look at the picture below, whopic2=pic1, whopic3=pic3, whopic4=pic2, & right=iframe2.
I keep getting the script error "access is denied" and I don't know how to fix it.
At one point everything was working with no script error, however, it didn't know where to find the pictures or html docs.
If you could help me, that would be wonderful! Thanks!