tagName的使用,留一筆
更新時(shí)間:2006年06月26日 00:00:00 作者:
<SCRIPT LANGUAGE="JavaScript">
<!--
function TagSample(s)
{
var source=event.srcElement;
if (source.tagName.toUpperCase() == "IMG")
{
if (s == 1)
{
source.style.border="1px solid #0000FF";
}
else
{
source.style.border="";
}
}
}
//-->
</SCRIPT>
<div onMouseOver="TagSample(1)" onMouseOut="TagSample(0)">
<IMG SRC="images/logo.gif" WIDTH="190" HEIGHT="70" BORDER="0" ALT="">
</div>
<!--
function TagSample(s)
{
var source=event.srcElement;
if (source.tagName.toUpperCase() == "IMG")
{
if (s == 1)
{
source.style.border="1px solid #0000FF";
}
else
{
source.style.border="";
}
}
}
//-->
</SCRIPT>
<div onMouseOver="TagSample(1)" onMouseOut="TagSample(0)">
<IMG SRC="images/logo.gif" WIDTH="190" HEIGHT="70" BORDER="0" ALT="">
</div>
相關(guān)文章
詳解HTML5 使用video標(biāo)簽實(shí)現(xiàn)選擇攝像頭功能
這篇文章主要介紹了詳解HTML5 使用video標(biāo)簽實(shí)現(xiàn)選擇攝像頭功能的相關(guān)資料,希望通過(guò)本文能幫助到大家,實(shí)現(xiàn)這樣的功能,需要的朋友可以參考下2017-10-10
微信小程序組件 contact-button(客服會(huì)話按鈕)詳解及實(shí)例代碼
這篇文章主要介紹了微信小程序組件 contact-button(客服會(huì)話按鈕)詳解及實(shí)例代碼的相關(guān)資料,需要的朋友可以參考下2017-01-01
微信小程序 wxapp內(nèi)容組件 progress詳細(xì)介紹
這篇文章主要介紹了微信小程序 wxapp內(nèi)容組件 progress詳細(xì)介紹的相關(guān)資料,需要的朋友可以參考下2016-10-10
JavaScript監(jiān)測(cè)數(shù)據(jù)類型方法全面總結(jié)
這篇文章主要為大家介紹了JavaScript監(jiān)測(cè)數(shù)據(jù)類型方法示例全面總結(jié),有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2023-08-08
TS?項(xiàng)目中高效處理接口返回?cái)?shù)據(jù)方法詳解
這篇文章主要為大家介紹了TS?項(xiàng)目中如何高效的處理接口返回的數(shù)據(jù)的方法詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2023-01-01
umi插件開發(fā)仿dumi項(xiàng)目自動(dòng)生成導(dǎo)航欄實(shí)現(xiàn)詳解
這篇文章主要為大家介紹了umi插件開發(fā)仿dumi項(xiàng)目自動(dòng)生成導(dǎo)航欄實(shí)現(xiàn)詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2023-01-01
微信小程序 WXDropDownMenu組件詳解及實(shí)例代碼
這篇文章主要介紹了微信小程序 WXDropDownMenu組件詳解及實(shí)例代碼的相關(guān)資料,需要的朋友可以參考下2016-10-10

