Pages: 123456..6

  2008-01-28 21:30:23

blurrycloud
» FTalkAgent
FTalk Level: zero
2177
0
1969-12-31

[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:

[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: [b]In a simple explanation:[/b] This Tweak will pop a new page/window :lol: :lol: Credits: [b]DynamicDrive[/b] :thumbsup: =) Insert this code inside your onload handler [quote]var FtalkRules; try {FtalkRules = document.createElement("div"); } catch (e) {FtalkRules = document.createElement("<div>"); } FtalkRules.setAttribute("style","text-align:center;padding-top: 5px"); FtalkRules.innerHTML = "<br><div align=\"center\"><input type=\"button\" value=\"[b]BUTTON LABEL[/b]\" onClick=\"expandingWindow('[b]URL OF NEW WINDOW[/b]')\"></div>"; document.getElementById("controlPanelButtons").parentNode.appendChild(FtalkRules);[/quote] Just edit the bold part [quote]Ex: :arrow: Url of new window: http://theftalk.com :arrow: Button Label: FriendsterTalk[/quote] Then Place this code under your js codes... <">That's It your done .... very simple tweak... thanks [quote](Just click the button([b]FriendsterTalk[/b]) under controlpanel buttons to see the effect)[/quote] ........... Animated Comment Opener Credits for additional idea :arrow: [b]andry[/b] [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]UR_USERID[/b]');return false\">Post a Comment</a> | <a href=\"#\" onClick=\"expandingWindow('http://www.friendster.com/comments.php?uid=[b]UR_USERID[/b]');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=[b]UR_USERID[/b]');return false\">Post a Comment</a> | <a href=\"#\" onClick=\"expandingWindow('http://www.friendster.com/comments.php?uid=[b]UR_USERID[/b]');return false\">View All (9999)</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]

Last edited by blurrycloud (2008-09-13 07:02:23)

Pages: 123456..6

Board footer

© 2024 F Talk

Current time is 13:54

[ 12 queries - 0.028 second ]
Privacy Policy