Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : html

¡¾C++¡¿ÊµÓÃsocket±à³Ì »ñÈ¡ÍøÒ³htmlÐÅÏ¢

 // Socket1.cpp : ¶¨Òå¿ØÖÆ̨ӦÓóÌÐòµÄÈë¿Úµã¡£
//
#include "stdafx.h"
#include<winsock.h>
#include<stdio.h>
#include<string>
#include<iostream>
using namespace std;
#define WSWENS MAKEWORD(2,0)
int _tmain(int argc, _TCHAR* argv[])
{
sockaddr_in sin;
WSADATA wsadata;
//WSAStartup()µÄµ÷Ó÷½ºÍWindows Sockets DLL»¥Ïà֪ͨ¶Ô·½ËüÃÇ¿ÉÒÔÖ§³ÖµÄ×î¸ß°æ±¾,
//²¢ÇÒ»¥ÏàÈ·È϶Է½µÄ×î¸ß°æ±¾ÊǿɽÓÊܵÄ. ÔÚWSAStartup()º¯ÊýµÄÈë¿Ú,
//Windows Sockets DLL¼ì²éÁËÓ¦ÓóÌÐòËùÐèµÄ°æ±¾.Èç¹û°æ±¾¸ßÓÚDLLÖ§³ÖµÄ×îµÍ°æ±¾,
//Ôòµ÷Óóɹ¦²¢ÇÒDLLÔÚwHighVersionÖзµ»ØËüËùÖ§³ÖµÄ×î¸ß°æ±¾,
//ÔÚ wVersionÖзµ»ØËüµÄ¸ß°æ±¾ºÍwVersionRequestedÖеĽÏСÕß.
//È»ºóWindows Sockets DLL¾Í»á¼ÙÉèÓ¦ÓóÌÐò½«Ê¹ÓÃwVersion.
if(WSAStartup(WSWENS,&wsadata)!=0)

cout<<"startup failed"<<endl;

SOCKET s = socket(PF_INET,SOCK_STREAM,0);
// memset ÊǶÔÒ»¶ÎÄÚ´æ¿Õ¼äÈ«²¿ÉèÖÃΪij¸ö×Ö·û
memset(&sin,0,sizeof(sin));
sin.sin_family = AF_INET;
sin.sin_port ......

¡¾C++¡¿ÊµÓÃsocket±à³Ì »ñÈ¡ÍøÒ³htmlÐÅÏ¢

 // Socket1.cpp : ¶¨Òå¿ØÖÆ̨ӦÓóÌÐòµÄÈë¿Úµã¡£
//
#include "stdafx.h"
#include<winsock.h>
#include<stdio.h>
#include<string>
#include<iostream>
using namespace std;
#define WSWENS MAKEWORD(2,0)
int _tmain(int argc, _TCHAR* argv[])
{
sockaddr_in sin;
WSADATA wsadata;
//WSAStartup()µÄµ÷Ó÷½ºÍWindows Sockets DLL»¥Ïà֪ͨ¶Ô·½ËüÃÇ¿ÉÒÔÖ§³ÖµÄ×î¸ß°æ±¾,
//²¢ÇÒ»¥ÏàÈ·È϶Է½µÄ×î¸ß°æ±¾ÊǿɽÓÊܵÄ. ÔÚWSAStartup()º¯ÊýµÄÈë¿Ú,
//Windows Sockets DLL¼ì²éÁËÓ¦ÓóÌÐòËùÐèµÄ°æ±¾.Èç¹û°æ±¾¸ßÓÚDLLÖ§³ÖµÄ×îµÍ°æ±¾,
//Ôòµ÷Óóɹ¦²¢ÇÒDLLÔÚwHighVersionÖзµ»ØËüËùÖ§³ÖµÄ×î¸ß°æ±¾,
//ÔÚ wVersionÖзµ»ØËüµÄ¸ß°æ±¾ºÍwVersionRequestedÖеĽÏСÕß.
//È»ºóWindows Sockets DLL¾Í»á¼ÙÉèÓ¦ÓóÌÐò½«Ê¹ÓÃwVersion.
if(WSAStartup(WSWENS,&wsadata)!=0)

cout<<"startup failed"<<endl;

SOCKET s = socket(PF_INET,SOCK_STREAM,0);
// memset ÊǶÔÒ»¶ÎÄÚ´æ¿Õ¼äÈ«²¿ÉèÖÃΪij¸ö×Ö·û
memset(&sin,0,sizeof(sin));
sin.sin_family = AF_INET;
sin.sin_port ......

Java Mail·¢ËÍ´øÓÐͼƬµÄhtml¸ñʽµÄÓʼþ

 Java Mail·¢ËÍ´øÓÐͼƬµÄhtml¸ñʽµÄÓʼþ£¬Õë¶ÔÓÚÏÔʾͼƬ£¬Ò»°ãÓÐÁ½ÖÖ·½·¨¡£
1. ͼƬ´æÔÚÓÚ·þÎñÆ÷ÉÏ£¬ÎÒÃÇÖ»ÐèÒª°ÑͼƬÔÚ·þÎñÆ÷µÄµÄÁ´½Ó·Å½øÈ¥¼´¿É¡£
ÕâÖÖ·¢Ê½±È½Ï¼òµ¥£¬µ«ÊÇÕâÖÖ·½·¨ÓÐЩȱÏÝ£º
ͼƬ²»Ö§³ÖÀëÏßä¯ÀÀ£»
ÿ´Îä¯ÀÀÓʼþÐèÒª·ÃÎÊweb·þÎñ£¬Ôö¼Ó·þÎñÆ÷¸ºµ££»
ÈôͼƬÒÔ¶þ½øÖƵķ½Ê½´æÔÚÓÚÊý¾Ý¿â»òÊǶ¯Ì¬Éú³ÉµÄ£¬ÔòÎÞ·¨ÓÐЧµÄ½â¾ö¡£
2. °ÑͼƬÒÔ¸½¼þµÄ·½Ê½·¢ËͳöÈ¥£¬ÕâÖÖ·½Ê½·Ç³£ÊÊÓÃÓÚͼƬ´æÔÚÓÚÊý¾Ý¿âÖеÄÇé¿ö¡£
±¾ÎÄÒ²Ö÷ÒªÌÖÂÛÕâÖÖÇé¿ö¡£
¶ÔÓÚJava MailµÄ»ù´¡ÖªÊ¶£¬Çë¿´http://www.yesky.com/SoftChannel/72348977504190464/20020713/1620276.shtml£¬
±¾ÎIJ»×÷½éÉÜÁË¡£
˵µ½ÓʼþÖеĸ½¼þ£¬ÎÒ²»µÃ²»ËµÒ»ËµMiniMultipartÀ࣬ÌṩÁËÔÚÓʼþÖмÓÈ븽¼ÓµÄʵÏÖ·½·¨¡£
Ò»¸ö¶à²¿·ÖÓʼþÊÇÒ»¸öÄÚÈÝÀàÐÍ£¨content-type£©±»ÉèÖÃΪMiniMultipartµÄMessage¶ÔÏó¡£
MiniMultipartÀàÊÇÒ»¸öÈÝÆ÷À࣬°üº¬MimeBodyPartÀàÐ͵ĶÔÏó¡£
ÎÒÃÇ¿ÉÒÔÓÃÒ»¸öMimeBodyPart°üº¬htmlÔ´´úÂ룬ÆäËûµÄMimeBodyPart°üº¬¶þ½øÖƵÄͼƬ¸½¼þ¡£
µ«ÊÇÕâÀïÓиöÒâÍâÇé¿ö£¬ÎÒÃÇÏÈ¿´MimeBodyPartµÄ³õʼ»¯´úÂ룺
MimeBodyPart mdp = new MimeBodyPart(); //н¨Ò»¸ö´æ·Å¸½¼þµÄBodyPart
DataHandl ......

Java Mail·¢ËÍ´øÓÐͼƬµÄhtml¸ñʽµÄÓʼþ

 Java Mail·¢ËÍ´øÓÐͼƬµÄhtml¸ñʽµÄÓʼþ£¬Õë¶ÔÓÚÏÔʾͼƬ£¬Ò»°ãÓÐÁ½ÖÖ·½·¨¡£
1. ͼƬ´æÔÚÓÚ·þÎñÆ÷ÉÏ£¬ÎÒÃÇÖ»ÐèÒª°ÑͼƬÔÚ·þÎñÆ÷µÄµÄÁ´½Ó·Å½øÈ¥¼´¿É¡£
ÕâÖÖ·¢Ê½±È½Ï¼òµ¥£¬µ«ÊÇÕâÖÖ·½·¨ÓÐЩȱÏÝ£º
ͼƬ²»Ö§³ÖÀëÏßä¯ÀÀ£»
ÿ´Îä¯ÀÀÓʼþÐèÒª·ÃÎÊweb·þÎñ£¬Ôö¼Ó·þÎñÆ÷¸ºµ££»
ÈôͼƬÒÔ¶þ½øÖƵķ½Ê½´æÔÚÓÚÊý¾Ý¿â»òÊǶ¯Ì¬Éú³ÉµÄ£¬ÔòÎÞ·¨ÓÐЧµÄ½â¾ö¡£
2. °ÑͼƬÒÔ¸½¼þµÄ·½Ê½·¢ËͳöÈ¥£¬ÕâÖÖ·½Ê½·Ç³£ÊÊÓÃÓÚͼƬ´æÔÚÓÚÊý¾Ý¿âÖеÄÇé¿ö¡£
±¾ÎÄÒ²Ö÷ÒªÌÖÂÛÕâÖÖÇé¿ö¡£
¶ÔÓÚJava MailµÄ»ù´¡ÖªÊ¶£¬Çë¿´http://www.yesky.com/SoftChannel/72348977504190464/20020713/1620276.shtml£¬
±¾ÎIJ»×÷½éÉÜÁË¡£
˵µ½ÓʼþÖеĸ½¼þ£¬ÎÒ²»µÃ²»ËµÒ»ËµMiniMultipartÀ࣬ÌṩÁËÔÚÓʼþÖмÓÈ븽¼ÓµÄʵÏÖ·½·¨¡£
Ò»¸ö¶à²¿·ÖÓʼþÊÇÒ»¸öÄÚÈÝÀàÐÍ£¨content-type£©±»ÉèÖÃΪMiniMultipartµÄMessage¶ÔÏó¡£
MiniMultipartÀàÊÇÒ»¸öÈÝÆ÷À࣬°üº¬MimeBodyPartÀàÐ͵ĶÔÏó¡£
ÎÒÃÇ¿ÉÒÔÓÃÒ»¸öMimeBodyPart°üº¬htmlÔ´´úÂ룬ÆäËûµÄMimeBodyPart°üº¬¶þ½øÖƵÄͼƬ¸½¼þ¡£
µ«ÊÇÕâÀïÓиöÒâÍâÇé¿ö£¬ÎÒÃÇÏÈ¿´MimeBodyPartµÄ³õʼ»¯´úÂ룺
MimeBodyPart mdp = new MimeBodyPart(); //н¨Ò»¸ö´æ·Å¸½¼þµÄBodyPart
DataHandl ......

7ÖÖhtml¼ÓÃÜ·½Ê½½éÉÜ


±¾ÎÄÒ»¹²½éÉÜÁËÆßÖÖ·½·¨£º
Ò»£º×î¼òµ¥µÄ¼ÓÃܽâÃÜ
¶þ£º×ªÒå×Ö·û""µÄÃîÓÃ
Èý£ºÊ¹ÓÃMicrosoft³öÆ·µÄ½Å±¾±àÂëÆ÷Script EncoderÀ´½øÐбàÂë £¨×Ô´´¼òµ¥½âÂ룩
ËÄ£ºÈÎÒâÌí¼ÓNUL¿Õ×Ö·û£¨Ê®Áù½øÖÆ00H£© £¨×Ô´´£©
Î壺ÎÞÓÃÄÚÈÝ»ìÂÒÒÔ¼°»»ÐпոñTAB´ó·¨
Áù£º×Ôд½âÃܺ¯Êý·¨
Æߣº´íÎóµÄÀûÓà £¨×Ô´´£©
¡¡¡¡ÔÚ×öÍøҳʱ£¨ÆäʵÊÇÍøҳľÂíºÇºÇ£©£¬×îÈÃÈË·³ÄÕµÄÊÇ×Ô¼ºÐÁÐÁ¿à¿àд³öÀ´µÄ¿Í»§¶ËIEÔËÐеÄJAVASCRIPT´úÂë³£³£±»±ðÈËÇáÒ׵Ŀ½±´£¬ÊµÔÚÈÃ×Ô¼ºµÄÐÄÀïÓе㲻ÊÇ×Ìζ£¬ÒªÖªµÀ×Ô¼ºÐ´µã¶«Î÷ҲͦÀÛµÄ......^*^
¡¡¡¡µ«ÎÒÃÇÒ²Ó¦¸ÃÇå³þµØÈÏʶµ½ÒòΪJAVASCRIPT´úÂëÊÇÔÚIEÖнâÊÍÖ´ÐУ¬ÒªÏë¾ø¶ÔµÄ±£ÃÜÊDz»¿ÉÄܵģ¬ÎÒÃÇÒª×öµÄ¾ÍÊǾ¡¿ÉÄܵÄÔö´ó¿½±´Õ߸´ÖƵÄÄѶȣ¬ÈÃËûÖªÄѶøÍË£¨µ«Ô¸~!~£©£¬ÏÂÃæÎÒ½áºÏ×Ô¼ºÕ⼸ÄêÀ´µÄʵ¼ù£¬¼°¸öÈËÑо¿µÄÐĵ㬺ʹó¼ÒÒ»ÆðÀ´Ì½ÌÖÒ»ÏÂÍøÒ³ÖÐJAVASCRIPT´úÂëµÄ¼ÓÃܽâÃܼ¼Êõ¡£
¡¡¡¡ÒÔ¼ÓÃÜÏÂÃæµÄJAVASCRIPT´úÂëΪÀý£º
ÒÔÏÂÊÇ´úÂëƬ¶Î£º
<SCRIPT LANGUAGE="JavaScript">
alert("ºÚ¿Í·ÀÏß");
</SCRIPT>
¡¡¡¡Ò»£º×î¼òµ¥µÄ¼ÓÃܽâÃÜ
¡¡¡¡´ó¼Ò¶ÔÓÚJAVASCRIPTº¯Êýescape()ºÍunescape()Ïë±ØÊDZȽÏÁ˽âÀ²£¨ºÜ¶àÍøÒ³¼ÓÃÜÔÚÓÃËüÃÇ£©£¬·Ö±ðÊDZàÂëº ......

HTML±¾µØ»¯²âÊÔ¹¤¾ßHTMLQA

HtmlQAÊÇ˼µÏ¹«Ë¾¿ª·¢µÄ²âÊÔÔ´Html³ÌÐòÎļþºÍ±¾µØ»¯Ö®ºóµÄhtmlÖ®¼äÒ»ÖÂÐԵIJâÊÔ¹¤¾ß¡£
ÏÖÔÚʹÓÃ×î¶àµÄÊÇ HtmlQA1.4 £¬ËüÓÐÁ½ÖÖÔËÐÐģʽ£ºÑÝʾģʽºÍÈ«¹¦ÄÜģʽ¡£Ä¬ÈÏ°²×°ºóÊÇÑÝʾģʽ£¬Ö»ÄÜ´ò¿ªÓÐÏÞÊýÁ¿µÄÎļþ£¬¶ÔÓÚ´ò¿ªµÄÎļþ´óСҲÊÜÏÞÖÆ¡£È«¹¦ÄÜģʽÐèÒª¹ºÂòÐí¿ÉÎļþ (License) ºÍ / »òÓ²¼þ¼ÓÃÜËø (Dongle) ¡£
HtmlQA1.4 µÄÔËÐгÌÐò´°¿Ú°üÀ¨Ëĸö±êÇ©£º“ Source ”¡¢“ Target ”¡¢“ Project Compare ”ºÍ“ Configuration ”£¬·Ö±ðÍê³É²»Í¬µÄ¹¦ÄÜ£º
ÔÚʹÓà HtmlQA1.4 ½øÐÐÈκαȽϺͲâÊÔ֮ǰ£¬Ê×ÏÈÐèÒª´ò¿ª°üº¬Ò»ÏµÁÐÔ´ÓïÑԺͱ¾µØ»¯ Html ÎļþµÄÏîÄ¿Îļþ¡£ÔËÐÐ HtmlQA1.4 £»
´Ó“ Source ”±êÇ©£¬µ¥»÷“ File ” > “ Open Project ”£» Ñ¡Ôñ²¢´ò¿ªÒ»¸öÀ©Õ¹ÃûΪ“ prj ”»ò“ hhp ” ÏîÄ¿Îļþ¡£ 
ʹÓà HtmlQA1.4 ½øÐÐ Html ÎļþµÄ±¾µØ»¯²âÊÔÖ÷ÒªÊÇÔÚ“ Project Compare ”±êÇ©Ò³ÃæÍê³ÉµÄ¡£
“ Project Compare ”±êÇ©Ò³ÃæµÄ×ó±ß·Ö³ÉÁ½¸ö²¿·Ö£º“ Compare ”ºÍ“ Visual Compare ”¡£“ Compare ”ÊDZ¾µØ ......

¹ØÓÚstrutsʹÓÃhtml:select±êÇ©µÄĬÈÏÑ¡Ïî

·½·¨Ò»£º
<html:select property="id">  //ÕâÀïÒ»¶¨²»ÄÜÔÙÓÃvlueÊôÐÔÁË£¬Ö»ÓÃÒ»¸öproperty¾Í¿ÉÒÔÁË   
 <c:forEach var="row" item="${rs.rows}">      
  <html:option value="row.id">  
               <c:out value="row.name"/>  
         </html:option>      
 </c:forEach>        
</html:select>
·½·¨¶þ£º
jspÀï:
<html:select property="userid">
      <html:options collection="userHtmlSelect" property="value" labelProperty="label"/>
</html:select>
ActionForm À
private   java.lang.String userid="admin";   //ĬÈÏÖµ
ActionÀ
form.setUserid("guest");//ÐÞ¸ÄĬÈÏÖµ
//ÉèÖÃÏÂÀ­Ñ¡Ïî
List rs = new java.util.ArrayL ......

HtmlÖÐDocumentºÍEventÀï¸÷ÖÖ×ø±êµÄ¶¨Òå

±¾ÎÄת×Ô£ºhttp://hi.baidu.com/gle_el/blog/item/43d0f6f464577a68dcc47431.html
event.x   £¬event.y:Óë´¥·¢Ê¼þµÄ¶ÔÏóÏà¹ØµÄÊó±êλÖõÄXY×ø±ê;
offsetTop
»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓÉ offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¼ÆË㶥¶ËλÖá£
offsetLeft
»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓÉ offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¼ÆËã×ó²àλÖá£
offsetHeight
»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È¡£
IE¡¢Opera ÈÏΪ offsetHeight = clientHeight + ¹ö¶¯Ìõ + ±ß¿ò¡£ 
NS¡¢FF ÈÏΪ offsetHeight ÊÇÍøÒ³ÄÚÈÝʵ¼Ê¸ß¶È£¬¿ÉÒÔСÓÚ clientHeight¡£
offsetWidth
»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¿í¶È¡£
offsetParent
»ñÈ¡¶¨Òå¶ÔÏó offsetTop ºÍ offsetLeft ÊôÐÔµÄÈÝÆ÷¶ÔÏóµÄÒýÓá£
clientHeight
»ñÈ¡¶ÔÏóµÄ¸ß¶È£¬²»¼ÆËãÈκα߾ࡢ±ß¿ò¡¢¹ö¶¯Ìõ»ò¿ÉÄÜÓ¦Óõ½¸Ã¶ÔÏóµÄ²¹°×¡£
´ó¼Ò¶Ô clientHeight ¶¼Ã»ÓÐʲôÒìÒ飬¶¼ÈÏΪÊÇÄÚÈÝ¿ÉÊÓÇøÓòµÄ¸ß¶È£¬Ò²¾ÍÊÇ˵ҳÃæä¯ÀÀÆ÷ÖпÉÒÔ¿´µ½ÄÚÈݵÄÕâ¸öÇøÓòµÄ¸ß¶È£¬Ò»°ãÊÇ×îºóÒ»¸ö¹¤¾ßÌõÒÔϵ½×´Ì¬À¸ÒÔÉϵÄÕâ¸öÇøÓò£¬ÓëÒ³ÃæÄÚÈÝÎ޹ء£
clientLeft
»ñÈ¡ offsetLeft ÊôÐԺͿͻ§ÇøÓòµÄʵ ......
×ܼǼÊý:583; ×ÜÒ³Êý:98; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [89] [90] [91] [92] [93] [94] [95] [96] 97 [98]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ