if ($("div#capa_1").height() > $("div#capa_2").height()) {
$("div#capa_2").height($("div#capa_1").height())
}else{
$("div#capa_1").height($("div#capa_2").height())
}
Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/2093"></script>
function alertPhp($texto){
echo "<script type='text/javascript'>alert('".
$texto.
"');</script>";
}
Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1783"></script>
<script type="text/javascript">
function pulsar(e) {
tecla = (document.all) ? e.keyCode : e.which;
return (tecla != 13);
}
</script>
<!-- -->
<form action="loquesea.asp" onkeypress = "return pulsar(event)">
<input type="text" />
<input type="submit" />
</form>
Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1695"></script>
function stopRKey(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
}
document.onkeypress = stopRKey;
Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1694"></script>
En los parámetros del flash o FLV incluir
<param name="wmode" value="transparent">
Ahora un paso MUY IMPORTANTE para que funcione en todos los navegadores
Para que tambien funcione en Firefox y Opera, etc.incluir el codigo (wmode="transparent") dentro de la etiqueta EMBED, y quede algo así como:
<embed src="miflash.swf" wmode="transparent" quality="high" etc etc.
Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1660"></script>
html / javscript
<input type="file" onchange="this.submit()" name="myfile" />
Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1586"></script>
When the location you want is in the center of the map, copy and paste this code into the location bar of your browser and press enter
javascript:void(prompt('',gApplication.getMap().getCenter()));
Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1412"></script>
This little trick allows a Flash movie (swf) to find out the URL of the page in which it's embedded. Javascript must be enabled for this to work. if the window.location.href.toString method doesn't return a value then ExternalInterface.call will return null. Same thing happens when Javascript is disabled.
// This little trick allows a Flash movie (swf) to find out the URL of the page in which it's embedded.
import flash.external.ExternalInterface;
var pageURL:String =
ExternalInterface.call('window.location.href.toString');
Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1411"></script>
if toFixed is not defined
if (!num.toFixed)
{
Number.prototype.toFixed = function(precision) {
var power = Math.pow(10, precision || 0);
return String(Math.round(this * power)/power);
}
}
// OR
Number.prototype.toFixed = function(precision)
{
var num = (Math.round(this*Math.pow(10,precision))).toString();
return num.substring(0,num.length-precision) + "." +
num.substring(num.length-precision, num.length);
}
Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1403"></script>
<script language="JavaScript">
function Abrir_ventana (pagina) {
var opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=690, height=400, top=100, left=80";
window.open(pagina,"",opciones);
}
</script>
<body onLoad ="Abrir_ventana('pop.html')" >// abrirlo cuando carga la pagina
Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/1393"></script>