Examples
Http://www.tvmenu.com
IfameCode
< IFRAME ID = "T_content" Frameborder = "0" Name = "Dob" Style = "Width: 100%; Height: 100%" Scrolling = "Auto" SRC = "" > </ IFRAME >
SRC is set to NULL:
Add JS at the end of the aspx File
< Script >
VaR tid = Tb_program.gettab (tb_program.selectedindex). getattribute ( " ID " ). Substr ( 2 ); // Obtains the value of the currently selected radio station.
VaR Tweek = Tb_week.selectedindex; // Returns the value of the current week.
Function tb_program.onselectedindexchange () // When the radio station is selected
{
VaR Tab = Tb_program.gettab (tb_program.selectedindex );
TID = Tab. getattribute ( " ID " );
TID = TID. substr ( 2 );
Dolocation ( 0 );
}
Function tb_week.onselectedindexchange () // When the week is selected
{
Tweek=Tb_week.selectedindex;
Dolocation (0);
}
// Enable IFRAME navigation
Function dolocation (first)
{
If (First = 0 ) // First time?
Document. All ( " T_content " ). SRC = " Content. aspx? Tid = " + TID + " & Tweek = " + Tweek;
Else
Document. All ( " T_content " ). SRC = " Content. aspx? D = 1 & tid = " + TID + " & Tweek = " + Tweek;
}
Dolocation ( 1 ); // Run at the first time
</ Script >
This speed is not exceeded, and less content is loaded for the first time.