Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

wxWidgets access html file in zip package

/************************************************************************
* Description: ·ÃÎÊzipÖеÄhtm Ö® Widgetsѧϰ
* Author: ³ÂÏàÀñ
* Compiled: VC8 + wxWidgets2.8.10
* Date: 04/02/10
************************************************************************/
/************************************************************************
* Description: ·ÃÎÊzipÖеÄhtm Ö® Widgetsѧϰ
* Author: ³ÂÏàÀñ
* Compiled: VC8 + wxWidgets2.8.10
* Date: 04/02/10
************************************************************************/
#include "wx/wx.h"
#include "wx/image.h"
#include "wx/html/htmlwin.h"
#include "wx/fs_zip.h"
class AppMain : public wxApp
{
public:
virtual bool OnInit();
protected:
private:
};
class FrameMain : public wxFrame
{
public:
FrameMain( const wxString& title, const wxPoint& pos, const wxSize& size );
void OnQuit( wxCommandEvent& event );
void OnBack( wxCommandEvent& event );
void OnForward( wxCommandEvent& event);
protected:
private:
DECLARE_EVENT_TABLE()
};
enum
{
// ²Ëµ¥ID
Minimal_Quit = 1,
Minimal_Back,
Minimal_Forward,
};
// ʼþ±í
BEGIN_EVENT_TABLE( FrameMain, wxFrame )
EVT_MENU( Minimal_Quit, FrameMain::OnQuit )
EVT_MENU( Minimal_Back, FrameMain::OnBack )
EVT_MENU( Minimal_Forward, FrameMain::OnForward )
END_EVENT_TABLE()
// Ö¸¶¨Èë¿ÚÀà
IMPLEMENT_APP( AppMain )
// Èë¿Ú¿ªÊ¼µã
bool AppMain::OnInit()
{
wxImage::AddHandler(new wxPNGHandler);
wxImage::AddHandler(new wxJPEGHandler);
wxFileSystem::AddHandler(new wxZipFSHandler);
FrameMain *frame = new FrameMain( wxT("Zip and Html²âÊÔ"), wxDefaultPosition, wxSize( 1024, 768 ) );
frame->Show( true );
SetTopWindow( frame );
return true;
}
wxHtmlWindow *html = NULL;
FrameMain::FrameMain( const wxString& title, const wxPoint& pos, const wxSize& size )
: wxFrame( (wxFrame *)NULL, wxID_ANY, title, pos, size )
{
wxMenu *menuFile = new wxMenu;
wxMenu


Ïà¹ØÎĵµ£º

ÈçºÎÈ¥³ýJSPÊä³öHTMLʱ²úÉúµÄ´óÁ¿¿Õ¸ñºÍ»»ÐÐ

ÔÚWEBÓ¦ÓÃÖÐ,Èç¹ûʹÓÃjsp×÷Ϊview²ãµÄÏÔʾģ°å,¶¼»á±»¿Õ¸ñ/¿Õ»»ÐÐÎÊÌâËùÀ§ÈÅ.
Õâ¸öÎÊÌâµ±ÄêÒ²À§ÈÅÁËÎұȽϳ¤µÄʱ¼ä.ÒòΪÔÚjspÄÚʹÓõÄEL±êÇ©ºÍÆäËû±êǩʱ,»á²úÉú´óÁ¿µÄ¿Õ¸ñºÍ»»Ðзû.ÀýÈç:
------- start ----------
<c:choose>
    <c:when test="${fn:length(mainPageList)>1&}&q ......

htmlÔªËØÖÐtitle¡¢alt»»Ðз½°¸

·½Ê½Ò»£º&#10;»ò&#13;×÷»»Ðзû
·½Ê½¶þ£ºÖ±½ÓÔÚÔ´ÂëÖÐÇûسµ
¡¾½¨Òé¡¿ ²ÉÓ÷½°¸Ò»¡£
¡¾Ô´Âë¡¿
<a href="#" title="µÚÒ»ÐÐ&#10;µÚ¶þÐÐ&#13;µÚÈýÐÐ">·½Ê½Ò»£ºÊó±ê·ÅÔÚÎÒÉÏÃæ¿´Ò»ÏÂtitle</a>
<br />
<br />
<a href="#" title="µÚÒ»ÐÐ
µÚ¶þÐÐ
µÚÈýÐÐ">·½Ê½¶þ£ºÊó± ......

ACCESSÊý¾Ýµ¼Èëµ½SQL Server2005


ÔÚSQL Server2005ÖÐÑ¡ÖÐÒªµ¼ÈëÊý¾ÝµÄ¿â > ÓÒ¼ü > н¨²éѯ£º
Ö´ÐÐSQLÓï¾äÈçÏ£º
insert into
Ä¿±êÊý¾Ý¿â±íÃû (×Ö¶Î1,×Ö¶Î2,....) select
×Ö¶Î1,×Ö¶Î2... from
openrowset
('microsoft.jet.oledb.4.0',';database=Ô´Êý¾Ý¿â·¾¶£¨È磺d:\test.mdb£©','select * from Ô´±í where ²éѯÌõ¼þ')
SQL Óï¾äÆôÓÃ×é¼ ......

Javascript·ÃÎÊhtmlÒ³ÃæµÄ¿Ø¼þ

·ÃÎʿؼþµÄÖ÷Òª¶ÔÏóÊÇ:document¶ÔÏó¡£·Ö±ð¶ÔÓ¦µ±Ç°ÎĵµËùÓеģ¨×Ó¶ÔÏ󣩸öÈ˹۵㡣²¢ÇÒÒѾ­ÌṩµÄ¼¸¸öÖ÷Òª·½·¨À´·ÃÎʶÔÏó¡£
1.       document.getElementById
2.       document.getElementsByName
3        &n ......

html ÖÐ id ºÍname µÄÇø±ð

°Ù¶ÈÁËÏ ´óÌåÖªµÀ ÈçÏÂÇø±ð£º
id ´ú±íΨһ £¬ÔÚÕû¸öÒ³ÃæÊÇΨһµÄ£¬²»ÄÜÖظ´¡£
name ¿ÉÒÔÖظ´£¬Õû¸öÒ³ÃæµÄ name ¿ÉÒÔ¶¼Ò»Ñù
ÓÃÔÚJavaScript ÖРʱ
document.getElementById("str") ·µ»ØµÄÊÇ Î¨Ò»µÄÊý¾Ý¡£
document.getElementsByName("str") ·µ»ØµÄÊǸöÊý×é¡£
»¹ÓÐʲôÇø±ð£¿Óдý·ÈËÖ¸Ö¤£¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ