Thickbox 3.1 is actually used in the project.

Source: Internet
Author: User

I. image application. Change the English close to close, and change Prev and next to the position of the previous and next in thickbox. js.

First download the uncompressed file: http://jquery.com/demo/thickbox/

Open the thickbox. js file and find

Locate Prev and next and change the followingCode:

Tb_nexthtml = "<span id = 'tb _ next'> & nbsp; <a href = '#'> next & gt; </a> </span> ";

Tb_prevhtml = "<span id = 'tb _ prev'> & nbsp; <a href = '#'> & lt; previous </a> </span> ";

Change "close" to "Chinese", and change "close" to "close" if it is not included in the HTML Tag.

 

2. When using the IFRAME mode, you may need to refresh the parent window when closing the window as follows:

// Refresh the opener window that opens this window.
Function Refreshopener (){
// The frame page may exist, so you need to reference the top window.
VaR Win = Top. window;
Try
{
// Refresh.
If (WIN)
{
Win. Location. href = Win. Location. href;
}
}
Catch (Ex)
{
// Prevents code exceptions when opener is disabled.
}
}

//Refresh the opener window and close yourself.
FunctionRefreshopenerandcloseme (){
Refreshopener ();
Tb_remove ();
}

 

Then find

$ ("# Tb_closewindowbutton"). Click (tb_remove );

Changed:

$ ("# Tb_closewindowbutton"). Click (refreshopenerandcloseme );

 

Note: I am not good at color. I hope the audience can understand it!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.