Hello there, im needed to develop a gallery for this website.
im using hotspots to go to my frames in my flash
Each hotspot goes to each frame.
The flash is loaded properly.
When i right click and click play it goes to the next frame.
But the Hotspots just dont work with IE.
For your information: This works with other browsers like firefox, safari and Opera.
MY HEADER
[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[/HTML]
THE SCRIPT
Code:
<script type="text/JavaScript">
function stopError() {
return true;
}
window.onerror = stopError;
<!--
var movieName = "stagelinkGallery";
function thisMovie(movieName) {
// IE and Netscape refer to the movie object differently.
// This function returns the appropriate syntax depending on the browser.
if (navigator.appName.indexOf ("Microsoft") !=-1) {
return window[movieName]
} else {
return document[movieName]
}
}
// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
if (typeof(theMovie) != "undefined") {
return theMovie.PercentLoaded() == 100;
} else {
return false;
}
}
function playmovie() {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).Play();
}
}
function stopmovie() {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).StopPlay();
}
}
function go1(theFrame) {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).GotoFrame(theFrame);
}
}
function golabel() {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).TGotoLabel("_level0/","redframe");
}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
THE HOTSPOTS
[HTML]<map name="Map">
<area shape="rect" coords="10,195,29,209" href="javascript
:go1(1)">
<area shape="rect" coords="11,214,46,227" href="javascript
:go1(2)">
<area shape="rect" coords="9,249,67,265" href="javascript
:go1(4)">
<area shape="rect" coords="11,381,85,394" href="javascript
:go1(11)">
<area shape="rect" coords="128,215,160,227" href="javascript
:go1(14)">
<area shape="rect" coords="130,233,148,244" href="javascript
:go1(15)">
<area shape="rect" coords="129,252,210,263" href="javascript
:go1(16)">
<area shape="rect" coords="129,289,218,301" href="javascript
:go1(18)">
<area shape="rect" coords="129,363,179,376" href="javascript
:go1(22)">
<area shape="rect" coords="127,381,189,394" href="javascript
:go1(23)">
<area shape="rect" coords="128,400,204,411" href="javascript
:go1(24)">
<area shape="rect" coords="128,420,157,430" href="javascript
:go1(25)">
<area shape="rect" coords="245,196,336,208" href="javascript
:go1(26)">
<area shape="rect" coords="246,215,303,227" href="javascript
:go1(27)">
<area shape="rect" coords="247,252,319,263" href="javascript
:go1(29)">
<area shape="rect" coords="246,289,342,300" href="javascript
:go1(31)">
<area shape="rect" coords="246,308,288,319" href="javascript
:go1(32)">
<area shape="rect" coords="246,383,264,392" href="javascript
:go1(36)">
<area shape="rect" coords="247,401,273,411" href="javascript
:go1(37)">
<area shape="rect" coords="10,324,30,338" href="javascript
:go1(8)">
</map>[/HTML]