javascript ¿ØÖÆcss js¿ØÖÆ clss
ÏñÉÏÃæµÄÒ»ÕÅͼƬÎÒÃǸÃÔõôÓÃjs ºÍcss + div ºÜºÃµÄÓ¦Óõ½ÎÒÃǵÄÏîÄ¿ÖÐÄØ£¿
<style>
.InpuRight{
height:20px;background:url(img/msg_bg.png) no-repeat;background-position:0px -250px;
}
.InputError{
width:20px;height:20px;background:url(img/msg_bg.png) no-repeat 0px 0px;
}
.inputLogin{
width:20px;height:20px;background:url(img/msg_bg.png) no-repeat;background-position:0px -150px;
}
</style>
¶¨ÒåµÄcssÑùʽ£¬×Ðϸ¿´InputErrorºÍÆäËüµÄÇø±ðÄã»áÃ÷°×ºÜ¶à
¿´¿´Ò³ÃæÊÇÔõô¶¨ÒåµÄÄØ£º
<div id="ceshi" class="inputLogin"></div>
<a href="javascript:checkName()" >click</a>
ÔÙ¿´¿´ÎÒÃǵÄjs°É
function checkName(){
var uu = document.getElementById("ceshi");
uu.className="InpuRight";
uu.innerHTML=" <font color='red'>asdfdsf</font>";
}
¿´¿´ÎÒÃǵÄÒ»¿ªÊ¼ÔËÐаÉ
ÔÙ¿´¿´clickºóµÄ°É
ССµÄÑо¿°¡£¬ÓÃÈ¥ÁËÎÒ°ëÌìµÄʱ¼ä£¬»ÚºÞµ±³õûÓкúõÄѧ°¡£¡
Ïà¹ØÎĵµ£º
×Ö·ûÊǼÆËã»úÈí¼þ´¦ÀíÎÄ×Öʱ×î»ù±¾µÄµ¥Î»£¬¿ÉÄÜÊÇ×Öĸ£¬Êý×Ö£¬±êµã·ûºÅ£¬¿Õ¸ñ£¬»»Ðзû£¬ºº×ֵȵȡ£×Ö·û´®ÊÇ0¸ö»ò¸ü¶à¸ö×Ö·ûµÄÐòÁС£Îı¾Ò²¾ÍÊÇÎÄ×Ö£¬×Ö·û´®¡£ËµÄ³¸ö×Ö·û´®Æ¥Åäij¸öÕýÔò±í´ïʽ£¬Í¨³£ÊÇÖ¸Õâ¸ö×Ö·û´®ÀïÓÐÒ»²¿·Ö£¨»ò¼¸²¿·Ö·Ö±ð£©ÄÜÂú×ã±í´ïʽ¸ø³öµÄÌõ¼þ¡£
......
1.javascriptÓëHtmlÖеĵ÷ÓÃÎÊÌâ¡£
ÔÚjavascriptÖÐÒªÏë¸ü¸ÄhtmlÖеÄһЩÊôÐÔÖµ£¬ÌرðÊÇÔÚÒ³ÃæÄÚÈݽ϶àʱ£¬Îñ±ØʹÓÃdocument.getElementById(id)µÄ·½Ê½½øÐУ¬·ñÔòjavascript½«²»Äܸü¸ÄÊôÐÔ£¡
2.DateÀà¡£
ÔÚDateÀàÖеÄgetMonth£¨£©µÈ·½·¨·µ»ØֵΪnumber¡£Òò´Ë¿ÉÒÔʹÓÃÊý×é´æ´¢Ô·ÝÐÅÏ¢Èçmonth£½[“1Ô”£¬&ldq ......
ÔÎĵØÖ·£ºhttp://www.devwebpro.com/25-rounded-corners-techniques-with-css/
* This post is regularly updated. *
Rounded corners is one of the most popular and frequently requested
CSS techniques even the father of internet Google
also launch the rounded corners style markup
with her Google Ad ......
ÔÚasp.net開發ÖУ¬經³£會Óõ½áą́ºÍǰ̨µÄ½»»¥£¬¾Í´Ë總結ÁËÒ»點c#ºÍjavascriptÏ໥²Ù×÷µÄ·½·¨
¡¡¡¡1.ÔÚáą́c#´ú碼ÖÐ調ÓÃjacascriptµÄ·½·¨
¡¡¡¡javascript´ú碼£º
¡¡¡¡<script type="text/javascript" language="javascript">
¡¡¡¡function test()
¡ ......
<html>
<head>
<title>changePage</title>
</head>
<body>
<table id="pic" cellpadding="0" cellspacing="0" border="1" width="200" height="100" bordercolor="red">
<tr>
<td>picture chanage!</td>
</tr>
</table>
< ......