View Full Version : Changing color int the top bar of the "Thumbnal Viewer"

06-09-2003, 05:51 PM
I need help changing the color of the top bar of the "Thumbnail Viewer" Downloaded at (http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm)

The viewer works great, but the top bar where the closing "X" is located is currently transparent and it's too hard to see the "X" to close it. Can I change the color of the bar to white?

OH - and does anyone know how to make the viewer "pop-up" in the middle of the users screen ?

Thanks for the help in advance !


06-09-2003, 11:05 PM
Try this

if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (crossobj.style.visibility=="hidden"){
crossobj.style.left=ns6? pageXOffset+e.clientX : document.body.scrollLeft+event.clientX
crossobj.style.top=ns6? pageYOffset+e.clientY : document.body.scrollTop+event.clientY
crossobj.innerHTML='<div align=right id=drag bgColor=\"white\"><b onClick=closepreview()>X</b></div><img src="'+which+'">'

didn't test it :D

06-10-2003, 10:36 PM
I'll give it a try, sure hope it works as my site have over 300 thumbnails I'm working with - LOL

Thanks again !