PHP interesse |
|
Ik heb de volgende code:
function nb_close(titel) {
var div = document.getElementById("nb_"+titel);
div.style.display = "none";
document.getElementById("nbbg_"+titel).style.display = "none";
var div2 = document.getElementById("nbbg_"+titel);
document.body.removeChild(div);
document.body.removeChild(div2);
}
function nb_min(titel, text) {
var div = document.getElementById("title_"+titel);
div.innerHTML = "";
var myMorph = new Fx.Morph('title_'+titel, {wait: false});
myMorph.start('smalltitle');
div.innerHTML = "<a onclick=\"javascript:nb_max('"+titel+"','"+text+"');\">+</a> <a onclick=\"javascript:nb_close('"+titel+"');\">x</a>";
}
function nb_max(titel, text) {
var myMorph = new Fx.Morph('title_'+titel, {wait: false});
myMorph.start('title');
}
function newsbox(titel, text) {
var div = document.createElement("div");
var bg = document.createElement("div");
div.setAttribute("id", "nb_"+titel);
bg.setAttribute("id", "nbbg_"+titel);
document.body.appendChild(div);
document.body.appendChild(bg);
document.getElementById("nbbg_"+titel).className = "newsboxbg";
document.getElementById("nb_"+titel).className = "newsbox";
document.getElementById("nbbg_"+titel).style.display = "block";
document.getElementById("nb_"+titel).innerHTML = "<div class='box'><iframe src='"+text+"' width='100%' height='100%' frameborder='0'></iframe></div><div class='title' id='title_"+titel+"'><b>"+text+"</b><br />"+titel+"<span style='margin-top: -30px; float: right;'><a onclick=\"javascript:nb_min('"+titel+"','"+text+"');\">-</a> <a onclick=\"javascript:nb_close('"+titel+"');\">x</a></span></div>";
}
function nb_close(titel) { var div = document.getElementById("nb_"+titel); div.style.display = "none"; document.getElementById("nbbg_"+titel).style.display = "none"; var div2 = document.getElementById("nbbg_"+titel); document.body.removeChild(div); document.body.removeChild(div2); } function nb_min(titel, text) { var div = document.getElementById("title_"+titel); div.innerHTML = ""; var myMorph = new Fx.Morph('title_'+titel, {wait: false}); myMorph.start('smalltitle'); div.innerHTML = "<a onclick=\"javascript:nb_max('"+titel+"','"+text+"');\">+</a> <a onclick=\"javascript:nb_close('"+titel+"');\">x</a>"; } function nb_max(titel, text) { var myMorph = new Fx.Morph('title_'+titel, {wait: false}); myMorph.start('title'); } function newsbox(titel, text) { var div = document.createElement("div"); var bg = document.createElement("div"); div.setAttribute("id", "nb_"+titel); bg.setAttribute("id", "nbbg_"+titel); document.body.appendChild(div); document.body.appendChild(bg); document.getElementById("nbbg_"+titel).className = "newsboxbg"; document.getElementById("nb_"+titel).className = "newsbox"; document.getElementById("nbbg_"+titel).style.display = "block"; document.getElementById("nb_"+titel).innerHTML = "<div class='box'><iframe src='"+text+"' width='100%' height='100%' frameborder='0'></iframe></div><div class='title' id='title_"+titel+"'><b>"+text+"</b><br />"+titel+"<span style='margin-top: -30px; float: right;'><a onclick=\"javascript:nb_min('"+titel+"','"+text+"');\">-</a> <a onclick=\"javascript:nb_close('"+titel+"');\">x</a></span></div>"; }
in ff werkt dit goed, maar in ie niet, de functie nb_min moet ervoor zorgen dat de div langzaam veranderd, in ff gebeurd dit dus, maar in ie verdwijnt alleen de tekst en krijg ik de volgende error: this.target.nodeType is leeg of geen object
ps: het mootools bestand: http://pastebin.be/9800
|