View Full Version : Window that closes when clicked


Cherchezlafemme
10-26-2003, 07:18 PM
http://tatiana.inmyworld.net/garden/



Do you see the window of "where's Wally" (it's all in dark and light green on the main image) When you click "X" it closes. Where can you find the code for that?

kittycat
10-26-2003, 08:46 PM
http://www.dhtmlcentral.com/script/search.asp?category=other

Similar script, not sure if it's the same one.

alwyn
11-01-2003, 12:53 AM
Here:

You can replace '[clos window]' with anything you like like 'X' ....

<a href="javascript:;" class="splash" onClick="window.close()">[Close Window]</a>

If you want an image:

<a href="javascript:;" class="splash" onClick="window.close()"><img src="IMAGE.gif" border="0"></a>

If it doesn't work just remove the ' class="splash" '