Add this:
Code:
var xht = (function() {
if(typeof ActiveXObject == "undefined" && typeof XMLHttpRequest == "undefined") return null;
var xmlhttp;
/*@cc_on
@if (@_jscript_version >= 5) {
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
}
@else xmlhttp = null;
@end @*/
if (xmlhttp == null && typeof XMLHttpRequest != 'undefined') {
try {
xmlhttp = new XMLHttpRequest();
} catch (e) {
xmlhttp = null;
}
}
return xmlhttp;
})();
Take this function:
Code:
function ddrivetip(thetext, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}
Replace it with this:
Code:
function ddrivetip(theurl, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
if(xht) {
xht.open("GET", theurl, false);
xht.send(null);
tipobj.innerHTML = xht.responseText;
} else tipobj.innerHTML = "Unfortunately, an error has occurred. Please report this to the site administrators, including the browser you were using at the time and what you were attempting to do.";
enabletip=true
return false
}
}
Use the URL to your Perl script instead of the text to display.
Bookmarks