<styletype="text/css">
body {
behavior:url("csshover.htc");
}
</style>
Make MSIE behave like a standards-compliant browser. It fixes many HTML and CSS issues and makes transparent PNG work correctly under IE5 and IE6. http://code.google.com/p/ie7-js/
Safe and Dirty Remote XMLHttpRequest Sometimes we need XMLHttpRequest work on diferents domains (cross domains) a simple solution, you need JavaScript and Perl:
The XMLHttpRequest(); example:
var req =new XMLHttpRequest()// IE7, Firefox, Safari, Opera
req.open('GET','http://localhost/cgi-bin/remote.pl?url='+url,false);
req.send(null);
#!/bin/bashecho"JavaScript Collection"EXPECTED_ARGS=1E_BADARGS=65if[$#-ne$EXPECTED_ARGS]thenecho"Usage: `basename $0` {path of the javascripts}"exit$E_BADARGSfi# Join the javascript scripts in one filecat $1/*.js >> $1/.__fullscripts.tmp
# use JSMIN to minifier the scriptcat $1/.__fullscripts.tmp | jsmin > $1/.__fullscripts.min.tmp
# awk remove the first blank line, gzip compress the scriptawk'FNR>1{print}' $1/.__fullscripts.min.tmp | gzip> $1/collection_scripts.js.gz
# remove temporal filesrm $1/.__fullscripts.tmp $1/.__fullscripts.min.tmp
Howto: jscpublic_html/web/js/
Now create one php script to replace all javascripts:
I made this little Javascript function, this function insert any youtube video on a <div>.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Script: YouTubeVideo Version 1.0 (2008/07/22)// Author: Alberto Isaac Ayala Esquivias (Albertux)// Licence: http://creativecommons.org/licenses/by-nc-sa/3.0/// FeedBack to: albertoi7@gmail.com// About: Insert youtube video on a div doesn't matter if embed code is disable this script insert the video.function YouTubeVideo(id,url){var video_html ='<object width="425" height="344"><param name="movie" value="http://www.youtube.com/swf/l.swf?video_id=VIDEO&rel=1&iurl=null&autoplay=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/swf/l.swf?video_id=VIDEO&rel=1&iurl=null&autoplay=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>';
var n = url.indexOf('v=');
var id_video = url.substring(n+2,n+14);
document.getElementById(id).innerHTML=video_html.replace(/VIDEO/g, id_video);
}
La Api de Google Maps nos sirve para agregarles funcionalidades a los mapas, en mi caso hice este ejemplo de localización de mi casa de Cadereyta, aveces en algunos proyectos de sistemas se requiere de la geolocalización de propiedades o ubicación de inmuebles.
Recent Comments