在iframe中的光标位置 不明白你的意思。放出页面或者完整一点的代码看看! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <HTML><HEAD><TITLE>Test</TITLE><script language="javascript"> var IFrameObject; function editPage( FrameObject ){ if( window.frames(FrameObject.name).document.designMode!="On"){ window.frames(FrameObject.name).document.designMode="On"; } IFrameObject = FrameObject;} function insertImgUrl(){ window.frames(IFrameObject.name).focus(); var imageurl = prompt("请输入图象的URL链接。","http://"); if(imageurl==null || imageurl=="" || imageurl=="http://")return false; window.frames( IFrameObject.name ).document.execCommand("InsertImage","",imageurl); }</script></HEAD><BODY onload="window.frames(0).focus();"><table width="100%"><tr><td width="10%">内容</td><td><IFRAME id="contentFrame" width="580" name=contentFrame height="400" onfocus="editPage(this)" marginWidth=1 marginHeight=1 scrolling=yes > </IFRAME></td></tr><tr><textarea name='content' style="display:'none'" rows="1" cols="35"></textarea> </tr><tr><td width="10%"> </td><td><INPUT type="button" value="Text" name=viewtext onclick="viewText(this)" class="btn" style= "cursor:hand;background-Color:#C8D2EC" disabled ><!--<INPUT type="button" value="HTML" name=viewcode onclick="viewCode(this)" class="btn" style="cursor:hand"> --><INPUT type="button" value="插入表情符号" class="btn" onclick="insertImgUrl()"> <td></tr></table></BODY></HTML> 我希望,在插入图片后,不是刚刚插入的图片获得焦点,而是光标在图片后出现,用户能够点击"插入"键继续插入,我是要用他来作表情符号插入的, 关于IE7下jquery的hover事件失去焦点 静态页面权限的问题 求教一个JS验证表单内容非空的问题。 onpropertychange的使用问题 请问我该怎样获取这个文件 !!!如何用script取得页面里img图片的最后修改时间??? html引入extjs问题 请教关于层的问题 今天对Javascript调用*.ocx方式很迷惑! 用windows.open(xxx.asp?id="111")打开的窗口能控制大小吗??怎么控制?我不用全屏显示 这个错误什么意思? 关于弹出对话筐
<HEAD>
<TITLE>Test</TITLE>
<script language="javascript">
var IFrameObject;
function editPage( FrameObject ){
if( window.frames(FrameObject.name).document.designMode!="On"){
window.frames(FrameObject.name).document.designMode="On";
}
IFrameObject = FrameObject;
}
function insertImgUrl(){
window.frames(IFrameObject.name).focus();
var imageurl = prompt("请输入图象的URL链接。","http://");
if(imageurl==null || imageurl=="" || imageurl=="http://")return false;
window.frames( IFrameObject.name ).document.execCommand("InsertImage","",imageurl);
}
</script>
</HEAD>
<BODY onload="window.frames(0).focus();">
<table width="100%">
<tr>
<td width="10%">内容</td>
<td><IFRAME id="contentFrame" width="580" name=contentFrame height="400" onfocus="editPage(this)" marginWidth=1 marginHeight=1 scrolling=yes > </IFRAME></td></tr>
<tr><textarea name='content' style="display:'none'" rows="1" cols="35"></textarea> </tr>
<tr>
<td width="10%"> </td>
<td>
<INPUT type="button" value="Text" name=viewtext onclick="viewText(this)" class="btn" style= "cursor:hand;background-Color:#C8D2EC" disabled >
<!--<INPUT type="button" value="HTML" name=viewcode onclick="viewCode(this)" class="btn" style="cursor:hand"> -->
<INPUT type="button" value="插入表情符号" class="btn" onclick="insertImgUrl()">
<td>
</tr>
</table>
</BODY>
</HTML>