Jump to content

GRRR...IE!


Fire Dragon

Recommended Posts

I made game where you must move mouse and avoid flying images.However it won't work with IE,I don't know why.Image flying code works with IE,Fire Fox and Opera,I tested it in other html document.However,in my game,it works only Fire Fox and Opera.I can't understand what can be wrong.It only don't create flying images in IE,in this html file.Can something code in my document disturb IE,or what?I checked my code couple of times,and I didn't find anything,what can disturb IE.BTW,I got flying code from here:Dynamic DriveAnd last,here is my game's first level's code.Warning!It's quite long,and it may contain some finnish words in comments etc.

<html><head><title>Kakariko Village</title><script type="text/javascript" src="moveobj.js"> </script><script type="text/javascript">/************************************************ Floating image script- By Virtual_Max (http://www.geocities.com/siliconvalley/lakes/8620)* Modified by Dynamic Drive for various improvements* Visit Dynamic Drive at [url="http://www.dynamicdrive.com/"]http://www.dynamicdrive.com/[/url] for full source code***********************************************///Step 1: Define unique variable names depending on number of flying images (ie:3):var flyimage1, flyimage2, flyimage3function pagestart(){//Step 2: Using the same variable names as 1), add or delete more of the below lines (60=width, height=80 of image): flyimage1=new Chip("flyimage1",47,68);flyimage2=new Chip("flyimage2",47,68);flyimage3=new Chip("flyimage3",47,68);flyimage4=new Chip("flyimage4",47,68);flyimage5=new Chip("flyimage5",47,68);//Step 3: Using the same variable names as 1), add or delete more of the below lines:movechip("flyimage1");movechip("flyimage2");movechip("flyimage3");movechip("flyimage4");movechip("flyimage5");}if (window.addEventListener)window.addEventListener("load", pagestart, false)else if (window.attachEvent)window.attachEvent("onload", pagestart)else if (document.getElementById)window.onload=pagestart</script><!-- ONMOUSEOVER --><script type="text/javascript">function image(){window.location="http://www.geocities.com/zelda_life"}</script><!-- Time counter --><script type="text/javascript">function timedText(){var t1=setTimeout("document.getElementById('txt').value='59 seconds!'",1000)var t2=setTimeout("document.getElementById('txt').value='58 seconds!'",2000)var t3=setTimeout("document.getElementById('txt').value='57 seconds!'",3000)var t1=setTimeout("document.getElementById('txt').value='56 seconds!'",4000)var t2=setTimeout("document.getElementById('txt').value='55 seconds!'",5000)var t3=setTimeout("document.getElementById('txt').value='54 seconds!'",6000)var t1=setTimeout("document.getElementById('txt').value='53 seconds!'",7000)var t2=setTimeout("document.getElementById('txt').value='52 seconds!'",8000)var t3=setTimeout("document.getElementById('txt').value='51 seconds!'",9000)var t3=setTimeout("document.getElementById('txt').value='50 seconds!'",10000)var t1=setTimeout("document.getElementById('txt').value='49 seconds!'",11000)var t2=setTimeout("document.getElementById('txt').value='48 seconds!'",12000)var t3=setTimeout("document.getElementById('txt').value='47 seconds!'",13000)var t1=setTimeout("document.getElementById('txt').value='46 seconds!'",14000)var t2=setTimeout("document.getElementById('txt').value='45 seconds!'",15000)var t3=setTimeout("document.getElementById('txt').value='44 seconds!'",16000)var t1=setTimeout("document.getElementById('txt').value='43 seconds!'",17000)var t2=setTimeout("document.getElementById('txt').value='42 seconds!'",18000)var t3=setTimeout("document.getElementById('txt').value='41 seconds!'",19000)var t3=setTimeout("document.getElementById('txt').value='40 seconds!'",20000)var t1=setTimeout("document.getElementById('txt').value='39 seconds!'",21000)var t2=setTimeout("document.getElementById('txt').value='38 seconds!'",22000)var t3=setTimeout("document.getElementById('txt').value='37 seconds!'",23000)var t1=setTimeout("document.getElementById('txt').value='36 seconds!'",24000)var t2=setTimeout("document.getElementById('txt').value='35 seconds!'",25000)var t3=setTimeout("document.getElementById('txt').value='34 seconds!'",26000)var t1=setTimeout("document.getElementById('txt').value='33 seconds!'",27000)var t2=setTimeout("document.getElementById('txt').value='32 seconds!'",28000)var t3=setTimeout("document.getElementById('txt').value='31 seconds!'",29000)var t3=setTimeout("document.getElementById('txt').value='30 seconds!'",30000)var t1=setTimeout("document.getElementById('txt').value='29 seconds!'",31000)var t2=setTimeout("document.getElementById('txt').value='28 seconds!'",32000)var t3=setTimeout("document.getElementById('txt').value='27 seconds!'",33000)var t1=setTimeout("document.getElementById('txt').value='26 seconds!'",34000)var t2=setTimeout("document.getElementById('txt').value='25 seconds!'",35000)var t3=setTimeout("document.getElementById('txt').value='24 seconds!'",36000)var t1=setTimeout("document.getElementById('txt').value='23 seconds!'",37000)var t2=setTimeout("document.getElementById('txt').value='22 seconds!'",38000)var t3=setTimeout("document.getElementById('txt').value='21 seconds!'",39000)var t3=setTimeout("document.getElementById('txt').value='20 seconds!'",40000)var t1=setTimeout("document.getElementById('txt').value='19 seconds!'",41000)var t2=setTimeout("document.getElementById('txt').value='18 seconds!'",42000)var t3=setTimeout("document.getElementById('txt').value='17 seconds!'",43000)var t1=setTimeout("document.getElementById('txt').value='16 seconds!'",44000)var t2=setTimeout("document.getElementById('txt').value='15 seconds!'",45000)var t3=setTimeout("document.getElementById('txt').value='14 seconds!'",46000)var t1=setTimeout("document.getElementById('txt').value='13 seconds!'",47000)var t2=setTimeout("document.getElementById('txt').value='12 seconds!'",48000)var t3=setTimeout("document.getElementById('txt').value='11 seconds!'",49000)var t3=setTimeout("document.getElementById('txt').value='10 seconds!'",50000)var t1=setTimeout("document.getElementById('txt').value='9 seconds!'",51000)var t2=setTimeout("document.getElementById('txt').value='8 seconds!'",52000)var t3=setTimeout("document.getElementById('txt').value='7 seconds!'",53000)var t1=setTimeout("document.getElementById('txt').value='6 seconds!'",54000)var t2=setTimeout("document.getElementById('txt').value='5 seconds!'",55000)var t3=setTimeout("document.getElementById('txt').value='4 seconds!'",56000)var t1=setTimeout("document.getElementById('txt').value='3 seconds!'",57000)var t2=setTimeout("document.getElementById('txt').value='2 seconds!'",58000)var t3=setTimeout("document.getElementById('txt').value='1 seconds!'",59000)var t3=setTimeout("document.getElementById('txt').value='0 seconds!'",60000)}</script><!-- When time ends --><meta http-equiv="Refresh"content="60;url=monster_madness2.html"></head></head><body ONLOAD = "timedText()"><!-- Step 4: Define your flying images. For each image's ID tag, use the same variable names as 1) above --><DIV ID="flyimage1" STYLE="position:absolute; left: -500px; width:47; height:68;"><IMG SRC="kana.gif"onmouseover="image()" BORDER=0></a></DIV><DIV ID="flyimage2" STYLE="position:absolute; left: -500px; width:47; height:68;"><IMG SRC="kana.gif"onmouseover="image()" BORDER=0></a></DIV><DIV ID="flyimage3" STYLE="position:absolute; left: -500px; width:47; height:68;"><IMG SRC="kana.gif"onmouseover="image()" BORDER=0></a></DIV><DIV ID="flyimage4" STYLE="position:absolute; left: -500px; width:47; height:68;"><IMG SRC="kana.gif"onmouseover="image()" BORDER=0></a></DIV><DIV ID="flyimage5" STYLE="position:absolute; left: -500px; width:47; height:68;"><IMG SRC="kana.gif"onmouseover="image()" BORDER=0></a></DIV><!-- Image cursor--><script>/*Cross browser cursor trailer scriptBy Brian Caputo (bcaputo@icdc.com)Written permission granted to lissaexplains.comto distribute the script for personal use. (DO NOT REMOVE THIS)*/B=document.all;C=document.layers;T1=new Array("peli_link.gif",38,35)nos=parseInt(T1.length/3)rate=50ie5fix1=0;ie5fix2=0;for (i=0;i<nos;i++){createContainer("CUR"+i,i*10,i*10,i*3+1,i*3+2,"","<img src='"+T1[i*3]+"' width="+T1[(i*3+1)]+" height="+T1[(i*3+2)]+" border=0>")}function createContainer(N,Xp,Yp,W,H,At,HT,Op,St){with (document){write((! ? "<layer id='"+N+"' left="+Xp+" top="+Yp+" width="+W+" height="+H : "<div id='"+N+"'"+" style='position:absolute;left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H+"; ");if(St){if ©write(" style='");write(St+";' ")}else write((?"'":"");write((At)? At+">" : ">");write((HT) ? HT : "");if (!Op)closeContainer(N)}}function closeContainer(){document.write((?"</div>":"</layer>")}function getXpos(N){return ( ? parseInt(B[N].style.left) : C[N].left}function getYpos(N){return ( ? parseInt(B[N].style.top) : C[N].top}function moveContainer(N,DX,DY){c=( ? B[N].style :C[N];c.left=DX;c.top=DY}function cycle(){//if (IE5)if (document.all&&window.print){ie5fix1=document.body.scrollLeft;ie5fix2=document.body.scrollTop;}for (i=0;i<(nos-1);i++){moveContainer("CUR"+i,getXpos("CUR"+(i+1)),getYpos("CUR"+(i+1)))}}function newPos(e){moveContainer("CUR"+(nos-1),(?event.clientX+ie5fix1:e.pageX+2,(?event.clientY+ie5fix2:e.pageY+2)}if(document.layers)document.captureEvents(Event.MOUSEMOVE)document.onmousemove=newPossetInterval("cycle()",rate)</script><!-- Time counter field --><p>Aikaa jäljellä:</p><form><input type="text" id="txt"></form><!-- Background music --><EMBED SRC="http://www.geocities.com/zelda_life/Z3villag.mid" LOOP=TRUE AUTOSTART=TRUE HIDDEN=TRUE><!-- Background --><body background="http://i43.photobucket.com/albums/e366/kyogre_atlas/Zelda%20spritet/lttp4.gif">

I really apreciate your help,if you can help me find what is wrong.

Link to comment
Share on other sites

Do you think you could please keep your questions in one topic? You've made quite a bit of topics. Thanks.It didn't work in firefox for me, but that might just be because the images aren't be displayed. But what happens wrong?

Link to comment
Share on other sites

Ok,it is browser Zelda game for my The legend of Zelda website.Idea is that you must avoid enemies.Here is link to my game:The legend of Zelda Monster MadnessYes,it's crappy,but it's my first creation :) Here is link to .js file:MoveObjPS:Be careful that you can avoid first level's chickens,because I haven't finished game over screen,and it leads you to my finnish Zelda website :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...