| |||
![]() hola a todos, tengo un prblema con el foco resulta k estoy insertando unas imagenes en un iframe, pero el problema esta k si el usuario me hace click fuera del iframe la foto se carga en la pagina central no en el iframe y eso logicamente no puede suceder, como puedo solucionarlo de antemano muchas gracias..... |
| |||
![]() <cfform action="ingreso_noticias.cfm" method=post name="ingreso" enablecab="no" enctype="multipart/form-data" onSubmit="return CheckForm();" onReset="return confirm('Are you sure you want to clear the News Item you have entered?');" > <body> <table width="100%" border="0" align="center" height="175" cellpadding="2" cellspacing="0"> <tr> <td colspan="3" bgcolor="#8BB5F3"><div align="center"><font color="#FFFFFF" face="Georgia, Times New Roman, Times, serif"><strong>Ingreso de Noticias</strong></font></div></td> </tr> <tr bgcolor="#FFFFFF" > <td colspan="2"> </td> </tr> <tr bgcolor="#FFFFFF" > <td align="right" width="14%" height="12"><font size="2" color="#FF0000" face= "Verdana, Arial, Helvetica, sans-serif">Titulo De la Noticia:</font></td> <td height="12" width="86%"> <cfinput type="text" name="titulo" size="30" maxlength="50" required="yes" message="Ingrese el titulo"> </tr> <tr> <td><div align="center"><font color="#8BB5F3" size="2" face= color="#8BB5F3" "Verdana, Arial, Helvetica, sans-serif">Resumen</font></div></td> <td><cfinput type="text" required="yes" maxlength="100" size="100" name="resumen" message="Debe Ingresar Introducción de la Noticia"> <font face="Arial, Helvetica, sans-serif" size="-2"color="#8BB5F3">Ej: Nace de la necesidad en Chile</font></td> </tr> <tr> <td ><div align="center"><font color="#8BB5F3" size="2" face= color="#8BB5F3" "Verdana, Arial, Helvetica, sans-serif">Formato de Texto:</font></div></td> <td height="22" valign="bottom"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td> <select name="selectShortText" onChange="FormatTextShort('FontName', selectShortText.options[selectShortText.selectedIndex].value);document.ingreso.selectShortText.options[0].selected = true;" > <option value="0" selected>-- Tipo Font --</option> <option value="Arial, Helvetica, sans-serif">Arial</option> <option value="Times New Roman, Times, serif">Times</option> <option value="Courier New, Courier, mono">Courier New</option> <option value="Verdana, Arial, Helvetica, sans-serif">Verdana</option> </select> <select name="selectShortFontSize" onChange="FormatTextShort('FontSize', selectShortFontSize.options[selectShortFontSize.selectedIndex].value);document.ingreso.selectShortFontSize.optio ns[0].selected = true;" > <option value="0" selected>-- Tamaño Font --</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> </select> <select name="selectShortFontColour" onChange="FormatTextShort('ForeColor', selectShortFontColour.options[selectShortFontColour.selectedIndex].value);document.ingreso.selectShortFontColour.opt ions[0].selected = true;" > <option value="0" selected>-- Color Font --</option> <option value="black">Negro</option> <option value="white">Blanco</option> <option value="blue">Azul</option> <option value="red">Rojo</option> <option value="green">Verde</option> <option value="yellow">Yellow</option> <option value="orange">Naranjo</option> <option value="brown">Marrón</option> <option value="magenta">Magenta</option> <option value="cyan">Ciánico </option> <option value="limegreen">Verde Limón</option> </select> </td> </tr> <tr> <td><img src="../../../images/public/barra/post_button_cut.gif" width="25" height="24" align="absmiddle" onClick="FormatTextShort('cut')" style="cursor: hand;" alt="cortar"> <img src="../../../images/public/barra/post_button_copy.gif" width="25" height="24" align="absmiddle" onClick="FormatTextShort('copy')" style="cursor: hand;" alt="Copiar"> <img src="../../../images/public/barra/post_button_paste.gif" width="25" height="24" align="absmiddle" onClick="FormatTextShort('paste')" style="cursor: hand;" alt="Pegar"> <img src="../../../images/public/barra/post_button_bold.gif" width="25" height="24" align="absmiddle" alt="Bold" onClick="FormatTextShort('bold', '')" style="cursor: hand;"> <img src="../../../images/public/barra/post_button_italic.gif" width="25" height="24" align="absmiddle" alt="Italica" onClick="FormatTextShort('italic', '')" style="cursor: hand;"> <img src="../../../images/public/barra/post_button_underline.gif" width="25" height="24" align="absmiddle" alt="Subrayado" onClick="FormatTextShort('underline', '')" style="cursor: hand;"> <img src="../../../images/public/barra/post_button_left_just.gif" width="25" height="24" align="absmiddle" onClick="FormatTextShort('JustifyLeft', '')" style="cursor: hand;" alt="Justificar Izquierda"> <img src="../../../images/public/barra/post_button_centre.gif" width="25" height="24" align="absmiddle" border="0" alt="Centrar " onClick="FormatTextShort('JustifyCenter', '')" style="cursor: hand;"> <img src="../../../images/public/barra/post_button_right_just.gif" width="25" height="24" align="absmiddle" onClick="FormatTextShort('JustifyRight', '')" style="cursor: hand;" alt="Justificar derecha"> <img src="../../../images/public/barra/post_button_list.gif" width="25" height="24" align="absmiddle" border="0" alt="Lista" onClick="FormatTextShort('InsertUnorderedList', '')" style="cursor: hand;"> <img src="../../../images/public/barra/post_button_outdent.gif" width="25" height="24" align="absmiddle" onClick="FormatTextShort('Outdent', '')" style="cursor: hand;" alt="Outdent"> <img src="../../../images/public/barra/post_button_indent.gif" width="25" height="24" align="absmiddle" border="0" alt="Indent" onClick="FormatTextShort('indent', '')" style="cursor: hand;"> <img src="../../../images/public/barra/post_button_hyperlink.gif" width="25" height="24" align="absmiddle" border="0" alt="Agregar El Hyperlink" onClick="FormatTextShort('createLink')" style="cursor: hand;"><img src="../../../images/public/barra/post_button_image.gif" width="25" height="24" align="absmiddle" border="0" alt="Agregar Imagen" onClick="popUp('carga_imagen.cfm');" style="cursor: hand;"> </td> </tr> </table></td> </tr> <tr> <td ><div align="center"><font size="4" color="#8BB5F3" face= "Verdana, Arial, Helvetica, sans-serif">Cuerpo:</font></div></td> <td height="22" valign="bottom"> @@@@@@AQUI ESTA EL IFRAME@@@@@@@@@@@@ <script language="javascript"> //Create an iframe and turn on the design mode for it document.write ('<iframe src="adv_message_textbox.cfm" id="shortMessage" width="510" height="170"></iframe>') frames.shortMessage.document.designMode = "On"; </script> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |