Pages: 1123456

  2008-02-03 00:05:17

andry
» FTalkAddict
FTalk Level: zero
514
0
1969-12-31

Re: [b]Description:[/b] Instead of just spawning a window, this script animates it into view, by expanding it horizontally then vertically until it fills the screen. :wallbash: :wallbash: :wallbash:

you can also add this code for personalized your comments or whatever lol lol ... :lol: [quote]function animatedkomen(){ document.getElementById("content_18").getElementsByTagName("div")[0].innerHTML="<div class=\"viewall\"><a href=\"#\" onClick=\"expandingWindow('http://www.friendster.com/comments.php?uid=[b]YOUR USERID[/b]');return false\">Post a Comment</a> | <a href=\"#\" onClick=\"expandingWindow('http://www.friendster.com/comments.php?uid=[b]YOUR USERID[/b]');return false\">View All ([b]9999[/b])</a></div>"; document.getElementById("content_18").getElementsByTagName("div")[22].innerHTML = "<div class=\"viewall\"><a href=\"#\" onClick=\"expandingWindow('http://www.friendster.com/comments.php?uid=[b]YOUR USERID[/b]');return false\">Post a Comment</a> | <a href=\"#\" onClick=\"expandingWindow('http://www.friendster.com/comments.php?uid=[b]YOUR USERID[/b]');return false\">View All ([b]9999[/b])</a></div>"; } if (!attachOnLoadHandler(function(){animatedkomen()})) window.onload = function(){animatedkomen()}; //no need to edit this code 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'); }[/quote] another quick comments method .. wahahaha :lol: :penguin: :penguin:

Last edited by andry (2008-02-03 01:13:10)

Pages: 1123456

Board footer

© 2024 F Talk

Current time is 18:23

[ 13 queries - 0.010 second ]
Privacy Policy