Forum Moderators: open
I have a gallery on a site and I want to add thumbnails on it.
The current version of this is:
<a href="#" onClick="window.open('img/DJ-rebekah.jpg', '_blank', 'width=420, height=525, left=100,top=100,scrollbars=no');"><img src="img/DJ-rebekah-teasdale.jpg" alt="" class="image_bikini"/></a>
But when a person, viewing the site, has the javascript disabled, this will not work. Can you please tell me another way of opening picture from the gallery in new window in bigger size. I will apppreciate it very much.
Best regards, Ani
You can specify a link in your href and override it with return false:
<a href="imagePage.html" target="_blank" onClick="window.open('img/DJ-rebekah.jpg', '_blank', 'width=420, height=525, left=100,top=100,scrollbars=no');return false"><img src="img/DJ-rebekah-teasdale.jpg" alt="" class="image_bikini"/></a>
This tells the browser to ignore the default behaviour and use the javascript function instead.
HTH
Thank you very much for helping me again.
I managed to create the desired functionality.
Best Regards, Ani
<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>
[edited by: tedster at 8:32 am (utc) on Sep. 7, 2005]