Hi, I have a "Roaming Companion" on my site and I would like to fix its size and disable the expand and maximize functions. I assume it's in the Javascript rather than the HTML or CSS but do tell me if i'm wrong.
Code:
// JavaScript Document
function doPopups() {
if (!document.getElementsByTagName) return false;
var links=document.getElementsByTagName("a");
for (var i=0; i < links.length; i++) {
if (links[i].className.match("popup")) {
links[i].onclick=function() {
// Below - to open a full-sized window, just use: window.open(this.href);
window.open(this.href, "", "top=40,left=40,width=230,height=350");
return false;
}
}
}
}
window.onload=doPopups;
|