Forum Moderators: open

Message Too Old, No Replies

I need help with a script

javasript help

         

ChrisBolton

6:16 pm on Jun 21, 2005 (gmt 0)

10+ Year Member



I have recently set up a small website in the Uk with free play <games>.

I'm having a little trouble with some javascript. when the user clicks the button to open the shockwave window with the <games> on, my webpage behind disappears.

If I can post this, to see the source code the website is <snip>.

Any help would be greatly appreciated.

Regards.
Chris Bolton.

[edited by: Woz at 10:38 pm (utc) on June 21, 2005]
[edit reason] No URLs please, see Tos#13 [/edit]

Sathallrin

7:12 pm on Jun 21, 2005 (gmt 0)

10+ Year Member



Its because you have the link to javascript:void(0). You can make that to nothing by putting href="#" instead.

Also, you could make the onClick return false: onClick="openExample(253);return false;"

[edited by: Woz at 10:41 pm (utc) on June 21, 2005]
[edit reason] Examplified Code [/edit]

ChrisBolton

1:03 am on Jun 28, 2005 (gmt 0)

10+ Year Member



Thank you so much.

I don't really know Javascript to well, the code I used was supplied by the software supplier.

Your solution worked anyway.

Ps. Sorry for inserting the URL Woz.

Best Regards.
Chris.