Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image option Problem 1

Status
Not open for further replies.
'<select size=&quot;1&quot; id=&quot;selPic&quot; onchange=&quot;document.images['imorig'].src=options[selectedIndex].value;initpuzz();&quot;>

Javascript is case sensitive....

imorig ---> inOrig


'<select size=&quot;1&quot; id=&quot;selPic&quot; onchange=&quot;document.images['imOrig'].src=options[selectedIndex].value;initpuzz();&quot;>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
hi thanks for that, my next question is its changing the picture but not breaking it up, like in the load, do i need to just add in the &quot;break script &quot; to that line

Filmmaker, gentleman and pearls before swine fan

 
you might want to call the same functions as the onLoad event in the body tag...

<body bgcolor=&quot;#000000&quot; onLoad=&quot;whenLoaded();breakUp()&quot; >

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
regarding the ;breakup
i added into the onchange and that of course changes it when i change the image which is no good. is there a afterchange event ?




Filmmaker, gentleman and pearls before swine fan

 
There is an onLoad event for images

<img onLoad=&quot;breakUp()&quot; name=&quot;imOrig&quot;>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
HI mwolf,

having bit of a trouble here, i added the snippet above and end up with a wonderful star simulation as it seems to break up all the individual pieces of the puzzle again and again,

where abouts do i need ot add the load event



Filmmaker, gentleman and pearls before swine fan

 
why not uncomment the buttons that allow you to manually break the puzzle up?

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
i don't want the visitor to have those option,
basically im going to when finished also disable the right click, instead displaying the message along the lines of

&quot;Over the Centuries many attempts have been made to decode and translate the Mortus Illumina. To date only about a tenth of the book has been translated. In this spirit if you unscramble the pages you will find a translation from the book&quot;



Filmmaker, gentleman and pearls before swine fan

 
Have you tried this....


<select size=&quot;1&quot; id=&quot;selPic&quot; onchange=&quot;document.images['imOrig'].src=options[selectedIndex].value;whenLoaded();breakUp()&quot;>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top