PDA

View Full Version : Change The Caption From Below To Above



Markxxx
05-25-2006, 03:13 AM
Refering to this script

http://www.dynamicdrive.com/dynamicindex4/imageselector.htm

It works great for my needs, but I would like to have the captions go ABOVE the images instead of below it.

Can you do this? And more importantly how? Thanks

:)

jscheuer1
05-25-2006, 04:08 AM
Find this line:


contentobj.innerHTML='<center><img src="'+which+'"><br><br>'+description[tempobj.options.selectedIndex]+'</center>'

Change it to this:


contentobj.innerHTML='<center>'+description[tempobj.options.selectedIndex]+'<br><br><img src="'+which+'"></center>'

Markxxx
05-25-2006, 08:41 PM
Perfect as always thanks so much