为啥JS中一个函数里的层在布局时没有跟着JS中的链接走,就是函数中的函数里的层,可能不好理解,大概就是那个意思吧。
解决方案 »
- 我遇到一个问题,就是<input>type=text中输入的数字大小超过20就给一个提示,提示最好不用alert,在旁边直接输出最好,求各位帮忙
- 大家帮我看看这个判断浏览器最小化的代码要怎么用
- scriptx.cab增加factory.printing.paperSize = "A4"出错
- 为什么页面一操作,页面嵌入的media player就停止播放呢?
- 请问此种类型的js check怎么写??
- 在JS里怎么在一个字符串中查找某串,并能确定有没有找到?????
- 如何获取<td>a</td>之间的内容
- 如何控制表单提交
- 一个问题 200分 谁解决了200分全给 到地址里面拿分 问题也在地址里
- 为什么这句话总是提交了2次?????? 急!!!
- 能否通过JS实现查询结果的折叠和展开
- 关于Node在IE,跟firefox等标准浏览器解释不一致的问题
showStr+=' </div>';
showStr+=' <div class="row02m">';
showStr+=''+cmtInfo[0]+'<br>';
showStr+='<span class="font1001">'+cmtInfo[2]+'</span>';
showStr+='<br><br>';
showStr+=''+cmtInfo[3]+'<br>'; //comment TEXT
showStr+='<br><br>';
showStr+='<input type="button" name="chataddpic" id="chataddpic" value="upload picture" onClick="javascript:showPicupLoad();">';
showStr+='<div class="addchatpicture" id="addchatpicture">';
showStr+='<FORM name="SCM" action="khimgaddmainpicture.asp" method="post" encType="multipart/form-data">';
showStr+='<p class="chatmainpicture">Main picture:';
showStr+='<INPUT type="file"name="file1" ></p>';
showStr+='<p class="chatmainpicture2">\<input type="submit" name="FMDJ" value="submit"class="xian">';
showStr+='<input type="reset" name="Submit2" value="reset"class="xian">';
showStr+='</form>';
showStr+='</div>';
showStr+=' <input type="text" name="chatcomment" id="chatcomment" size="50" class="chatcomment" onFocus="javascript:cleantitlevalue();" onBlur="javascript:filltitlevalue();" value="Write comment here">';
showStr+=' <input type="button" name="chatsubcom" id="chatsubcom" class="chatsubcom" value="Comment">';
//showStr+='<span class="chatterline"></span>';
showStr+=' </div>';
//showStr+='</tr>';
}
}catch(ci){
showStr+='<span><br>Something exception happen.</span>';
}
showStr+='</table>';
oUPicList.html(showStr);
//showStr=null;
//chatinfo(gbrefUID);
chatinfoBoxConUI();
}
.......
点upload picture 只在上面一个地方出来,用啥方法才能在下面每张图片下面出来呢?
想简单的话,你要每个人(一行)下方,都加上一个DIV并隐藏,点击upload picture后再显示。
想要代码少些,那就做一个统一的弹出层。
或者点击upload picture后用JS弄。
2.想定位的那个层的CLASS样式根本没设为position:absolute(看你问问题问得这么乱套,不能排除有这个可能)。
点击时设置div 的位置和对应数据就可以了可以看看 csdn 左边的头像,鼠标移上去的效果
position:absolute;并给该层找一个相对位置(外层元素),并设置它为
position:relative;
比如:<div style="float:right; margin-top:6px; margin-right:6px; position:relative">
<div class="addchatpicture" id="addchatpicture" style="position:absolute; left:-128px; top: -92px; z-index:100">
</div>
function showPicupLoad(){
var oPictureCon=getObj('addchatpicture');
//alert(oPictureCon);
if(oPictureCon.style.display!="block"){
oPictureCon.style.display="block"
}
else{
if(oPictureCon.style.display=="block"){
oPictureCon.style.display="none"
}
}