I. QQ Weather Forecast Code
HTML code
< IFRAME ID = 'Ifm2' Width = '000000' Height = '000000' Align = 'Center' Marginwidth = '0' Marginheight = '0' Hspace = '0' Vspace = '0' Frameborder = '0' Scrolling = 'No' SRC = 'HTTP: // weather.qq.com/inc/ss248.htm' > </ IFRAME >
Note: the priority of this Code is the city code. The ss248.htm is the Hefei city code. Remember to change it to your own city code:
Ss28.htm Urumqi ss232.htm Guilin ss69.htm Hohhot ss295.htm Nanning
Ss218.htm Changsha ss287.htm Xiamen ss292.htm Guangzhou ss82.htm Shijiazhuang
Ss125.htm Beijing ss150.htm Lhasa ss166.htm Chengdu ss103.htm Changchun
Ss296.htm Shenzhen ss303.htm Haikou ss211.htm Wuhan ss276.htm Fuzhou
Ss2.htm Macao ss280.htm Taipei ss244.htm Nanjing ss252.htm Shanghai
Ss179.htm Kunming ss227.htm Guiyang ss189.htm Zhengzhou ss140.htm Jinan
Ss56.htm Xining ss212.htm Chongqing ss78.htm Yinchuan ss248.htm Hefei
Ss264.htm Nanchang ss1.htm Hong Kong ss186.htm Xi'an ss115.htm Shenyang
Ss84.htm Taiyuan ss57.htm Lanzhou ss17.htm Harbin ss127.htm Tianjin
II,/// <Summary>
/// Displays the message prompt dialog box and jumps to the page.
/// </Summary>
/// <Param name = "page"> The current page pointer, usually this </Param>
/// <Param name = "MSG"> Prompt information </Param>
/// <Param name = "url"> Target URL </Param>
Public Static Void Showandredirect (system. Web. UI. Page page, String MSG, String URL)
{
Stringbuilder = New Stringbuilder ();
Builder. append ( " <Script language = 'javascript 'defer> " );
Builder. appendformat ( " Alert ('{0 }'); " , MSG );
Builder. appendformat ( " Top. Location. href = '{0 }' " , URL );
Builder. append ( " </SCRIPT> " );
// Page. registerstartupscript ("message", builder. tostring ());
Page. clientscript. registerstartupscript (page. GetType (), " Message " , Builder. tostring ());
}
III,
'alt =" "/>
In this way, the image path can be obtained,
This is an easy way to display images when using the user control!
IV,
Converts lowercase letters to uppercase letters automatically.
<Input type = "text" name = "code" style = "text-transform: uppercase;">
V, <! -- Completely shield right-click -->
< Script Language = " Javascript " >
<! --
If (Window. Event)
Document. captureevents (event. mouseup );
Function Nocontextmenu ()
{
Event. cancelbubble = True
Event. returnvalue = False ;
Return False ;
}
Function Norightclick (E)
{
If (Window. Event)
{
If (E. Which = 2 | E. Which = 3 )
Return False ;
}
Else
If (Event. Button = 2 | Event. Button = 3 )
{
Event. cancelbubble = True
Event. returnvalue = False ;
Return False ;
}
}
Document. oncontextmenu = Nocontextmenu; // For ie5 +
Document. onmousedown = Norightclick; // For all others
// -->
</ Script >
6. Press enter to move the cursor to the next input box.
<Input onkeydown = "If (event. keycode = 13) event. keycode = 9">