View Full Version : Changing the images on this script.

May 15th, 2003, 09:55 AM
I found this script at www.jsmadeeasy.com and want to use it. I have called it game3.htm on my site. It said I could change the images but unfortunatley it didn't tell me how. I can only find 2, XXXX.jpg points of code in the script but it doesn't seem to help much if I chnage the jpg's with my own. I am wondering if someone may lend me a helping hand.
The page in question is http://geocities.com/jaksco2000/game3.htm

May 15th, 2003, 10:42 AM
http://geocities.com/jaksco2000/games/mem.jpg is the source of your image, not http://geocities.com/jaksco2000/jaksco2000/games/mem.jpg so you need to take out "jaksco2000" from this:

{document[puzzle_bild_name(v1, w1)].src = "/jaksco2000/games/mem.jpg"
document[puzzle_bild_name(v2, w2)].src = "/jaksco2000/games/mem.jpg"
c2++; document.all.sound.src="fehlpaar.wav"
if (sp == 1) {sp=2} else {sp=1}

May 15th, 2003, 05:16 PM
Okay thanks for that tip but is that jpg for the top image or the image underneath? I can't seem to get the images underneath working.http://geocities.com/jaksco2000/game3.htm