OK, I misunderstood. Of course you can use a link to do what a select box option does, the syntax is just a little different:
HTML Code:
<a href="http://images.amazon.com/images/P/1565924940.01.TZZZZZZZ.jpg" onclick="generateimage(this.href, 0);return false;">DHTML Guide</a>
The 0 in (this.href, 0) is the number for the description. Also you need to alter the script slightly, where it says:
Code:
function generateimage(which){
Make it say:
Code:
function generateimage(which, num){
and where it has:
Code:
contentobj.innerHTML='<center><img src="'+which+'"><br><br>'+description[tempobj.options.selectedIndex]+'</center>'
Make it like this:
Code:
contentobj.innerHTML='<center><img src="'+which+'"><br><br>'+description[num]+'</center>'
Bookmarks