You are viewing a post by dhicks. View all 45 posts in [hr][hr] [align=center][b]FYI.[/b] Thread ini udah lama beud sbnr nya. Cuma skrg gw rapihin aja. Biar lebih enak di liat dan gampang di cari. Dan gw minta maap sblm nya buat member yg postingan nya mu.
[/align][/quote]
[b]Description[/b]
[quote]ini di kasih bro [url=http://profiles.friendster.com/andrydua]andry[/url]
sahabat terbaik kuwh... hheu... tenkyu pisan kang
script ini kyk bikin (membuka*) window baru ( [i]animated window opener[/i] ) pas kita click [b]"Post a Comments"[/b]
preview bisa di liad di profile nya bro
[b][url=http://profiles.friendster.com/andrydua]andry[/url][/b]
klik aja[b] "post a comments"[/b] di box comments nya
apa yang terjadi ??
ini script nya siap pake
[/quote]
[b]Code[/b]
[spoiler]function animatedkomen(){
document.getElementById("content_18").getElementsByTagName("div")[0].innerHTML="<div class=\"viewall\"><a href=\"#\" onClick=\"expandingWindow('http://www.friendster.com/comments.php?uid="+pageOwnerID+"');return false\">Post a Comment</a> | <a href=\"#\" onClick=\"expandingWindow('http://www.friendster.com/comments.php?uid="+pageOwnerID+"');return false\">View All (9999)</a></div>";
document.getElementById("content_18").getElementsByTagName("div")[22].innerHTML = "<div class=\"viewall\"><a href=\"#\" onClick=\"expandingWindow('http://www.friendster.com/comments.php?uid="+pageOwnerID+"');return false\">Post a Comment</a> | <a href=\"#\" onClick=\"expandingWindow('http://www.friendster.com/comments.php?uid="+pageOwnerID+"');return false\">View All (9999)</a></div>";
}
if (!attachOnLoadHandler(function(){animatedkomen()})) window.onload = function(){animatedkomen()};
function expandingWindow(website) {
var windowprops='width=100,height=100,scrollbars=yes,status=yes,resizable=yes'
var heightspeed = 2; // vertical scrolling speed (higher = slower)
var widthspeed = 7; // horizontal scrolling speed (higher = slower)
var leftdist = 10; // distance to left edge of window
var topdist = 10; // distance to top edge of window
if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = window.screen.availWidth - leftdist;
var winheight = window.screen.availHeight - topdist;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+ windowprops);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.location = website;
}
else
window.open(website,'mywindow');
}[/spoiler]
[b]Note[/b]
[quote]paste di .js kalian .....
script ini jalan di FF ama IE klo opera gak tau degh ... soalnya gak punya opera browser
[/quote]
Last edited by andHa (2008-07-19 04:50:20)