Pages: 12
) and also make your comment slide automatically. Just add this script into you main JS
[b]FF user script :[/b]
[spoiler]comLinks=content_18.getElementsByTagName("div")[0].innerHTML
document.getElementById("18").style.display="none"
navBg.innerHTML+="<div id='myComments' class='commonbox myComments'>"
+"<h2>Testimonials and Comments for "+pageOwnerFName+"</h2>"
+"<div id='content_myComments'>"
+"<div class='viewall'>"
+comLinks
+"</div>"
+"<div class='fitem1wrapper' id='fitem1wrapperCom'>"
+"</div>"
+"</div>"
+"</div>"
document.getElementById("6").parentNode.appendChild(myComments)
testiCount=0
slideTesti=new Array()
function getComments(){
a=content_18
b=a.getElementsByTagName('table')
for(x=0;x<b.length;x++){
slideTesti[x]=b[x].innerHTML
}
tickComments()
}
function tickComments(){
if(testiCount<b.length){
fitem1wrapperCom.innerHTML=slideTesti[testiCount]
testiCount++
if(testiCount==slideTesti.length){
testiCount=0
}
setTimeout("tickComments()",5000)
}
}
if(navigator.appName.indexOf("Netscape")!=-1){
getComments()
}
if (!attachOnLoadHandler(function(){COMMENTOR.init();})) window.onload = function(){COMMENTOR.init();};
if (typeof COMMENTOR == "undefined") { COMMENTOR = {}; }
COMMENTOR = {
comment: [],
init: function() {
this.comment = document.getElementById("content_myComments").getElementsByTagName("div")[0];
this.comment.innerHTML = "<div class=\"viewall\" id=\"quickreply\"><center>"+
"<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=\"100\" name=\"body\"></textarea>"+
"</td></tr><tr><td class=\"value\">"+
"<input readonly type=\"hidden\" name=\"inputcount\" size=\"4\" maxlength=\"4\" value=\"1000\">"+
"<input style='padding: 4px 0; margin: 10px 0 6px 0;font-family:Arial;font-weight:bold;color:#17728f;border:1px solid #196B91;background-color:#ffffff' 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\"> "+
"<input style='padding: 4px 0; margin: 10px 0 6px 0;font-family:Arial;font-weight:bold;color:#17728f;border:1px solid #196B91;background-color:#ffffff' class=\"cancelButtons\" type=\"reset\" name=\"cancel\" value=\"Clear\" maxlength=\"25\"><br>"+
"</td></tr></table></form></center></div><br><hr><br>";
}
};[/spoiler]
[b]IE user script :[/b]
[spoiler]comLinks=content_18.getElementsByTagName("div")[0].innerHTML
document.getElementById("18").style.display="none"
navBg.innerHTML+="<div id='myComments' class='commonbox myComments'>"
+"<h2>Testimonials and Comments for "+pageOwnerFName+"</h2>"
+"<div id='content_myComments'>"
+"<div class='viewall'>"
+comLinks
+"</div>"
+"<div class='fitem1wrapper' id='fitem1wrapperCom'>"
+"</div>"
+"</div>"
+"</div>"
document.getElementById("6").parentNode.appendChild(myComments)
testiCount=0
slideTesti=new Array()
function getComments(){
a=content_18
b=a.getElementsByTagName('table')
for(x=0;x<b.length;x++){
slideTesti[x]=b[x].innerHTML
}
tickComments()
}
function tickComments(){
if(testiCount<b.length){
fitem1wrapperCom.innerHTML=slideTesti[testiCount]
testiCount++
if(testiCount==slideTesti.length){
testiCount=0
}
setTimeout("tickComments()",5000)
}
}
getComments()
if (!attachOnLoadHandler(function(){COMMENTOR.init();})) window.onload = function(){COMMENTOR.init();};
if (typeof COMMENTOR == "undefined") { COMMENTOR = {}; }
COMMENTOR = {
comment: [],
init: function() {
this.comment = document.getElementById("content_myComments").getElementsByTagName("div")[0];
this.comment.innerHTML = "<div class=\"viewall\" id=\"quickreply\"><center>"+
"<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=\"100\" name=\"body\"></textarea>"+
"</td></tr><tr><td class=\"value\">"+
"<input readonly type=\"hidden\" name=\"inputcount\" size=\"4\" maxlength=\"4\" value=\"1000\">"+
"<input style='padding: 4px 0; margin: 10px 0 6px 0;font-family:Arial;font-weight:bold;color:#17728f;border:1px solid #196B91;background-color:#ffffff' 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\"> "+
"<input style='padding: 4px 0; margin: 10px 0 6px 0;font-family:Arial;font-weight:bold;color:#17728f;border:1px solid #196B91;background-color:#ffffff' class=\"cancelButtons\" type=\"reset\" name=\"cancel\" value=\"Clear\" maxlength=\"25\"><br>"+
"</td></tr></table></form></center></div><br><hr><br>";
}
};[/spoiler]
[b]Addition:[/b]
if you want to control the size of the images posted in your slide comment, just add this CSS extension :
[quote]#fitem1wrapperCom .data img {
width:[b]320[/b];
}[/quote]
Just edit the bold part OK. Happy tweaking FTalk'ers Last edited by KaNaLiTnUk (2008-10-14 12:38:11)
Last edited by lordheinz (2008-08-25 08:27:54)
thanks for sharing...
You're right LH. Angell and Feruzz are really great coders. I just try to make something new by using their codes coz I'm just a tweaker
[quote=kacang`z]nice bro......
thanks for sharing...
Last edited by KaNaLiTnUk (2008-08-25 10:11:40)
and is working in my profile
thanks 4 sharing the code senor kanalitnuk
Last edited by KaNaLiTnUk (2008-08-25 10:59:08)
thanks again
Last edited by gumscumbag (2008-08-25 22:47:09)
keep it up sir [b]KaNaLiTnUk[/b]
Last edited by mabuhay (2008-08-26 02:05:57)
...
.gif)
Last edited by Jur3 (2008-09-13 04:11:47)