javascript·µ»ØÖµ´«µÝÎÊÌâ - Web ¿ª·¢ / JavaScript
<script language="javascript">
function aa()
{
var a="image/map5.jpg"
return a
}
</script>
<table border="1" width="1000" >
<tr >
<td width="800" background="aa" height="600" onDblClick="">
<p>˵¹ýµÄ¸ß¶È ¸ß
ÎÒÏë×öµÄÊÇÈÃ<td width="800" background="aa"ÖÐbackgroundÖµµÈÓÚº¯ÊýaaµÄ·µ»ØÖµ£¬Ôõô×ö°¡£¿
background ¼ÈÈ»²»ÊDZäÁ¿ Ò²²»ÊÇʼþ
ÕâÑù²»ÐеÄ
¾Í²»ÄÜ´«Êý¾ÝÀ²
<script language="javascript">
function aa(td)
{
var a="image/map5.jpg"
td.style.background = "#fff url(" + a + ") no-repeat";
}
</script>
<table border="1" width="1000" >
<tr >
<td width="800" height="600" onDblClick="aa(this);">
<p>˵¹ýµÄ¸ß¶È ¸ß
Ïà¹ØÎÊ´ð£º
ÓÃjavascript½«Êý¾Ýµ¼³öµ½Îı¾Îļþ(txt)ÖÐ..
Ê×ÏȼÙÉèÒѾÓÐÁËÐèҪдÈëµÄÎı¾ÄÚÈÝ var txtContent ="ÐèҪдÈëµÄÄÚÈÝ";
ÏÖÔÚÐèÒªÓÃjavascript½«ÄÚÈÝдÈëtxtÎļþ(Õâ¸ötxtÎļþ²»´æÔÚ,ÐèÒª´´½¨)ÖÐ,È»ºóдºÃÖ ......
ÔÚJSPÒ³ÃæÓÐÒ»¸ö<input type="hidden" name="index" value="0">/>¿Ø¼þ
µ±ÎÒÓÃÏÂÃæµÄJavaScriptº¯Êý¸Ä±äÆävalueµÄÖµµÄʱºò Èç¹ûÂú×ãÌõ¼þ£¨¼´i>=3µÄʱºò£©ÎªÊ²Ã´valueµÄ ......
Îʸö±È½Ï»ù´¡µÄÎÊÌ⣬ÔÚÒ»¸öhtmlÎļþÖÐÒýÈëÁËÒ»¸ö.jsµÄÎļþ£¬ÄÇô¶ÔÓÚÕâ¸ö .js µÄÎļþÀ´Ëµ£¬ËüËù¶ÔÓ¦µÄµ±Ç°Â·¾¶Ó¦¸ÃÊÇÄÄÒ»¸ö£¿ÊÇhtmlÎļþËùÔڵķ¾¶£¬»¹ÊÇ .js ÎļþµÄ·¾¶£¿£¨htmlÓëjs²»ÔÚͬһÎļþ¼ÐÖУ©
ÓÉÓÚjsÖÐÒ ......
<script>
function set(operation) {
alert(operation);
if(operation=='zhuye')
{
with (document.forms[0]) {
method.value = ope ......
×Ó´°¿ÚµÄÄÚÈÝÊÇÓÃÁËiframe±ð´¦×¥µÄ£¬ÎÒÏëÈÃ×Ó´°¿ÚÖеĺ¯ÊýµÃµ½£¬divµÄ×ø±êλÖ㬸ÃÔõô×ö
<div><iframe src="http://www.aaa.com"></iframe></div>
²»ÖªµÀ´ó¼Ò¿´¶®Ã»~
JScri ......