Ã÷ÏÔHTML£¬°µ¶É“¹«Óýű¾” ¼õÉÙwebÒ³ÃæÏÂÔØʱ¼äµÄ¹Ø¼ü¾ÍÊÇÉè·¨¼õСÎļþ´óС¡£µ±¶à¸öÒ³Ãæ¹²ÓÃһЩ³É·ÖÄÚÈÝʱ£¬¾Í¿ÉÒÔ¿¼Âǽ«ÕâЩ¹«Óò¿·Öµ¥¶À·ÖÀë³öÀ´¡£±ÈÈ磺ÎÒÃÇ¿ÉÒÔ½«¶à¸öHTMLÒ³Ã涼Óõ½µÄ½Å±¾³ÌÐò±àд³É¶ÀÁ¢´æÔÚµÄ.jsÎļþ£¬È»ºóÔÙÔÚÒ³ÃæÖа´ÈçÏ·½Ê½µ÷ÓÃËü£º www.phperz.com
<script src="myfile.js"></script> www~phperz~com
php³ÌÐòÔ±Õ¾
ÕâÑù£¬¹«ÓÃÎļþÖ»ÐèÒªÏÂÔØÒ»´Î£¬È»ºó¾Í½øÈ뻺³åÇø¡£µÈÏ´ÎÔٴε÷Óðüº¬¹«ÓÃÎļþµÄhtmlÒ³Ãæʱ£¬ÏÂÔØʱ¼äÃ÷ÏÔ¼õÉÙ¡£ www~phperz~com
www~phperz~com
ÈÃÑùʽ±íÄÚÈݽøÈëµØϹ¤×÷ www.phperz.com
CSSÊÇHTML×°°çÆ÷£¬Ò»¸öƯÁÁµÄWebÒ³Ãæ²»¿ÉÄÜûÓÐËü¡£HTMLÒ³ÃæÖÐÓжàÖÖÒýÓÃCSSµÄ·½·¨£¬²»Í¬µÄ·½·¨µ¼ÖµÄЧÂÊÒ²²»Ò»Ñù¡£Í¨³££¬ÎÒÃÇ¿ÉÒÔ½«¶¨ÒåÓÚ<style></style>¼äµÄÑùʽ¿ØÖÆ´úÂëÌáÈ¡³öÀ´£¬±£´æµ½µ¥¶ÀµÄ.cssÎļþÖУ¬È»ºóÔÚHTMLÒ³ÃæÖÐÒÔ<LINK>±ê¼Ç»òÕß@import±ê¼ÇµÄ·½Ê½½øÐÐÒýÓ㺠php³ÌÐòÔ±Ö®¼Ò
<style> @import url("mysheet1.css"); </style> www.phperz.com
phperz~com
Çë×¢Òâ2µã£º1¡¢.cssÎļþÖÐÎÞÐè°üÀ¨<style>±ê¼Ç£»2¡¢@importºÍLINK±ê¼ÇÒª¶¨ÒåÔÚHTMLÒ³ÃæµÄHEAD²¿·Ö¡£ php³ÌÐòÔ±Õ¾
www.phperz.com
±¦¹óÄÚ´æ½ÚÊ¡Á½·¨ www.phperz.com
¾¡Á¿¼õÉÙHTMLÒ³ÃæÕ¼ÓõÄÄÚ´æ¿Õ¼äÊǼӿìÒ³ÃæÏÂÔØËٶȵÄÒ»¸öÓÐЧ·½·¨¡£ÔÚÕâ·½Ã棬ÓÐ2¸öÐèҪעÒâµÄÎÊÌ⣺ php³ÌÐòÔ±Ö®¼Ò
1¡¢Ê¹ÓÃͬһÖֽű¾ÓïÑÔ
phperz.com
php³ÌÐòÔ±Õ¾
HTMLÒ³ÃæÀë²»¿ª½Å±¾³ÌÐòµÄÖ§³Ö£¬ÎÒÃǾ³£»áÔÚÒ³ÃæÖÐǶÈë¶àÖֽű¾ÓïÑÔ£¬±ÈÈçJavaScriptÓëVBScript¡£µ«ÊÇ£¬²»ÖªÄã·¢¾õûÓУºÕâÑùµÄ»ìºÏʹÓüõÂýÁËÒ³ÃæµÄ·ÃÎÊËٶȡ£ÔÒòÔÚÓÚ£ºÒª½âÊͲ¢ÔËÐжàÖֽű¾´úÂ룬¾Í±ØÐëÔÚÄÚ´æÖÐ×°ÔضàÖֽű¾ÒýÇæ¡£ËùÒÔ£¬Ç뾡Á¿ÔÚÒ³ÃæÖÐʹÓÃͬһÖֽű¾ÓïÑÔ±àд´úÂë¡£ php³ÌÐòÔ±Õ¾
2¡¢ÇÉÓÃIFrame php³ÌÐòÔ±Ö®¼Ò
ÄãʹÓùý<IFRAME>±ê¼ÇÂð£¿Ëü¿ÉÊÇÒ»¸ö·Ç³£ÃÀÃîµÄ¹¦ÄÜ¡£Èç¹ûÒªÔÚÒ»¸öHTMLÎĵµÖаüº¬µÚ2¸öÒ³ÃæµÄÄÚÈÝ£¬Í¨³£µÄ·½·¨ÊÇʹÓÃ<FRAMESET>±ê¼Ç¡£µ«ÊÇÓÐÁË<IFRAME>£¬Ò»ÇбäµÃ¼òµ¥ÁË¡£±ÈÈ磬¿ª·¢Ò»¸öÎĵµÔ¤ÀÀÒ³Ã棬¿ÉÒÔÔÚ×ó±ß·ÅÖÃһϵÁÐÖ÷Ì⣬ÔÚÓұ߷ÅÖÃÒ»¸öIFRAME£¬ÆäÖаüº¬ÒªÔ¤ÀÀµÄÎĵµ£»µ±Êó±êÂÓ¹ý×ó±ßµÄÿһ¸öÖ÷ÌâÁ´½Óʱ£¬¾ÍÔÚÓұ߽¨Á¢Ò»¸öеÄIFRAMEÒÔÔ¤ÀÀÎĵµ¡£ÕâÑù×ö£¬´úÂëЧÂÊÎÞÒÉÊǸßЧµÄ£¬µ«Í¬Ê±µ¼ÖÂÁË·±ÖصĴ¦Àí¹ý³Ì£¬×îÖÕÊÇ»ºÂýµÄËٶȡ£ php³ÌÐòÔ±Õ¾
ֻʹÓõ¥Ò»µÄIFRAME¡£µ±Êó±êÖ¸ÏòÒ»¸öÐÂÖ÷Ìâʱ£¬Ö»ÐèÒªÐÞ¸ÄIFRAMEÔªËصÄSRCÊôÐÔ¼´¿É¡£ÕâÑù£¬ÈκÎʱ¼äÄÚÖ»»áÓÐÒ»¸öÔ¤ÀÀÎĵµ±£ÁôÔÚÄÚ´æ¡£ www~phperz~com
ÔñÓÅÑ¡Óö¯»¶¨Î»ÊôÐÔ www.phperz.com
www.phperz.com
ÿÌìÉÏÍøä¯ÀÀÒ³Ã棬ÄãÒ»¶¨»á¿´µ½Ðí¶à¶¯»Ð§¹û¡£±ÈÈ磬һ¸ö¿É°®µÄСÍÃ×ÓÔÚÒ³ÃæÉÏÀ´»ØµØ×߶¯ ... ʵÏÖÕâ¸öЧ¹ûµÄºËÐļ¼Êõ¾ÍÊÇCCS¶¨Î»¡£Í¨³££¬ÎÒÃÇÊÇʹÓÃelement.style.leftºÍelement.style.top2¸öÊôÐÔÀ´´ïµ½Í¼Ðζ¨Î»µÄÄ¿µÄ¡£µ«ÊÇ£¬ÕâÑù×ö»á²úÉúһЩÎÊÌ⣺leftÊôÐÔ·µ»ØÒ»¸ö×Ö·û´®£¬²¢ÇÒÆäÖаüº¬Á˶ÈÁ¿µ¥Î»£¨±ÈÈç100px)¡£Òò´Ë£¬ÒªÉ趨еÄλÖÃ×ø±ê£¬¾Í±ØÐëÊ×ÏȶÔÕâ¸ö×Ö·û´®·µ»ØÖµ½øÐд¦Àí£¬È»ºó²ÅÄܸ³Öµ£¬ÏóÏÂÃæÒ»Ñù£º phperz.com
dim stringLeft, intLeft stringLeft = element.style.left intLeft = parseInt(stringLeft) intLeft = intLeft + 10 element.style.left = intLeft; php³ÌÐòÔ±Õ¾
ÄãÒ»¶¨»á¸Ð¾õ×öÕâôµãÊÂÇé¾¹Òª±àдÕâô¸´ÔӵĴúÂ룬ÊÇ·ñÓиü¼ò½àµÄ·½·¨£¿¿´Õâ4¸öÊôÐÔ£ºposLeft¡¢posTop¡¢posWidth ºÍ posHeight£¬ËüÃǶÔÓ¦ÓÚÏàÓ¦×Ö·û´®·µ»ØÖµµÄµãÊýÊýÖµ¡£ºÃÁË£¬Ê¹ÓÃÕâЩÊôÐÔÖØбàд´úÂëʵÏÖÉÏÃæ´úÂëʵÏֵŦÄÜ£º php³ÌÐòÔ±Õ¾
phperz.com
element.style.posLeft += 10 www.phperz.com
´úÂë¶ÌС¡¢ËÙ¶ÈÈ´¸ü¿ì£¡
php³ÌÐòÔ±Ö®¼Ò
Ñ»·¿ØÖƶà¸ö¶¯» phperz~com
˵µ½ÖÆ×÷¶¯»Ð§¹û£¬µ±È»Àë²»¿ª¶¨Ê±Æ÷µÄÔËÓá£Í¨³£µÄ·½·¨¾ÍÊÇʹÓÃwindow.setTimeoutÀ´²»¶ÏµØ¶¨Î»Ò³ÃæÉϵÄÔªËØ¡£µ«ÊÇ£¬Èç¹ûÒ³ÃæÉÏÓжà¸ö¶¯»ÒªÏÔʾ£¬ÊDz»ÊǾÍÒªÉ趨¶à¸ö¶¨Ê±Æ÷ÄØ£¿´ð°¸ÊÇNo£¡ÔÒòºÜ¼òµ¥£º¶¨Ê±Æ÷¹¦Äܽ«ÏûºÄµô´óÁ¿±¦¹óµÄϵͳ×ÊÔ´¡£¿ÉÊÇÎÒÃÇÈÔÄÜÔÚÒ³ÃæÉÏ¿ØÖƶà¸ö¶¯»£¬¼¼ÇɾÍÊÇʹÓÃÒ»¸öÑ»·¡£ÔÚÑ»·Öиù¾Ý²»Í¬µÄ±äÁ¿Öµ¿ØÖÆÏàÓ¦¶¯»µÄλÖã¬Õû¸öÑ»·ÖÐֻʹÓÃÒ»¸öwindow.setTimeout()º¯Êýµ÷Óᣠphperz~com
Visibility¿ìÓÚDisplay www.phperz.com
ÈÃͼ»Ê±ÒþʱÏֻᴴÔìºÜÓÐȤµÄЧ¹û£¬ÓÐ2ÖÖ·½·¨¿ÉÒÔʵÏÖÕâ¸öÄ¿µÄ£ºÊ¹ÓÃCSSµÄvisibilityÊôÐÔ»òÕßdisplayÊôÐÔ¡£¶ÔÓÚ¾ø¶ÔλÖÃÔªËØ£¬diaplayºÍvisibility¾ßÓÐͬÑùµÄЧ¹û¡£Á½ÕßµÄÇø±ðÔÚÓÚ£ºÉèÖÃΪdisplay:noneµÄÔªËؽ«²»ÔÙÕ¼ÓÃÎĵµÁ÷µÄ¿Õ¼ä£¬¶øÉèÖÃΪvisibility:hiddenµÄÔªËØÈÔÈ»±£ÁôÔλÖᣠphperz.com
www~phperz~com
µ«ÊÇÈç¹ûÒª´¦Àí¾ø¶ÔλÖõÄÔªËØ£¬Ê¹ÓÃvisibility»á¸ü¿ì¡£ php³ÌÐòÔ±Õ¾
´ÓС´¦×ÅÊÖ php³ÌÐòÔ±Ö®¼Ò
±àдDHTMLÍøÒ³µÄÒ»¸öÖØÒªÌáʾÊÇ£º´ÓС´¦×ÅÊÖ¡£³õ´Î±àдDHTMLÒ³Ãæʱ£¬Ò»¶¨²»ÒªÊÔͼÔÚÒ³ÃæÖÐʹÓÃÄãÁ˽⵽µÄÈ«²¿DHTML¹¦ÄÜ¡£Ã¿´Î¿ÉÒÔֻʹÓÃÒ»¸öµ¥Ò»µÄÐÂÌØÕ÷£¬²¢ÇÒ×ÐϸµØ¹Û²ìÓɴ˲úÉúµÄ±ä»¯¡£Èç¹û·¢ÏÖÐÔÄÜÓÐËùϽµ£¬¾Í¿ÉÒÔ¿ìËÙµØÕÒµ½ÎªÊ²Ã´¡£
|