I have this gallery I´m doing: [url]http://amedeldesign.com/test.htm[/url] but I want to have links on the big images, a different link for image that´ll open on a new window. I don´t know how to incorporate that into the already existing javascript.
@the_treeNov 15.2005 — #I reckon you'd find this easier starting with a less restrictive script.[code=html]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title> Awnsers </title> <script type="text/javascript"> <!-- function switch1(div) { var option=['a','b','g','d']; for(var i=0; i<option.length; i++) { if (document.getElementById(option[i])) { obj=document.getElementById(option[i]); obj.style.display=(option[i]==div)? "block" : "none"; } } }