![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| ||||
| ||||
|
|
n... (AT) chthonic (DOT) f9.co.uk schrieb: Rewrite the way you call your javascript and all will be well. Either attach the call directly to the onclick of the images, or use this quick hack version: a href="#" onClick= "change();return false;">Close.gif</a I think I understand what you say, but why does the "return false" at the end of function change() not serve the same purpose? |
|
[Yes there are _better_ ways of doing this, but this solves his immediate problem]. Yes it does, and I'm most grateful for this. I too tried to put the onClick into the image line: img onClick="change();return false;" name="placeholder" src="... and it works well too - as you say. Would you mind commenting any further on "better ways"? That your page is ONLY usable to those with javascript, but no doubt you will encounter THAT little problem later... I tested my project (only now) with js switched off and the only real problem are the many rollovers. Would you please indicate how to modify my js code? |
|
I read somewhere to put an url in place of the # in a href="#" onClick="change();return false;" Would that mean to load a complete new page for each successive image? Would that be the proper way to simulate a rollover without js? It would be a horrible way of doing it, but it |
|
One final question: would you know a recent book on issues involved here? I know ofwww.w3.organd google for js - but as usual, try to find the needle in the haystack of statements. What would be helpful is a clever book to set a frame of today's js use. |
#2
| |||
| |||
|
|
On May 30, 9:11 am, Heinrich Wolf <XXXXh.wolfX... (AT) hispeed (DOT) ch> wrote: n... (AT) chthonic (DOT) f9.co.uk schrieb: Rewrite the way you call your javascript and all will be well. Either attach the call [skipped] |
![]() |
| Thread Tools | |
| Display Modes | |
| |