[quote=Co_don SanAdH]var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "URL OF prototype.js HERE";
document.getElementsByTagName("head")[0].appendChild(myjs);
var jsmy = document.createElement("script");
jsmy.type = "text/javascript";
jsmy.src = "URL OF lightbox.js HERE";
document.getElementsByTagName("head")[0].appendChild(jsmy);[/quote]
under this i will put this
[spoiler]<">[/spoiler]
and it will look like this??
[spoiler]var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://h1.ripway.com/trystan95/prototype.js";
document.getElementsByTagName("head")[0].appendChild(myjs);
var jsmy = document.createElement("script");
jsmy.type = "text/javascript";
jsmy.src = "http://h1.ripway.com/trystan95/lightbox.js";
document.getElementsByTagName("head")[0].appendChild(jsmy);
// lightbox addcomment
inidivnih=document.getElementById("content_18").getElementsByTagName("div");
function addkomen(){
document.getElementById("content_18").getElementsByTagName("div")[0].innerHTML="<div class=\"viewall\"><a href=\"#lightbox1\" rel=\"lightbox1\" class=\"lbOn\">Post a Comment</a> | <a href=\"http://www.friendster.com/comments.php?uid="+pageOwnerID+"\">View all (99999)</a>";
document.getElementById("content_18").getElementsByTagName("div")[inidivnih.length-1].innerHTML="<div class=\"viewall\"><a href=\"#lightbox1\" rel=\"lightbox1\" class=\"lbOn\">Post a Comment</a> | <a href=\"http://www.friendster.com/comments.php?uid="+pageOwnerID+"\">View all (99999)</a>"+
"<div id=\"lightbox1\" class=\"leightbox\">"+
"<div align=\"center\" class=\"data\">"+
"<div class=\"viewall\" id=\"quickreply\">"+
"<span class=\"typehere\">Post you comments here <a href=\"http://profiles.friendster.com/"+pageViewerID+"\" target=\"_blank\">"+pageViewerFName+"</a></span><br>"+
"<form name=\"testimonial_form\" method=\"post\">"+
"<input type=\"hidden\" name=\"testimonial_firstname\" value=\""+pageOwnerFName+"\">"+
"<input type=\"hidden\" name=\"testimonial_uid\" value=\""+pageViewerID+"\">"+
"<input type=\"hidden\" name=\"_submitted\" value=\"1\">"+
"<table class=\"formtable\"><tr><td class=\"value\">"+
"<textarea id=\"thingy\" rows=\"5\" cols=\"60\" name=\"body\"></textarea>"+
"</td></tr><tr><td class=\"value\">"+
"<input readonly type=\"hidden\" name=\"inputcount\" size=\"4\" maxlength=\"4\" value=\"1000\">"+
"<input class=\"addcomm\" type=\"button\" name=\"Submit\" onMouseOver=\"window.status='Post';return true;\" onClick=\"document.testimonial_form.action='http://www.friendster.com/testimonials.php?uid="+pageOwnerID+"&action=add';document.testimonial_form.submit();\" value=\"Submit\" title=\"Send\">"+
"<input class=\"addcomm\" type=\"reset\" name=\"cancel\" value=\"Clear\" maxlength=\"25\" title=\"Clear\"><br>"+
"</td></tr></table></form><br><a href=\"#\" class=\"lbAction\" rel=\"deactivate\">Close X</a></div><hr><br></div>";
}
if (!attachOnLoadHandler(function(){addkomen()})) window.onload = function(){addkomen()};[/spoiler]
