views:

75

answers:

1

I would like to change the text that appears in the ThickBox in the top panel. Right now it looks like this (HTML from Firebug):

http://test2.richardknop.com/thickbox.jpg

So I would like to change this part of the HTML:

<div id="TB_closeAjaxWindow">
<a id="TB_closeWindowButton" title="Close" href="#">close</a>
or Esc Key
</div>

To for example:

<div id="TB_closeAjaxWindow">
<a id="TB_closeWindowButton" title="Close" href="#">close</a>
</div>

I have read the documentation page for ThickBox plugin and there isn't mentioned any way to do this.

+2  A: 

I would look through the javascript file that you are using for ThickBox and search for "or Esc Key" and delete it...

I don't necessarily like modifying code in those js files, but have done it before...

EDIT
I opened up this file: http://jquery.com/demo/thickbox/thickbox-code/thickbox.js and was able to find this text "or Esc Key" on line 128...

This line starts off with:

$("#TB_window").append("<a href='' i.....
RSolberg
it's not anywhere in the js file. I searched for "or Esc Key" and NetBeans hasn't found anything.
Richard Knop
Look through the entire site for that text...
RSolberg
Entire site? The only thing that has anything to do with the ThickBox jQuery plugin is the js file. Other files are HTML templates and PHP code written by me.
Richard Knop
Yeah it's there. I was using the compressed version of the js file and it's not there. I'm using uncompressed version now.
Richard Knop
Richard: should not be a difference between compressed and not compressed. The text has to be there in order to be rendered to the screen.
RSolberg