Foros del Web » Programando para Internet » Javascript »

Código: "agregar a Mis Favoritos"?

Estas en el tema de Código: "agregar a Mis Favoritos"? en el foro de Javascript en Foros del Web. porfavor... ¿alguien conoce algun codigo html para agregar a mi site para configurar "agregue este site a mis favoritos? se que es algo simple-agradecere mucho ...
  #1 (permalink)  
Antiguo 10/09/2005, 12:07
tulioljr
Invitado
 
Mensajes: n/a
Puntos:
Código: "agregar a Mis Favoritos"?

porfavor...
¿alguien conoce algun codigo html para agregar a mi site para configurar "agregue este site a mis favoritos?

se que es algo simple-agradecere mucho su ayuda
salu2


  #2 (permalink)  
Antiguo 10/09/2005, 12:50
Avatar de admoro  
Fecha de Ingreso: agosto-2005
Ubicación: Prov. de Bs As. Argentina
Mensajes: 435
Antigüedad: 18 años, 8 meses
Puntos: 3
Acá te dejo un código:

<!-- PRIMER PASO: Colocar dentro del tag HEAD -->

<script LANGUAGE="JavaScript">

function agregar(){
if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) {
var url="http://www.tu-sitio.comr/";
var titulo="Nomnre del Sitio";
window.external.AddFavorite(url,titulo);
}
else {
if(navigator.appName == "Netscape")
alert ("Presione Crtl+D para agregar este sitio en sus Bookmarks");
}
}
</script>

<!-- SEGUNDO PASO: Colocar dentro del tag BODY -->

<input type="button" value="Agregar a favoritos" onClick="javascript:agregar();">


Creo este código te puede ayudar. Tengo otros cualquier cosa.
Saludos
Admoro

PD: Estos códigos son "genéricos" por eso serán sencillos de aplicar.
  #3 (permalink)  
Antiguo 10/09/2005, 15:30
Avatar de Hurling  
Fecha de Ingreso: noviembre-2004
Ubicación: Córdoba-Argentina
Mensajes: 368
Antigüedad: 19 años, 5 meses
Puntos: 0
Mira este post, te puede ser interesante para que sea mas compatible con casi todos los navegadores.
__________________
Algo esta pasando en Foro Virtual Comunidad de amigos.
  #4 (permalink)  
Antiguo 15/09/2005, 00:40
tulioljr
Invitado
 
Mensajes: n/a
Puntos:
ok muchas gracias...lo intentare...
valoro su apoyo
saludos
  #5 (permalink)  
Antiguo 15/09/2005, 01:20
tulioljr
Invitado
 
Mensajes: n/a
Puntos:
Quiero pedirles un favor amigos míos.....
Sucede que de alguna forma todavía son un principiante en temas de programación avanzada...
Trate con la recomendación que ustedes me dieron y todo al parecer me salió bien pero cuando estaba sincronizando me botaba “error”
Aquí les alcanzo mi html de mi pagina principal en la cual quiero incrustar la herramienta...
Si fuesen tan amables de editarlo y volverlo a postear aquí para pasarlo a mi web...

Les agradecería de corazón...
Saludos!!

--------------------------------------------------------------------------
<html>
<HEAD><TITLE>Website Powered by Bravenet.com</TITLE>
<script LANGUAGE="JavaScript">


<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=0>


<TABLE cellSpacing=0 cellPadding=0 width="100%" background=http://arkimagenes.bravehost.com/images107/topbkg.gif border=0>
<TBODY>


<TR><!--header-->
<TD><IMG style="WIDTH: 794px; HEIGHT: 61px" height=639 src="http://arkimagenes.bravehost.com/insignia-ok.jpg" width=5482></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top width="1%" background=http://arkimagenes.bravehost.com/images107/sidebkg.gif><!--buttons--><FONT style="BACKGROUND-COLOR: #44ff88" color=#22ccff></FONT><A href="http://arkimagenes.bravehost.com/oo-dis_int.html"><IMG src="http://arkimagenes.bravehost.com/--dis_nteriores.gif"></A><BR><A href="http://arkimagenes.bravehost.com/oo-mural.html"><IMG src="http://arkimagenes.bravehost.com/--murales.gif"></A><BR><A href="http://arkimagenes.bravehost.com/oo-mantmto.html"><IMG src="http://arkimagenes.bravehost.com/--mantenmto.gif"></A><BR><A href="http://arkimagenes.bravehost.com/oo-mobil.htm"><IMG src="http://arkimagenes.bravehost.com/--mbiliario.gif"></A><BR><A href="http://arkimagenes.bravehost.com/diseno_inte.html"></A>
<P><A href="http://arkimagenes.bravehost.com/oo-arte.html "><IMG src="http://arkimagenes.bravehost.com/--arte%20e%20ilust.gif"></A></P><A href="http://arkimagenes.bravehost.com/oo-qunsomos.htm"><IMG src="http://arkimagenes.bravehost.com/--quienes_somos.gif"></A><BR>
<P><IMG src="http://arkimagenes.bravehost.com/--contactenos.gif"><A href="http://arkimagenes.bravehost.com/diseno_inte.htm"></A></P></TD>
<TD style="PADDING-RIGHT: 20px; PADDING-LEFT: 20px; PADDING-BOTTOM: 20px; PADDING-TOP: 20px" vAlign=top width="99%">
<P><!--main text--><FONT face=Sans-Serif size=4><STRONG>::Bienvenidos al Album virtual de ARKIMAGENES::</STRONG></FONT></P>
<P><FONT face=Sans-Serif color=#ff4400 size=1><STRONG>::Para contactarnos por favor observe la parte final de esta pagina::</STRONG></FONT> </P><FONT face=Tahoma size=1>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=right><STRONG><SPAN lang=ES-PE style="FONT-SIZE: 11pt; FONT-FAMILY: Arial; mso-ansi-language: ES-PE; mso-bidi-font-size: 8.5pt"><FONT color=#008800><FONT size=1>::intercambia ingresos a tu web publicando tus links aquí....</FONT></FONT></SPAN></STRONG></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=right><STRONG><SPAN lang=ES-PE style="FONT-SIZE: 11pt; FONT-FAMILY: Arial; mso-ansi-language: ES-PE; mso-bidi-font-size: 8.5pt"></SPAN><SPAN lang=ES-PE style="FONT-SIZE: 11pt; FONT-FAMILY: Arial; mso-ansi-language: ES-PE; mso-bidi-font-size: 8.5pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: ES; mso-bidi-language: AR-SA"><FONT color=#008800 size=1>....ve al final de esta pagina e ingresa al ultimo botón que se ve a la izquierda::</FONT></SPAN></STRONG></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=left><SPAN lang=ES-PE style="FONT-SIZE: 11pt; FONT-FAMILY: Arial; mso-ansi-language: ES-PE; mso-bidi-font-size: 8.5pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: ES; mso-bidi-language: AR-SA"><SPAN style="mso-spacerun: yes"></SPAN></SPAN><STRONG></STRONG>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=left><STRONG>ultima actualización: <FONT color=#aa4400>Vie&nbsp;09 Setiembre 2005</FONT></STRONG></FONT> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">
<HR>

<P></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=left><FONT face=Sans-Serif size=1><STRONG><U>Contactos:</U></STRONG></FONT> </P>
<P></P>
<P><FONT face=Sans-Serif size=1><STRONG>Tel:</STRONG> 372-8024<STRONG> / Cel:</STRONG> 9 715-2419&nbsp; /&nbsp; E-mail: <A href="mailto:[email protected]">arkimagenes @terra.com.pe</A></FONT></P>
<P>
<HR>
&nbsp;
<P></P>
<P style="FONT: 11px arial" align=center><A href="http://www.bravenet.com"><FONT face=Sans-Serif>Powered by Bravenet.com</FONT></A></P></TD></TR></TBODY></TABLE><!-- Start Bravenet.com Service Code --><script src="http://pub36.bravenet.com/counter/code.php?id=390502&amp;usernum=3029038123&amp;cpv= 2"></script> <!-- END DO NOT MODIFY --><!-- Start Bravenet.com Service Code -->
<DIV align=center><A href="http://pub36.bravenet.com/freelink/show.php?usernum=3029038123&amp;cpv=1"><IMG title="Free Links from Bravenet.com" alt="Free Links from Bravenet.com" src="http://assets.bravenet.com/cp/freelink.gif" border=0></A>&nbsp;<A href="http://www.bravenet.com"><IMG title="Free Links from Bravenet.com" alt="Free Links from Bravenet.com" src="http://assets.bravenet.com/cp/bn-freelink.gif" border=0></A> </DIV><!-- End Bravenet.com Service Code --></BODY>
</html>
  #6 (permalink)  
Antiguo 15/09/2005, 01:23
Avatar de JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Este mensaje estará mejor en el foro de JavaScript.

Movido desde Editores Web.

Saludos,
  #7 (permalink)  
Antiguo 15/09/2005, 08:45
tulioljr
Invitado
 
Mensajes: n/a
Puntos:
hola Javier...y por donde engancho aquel foro...esta anexado a foros del web?
  #8 (permalink)  
Antiguo 15/09/2005, 08:50
Avatar de JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Hola de nuevo.

No te preocupes, el mensaje ya está en el foro adecuado. Solo avisaba de que lo iba a trasladar.

Saludos,
  #9 (permalink)  
Antiguo 15/09/2005, 09:06
tulioljr
Invitado
 
Mensajes: n/a
Puntos:
ah ya....y.....¿como debo hacer para obtener un respuesta desde aquel foro?
¿en donde me siento a esperar?
muchas gracias Javier
  #10 (permalink)  
Antiguo 16/09/2005, 07:11
tulioljr
Invitado
 
Mensajes: n/a
Puntos:
javier...te he buscado a traves de un foro que abriste.....sucede que no se que debo hacer ahora?
agradeceria tu orientacion...
saludos

Última edición por tulioljr; 16/09/2005 a las 08:58
  #11 (permalink)  
Antiguo 16/09/2005, 08:09
Avatar de tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 22 años, 8 meses
Puntos: 381
Qué tal tuliojr,

te respondo yo (si te sirve )

mira las cuatro primeras líneas que dejaste

Código:
<html>
<HEAD><TITLE>Website Powered by Bravenet.com</TITLE>
<script LANGUAGE="JavaScript">


<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=0>
... si te fijas no cierras el tag de script, por lo tanto el navegador interpreta que todo lo que hay a continuación es javascript y como no lo es, los da por errores sintácticos. Debes, o bien quitar ese tag que puse en rojo (dado que no veo que haya código js) o cerrarlo mediante </script>

Cita:
<html>
<HEAD><TITLE>Website Powered by Bravenet.com</TITLE>
<script LANGUAGE="JavaScript">

</script>
<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=0>
Yá nos dirás si con eso se soluciona

un saludo
  #12 (permalink)  
Antiguo 16/09/2005, 09:02
tulioljr
Invitado
 
Mensajes: n/a
Puntos:
Tunait
muchas gracias x intentar ayudarme...
el caso es que la verdad no soy tan experto en estos temas, pero si me defiendo un poco...

¿seria mucha molestia si copiaras todo el html que publique arriba, lo editas y me lo vuelves a postear con los cambios necesarios para que funcione la herramienta "agregar a favotitos"?
gracias
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:25.