• Page 1 of 1
  • 1
UcozBaze All Scripts And Templates » Scripts and Coding » Social Bookmarks » Floating Google +1, Facebook, Twitter Buttons (Floating Google +1, Facebook, Twitter Buttons)
Floating Google +1, Facebook, Twitter Buttons
interoutDate: Thursday, 2011-09-22, 8:41 PM | Message # 1
Group: Administrators
Messages: 1027
34


1.Go Main » Customize design » Editing templates » Common templates » Style sheet (CSS)
Add This Code In any Place
Code

#floatdiv {        
           position:absolute;        
           width:94px;        
           height:229px;        
           top:0;        
           left:0;        
               z-index:100        
}

#ucausesidebar {        
               border:1px solid #ddd;        
               padding-left:5px;        
           position:relative;        
           height:220px;        
           width:55px;        
           margin:0 0 0 5px;        
}


2.Main » Customize design » Editing templates » Forum » General appearance of forum pages
Find

Code
</body>


Add Before This Code
Code

<div id="floatdiv">        
<div id="ucausesidebar">        
           <table cellpadding="1px" cellspacing="0">
           <tr>        
           <td style="border-bottom: 1px solid #E8E8E8; padding:5px 0 2px 0;">        
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="" send="false" layout="box_count" show_faces="false" font=""></fb:like>        
           </td>        
           </tr>
           <tr>        
           <td style="border-bottom: 1px solid #E8E8E8; padding:5px 0px;">        
<g:plusone size="Tall" expr:href="data:post.url"/>        
           </g:plusone></td>        
           </tr>
           <tr>        
           <td style="border-bottom: 0px solid #E8E8E8; padding:5px 0 0px 0;">
<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="masoodalam51">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>        
           </td>        
           </tr>
           <tr>        
           <td style="border-bottom: 0px solid #E8E8E8; padding:0px 0 0px 0;">   
           </td>        
           </tr>
           </table>        
</div>        
</div>        
<script type="text/javascript">        
// JavaScript Document

          <!--        
var floatingMenuId = 'floatdiv';        
var floatingMenu =        
{        
           targetX: 0,        
           targetY: 300,
           hasInner: typeof(window.innerWidth) == 'number',        
           hasElement: typeof(document.documentElement) == 'object'        
               && typeof(document.documentElement.clientWidth) == 'number',
           menu:        
               document.getElementById        
               ? document.getElementById(floatingMenuId)        
               : document.all        
                 ? document.all[floatingMenuId]        
                 : document.layers[floatingMenuId]        
};
floatingMenu.move = function ()        
{        
           floatingMenu.menu.style.left = floatingMenu.nextX + 'px';        
           floatingMenu.menu.style.top = floatingMenu.nextY + 'px';        
}
floatingMenu.computeShifts = function ()        
{        
           var de = document.documentElement;
           floatingMenu.shiftX =         
               floatingMenu.hasInner         
               ? pageXOffset         
               : floatingMenu.hasElement         
                 ? de.scrollLeft         
                 : document.body.scrollLeft;         
           if (floatingMenu.targetX < 0)        
           {        
               floatingMenu.shiftX +=        
                   floatingMenu.hasElement        
                   ? de.clientWidth        
                   : document.body.clientWidth;        
           }
           floatingMenu.shiftY =        
               floatingMenu.hasInner        
               ? pageYOffset        
               : floatingMenu.hasElement        
                 ? de.scrollTop        
                 : document.body.scrollTop;        
           if (floatingMenu.targetY < 0)        
           {        
               if (floatingMenu.hasElement && floatingMenu.hasInner)        
               {        
                   // Handle Opera 8 problems        
                   floatingMenu.shiftY +=        
                       de.clientHeight > window.innerHeight        
                       ? window.innerHeight        
                       : de.clientHeight        
               }        
               else        
               {        
                   floatingMenu.shiftY +=        
                       floatingMenu.hasElement        
                       ? de.clientHeight        
                       : document.body.clientHeight;        
               }        
           }        
}
floatingMenu.calculateCornerX = function()        
{        
           if (floatingMenu.targetX != 'center')        
               return floatingMenu.shiftX + floatingMenu.targetX;
           var width = parseInt(floatingMenu.menu.offsetWidth);
           var cornerX =        
               floatingMenu.hasElement        
               ? (floatingMenu.hasInner        
                  ? pageXOffset        
                  : document.documentElement.scrollLeft) +        
                 (document.documentElement.clientWidth - width)/2        
               : document.body.scrollLeft +        
                 (document.body.clientWidth - width)/2;        
           return cornerX;        
};
floatingMenu.calculateCornerY = function()        
{        
           if (floatingMenu.targetY != 'center')        
               return floatingMenu.shiftY + floatingMenu.targetY;
           var height = parseInt(floatingMenu.menu.offsetHeight);
           // Handle Opera 8 problems        
           var clientHeight =        
               floatingMenu.hasElement && floatingMenu.hasInner        
               && document.documentElement.clientHeight        
                   > window.innerHeight        
               ? window.innerHeight        
               : document.documentElement.clientHeight
           var cornerY =        
               floatingMenu.hasElement        
               ? (floatingMenu.hasInner         
                  ? pageYOffset        
                  : document.documentElement.scrollTop) +        
                 (clientHeight - height)/2        
               : document.body.scrollTop +        
                 (document.body.clientHeight - height)/2;        
           return cornerY;        
};
floatingMenu.doFloat = function()        
{        
           // Check if reference to menu was lost due        
           // to ajax manipuations        
           if (!floatingMenu.menu)        
           {        
               menu = document.getElementById        
                   ? document.getElementById(floatingMenuId)        
                   : document.all        
                     ? document.all[floatingMenuId]        
                     : document.layers[floatingMenuId];
               initSecondary();        
           }
           var stepX, stepY;
           floatingMenu.computeShifts();
           var cornerX = floatingMenu.calculateCornerX();
           var stepX = (cornerX - floatingMenu.nextX) * .07;        
           if (Math.abs(stepX) < .5)        
           {        
               stepX = cornerX - floatingMenu.nextX;        
           }
           var cornerY = floatingMenu.calculateCornerY();
           var stepY = (cornerY - floatingMenu.nextY) * .07;        
           if (Math.abs(stepY) < .5)        
           {        
               stepY = cornerY - floatingMenu.nextY;        
           }
           if (Math.abs(stepX) > 0 ||        
               Math.abs(stepY) > 0)        
           {        
               floatingMenu.nextX += stepX;        
               floatingMenu.nextY += stepY;        
               floatingMenu.move();        
           }
           setTimeout('floatingMenu.doFloat()', 20);        
};
// addEvent designed by Aaron Moore        
floatingMenu.addEvent = function(element, listener, handler)        
{        
           if(typeof element[listener] != 'function' ||        
              typeof element[listener + '_num'] == 'undefined')        
           {        
               element[listener + '_num'] = 0;        
               if (typeof element[listener] == 'function')        
               {        
                   element[listener + 0] = element[listener];        
                   element[listener + '_num']++;        
               }        
               element[listener] = function(e)        
               {        
                   var r = true;        
                   e = (e) ? e : window.event;        
                   for(var i = element[listener + '_num'] -1; i >= 0; i--)        
                   {        
                       if(element[listener + i](e) == false)        
                           r = false;        
                   }        
                   return r;        
               }        
           }
           //if handler is not already stored, assign it        
           for(var i = 0; i < element[listener + '_num']; i++)        
               if(element[listener + i] == handler)        
                   return;        
           element[listener + element[listener + '_num']] = handler;        
           element[listener + '_num']++;        
};
floatingMenu.init = function()        
{        
           floatingMenu.initSecondary();        
           floatingMenu.doFloat();        
};
// Some browsers init scrollbars only after        
// full document load.        
floatingMenu.initSecondary = function()        
{        
           floatingMenu.computeShifts();        
           floatingMenu.nextX = floatingMenu.calculateCornerX();        
           floatingMenu.nextY = floatingMenu.calculateCornerY();        
           floatingMenu.move();        
}
if (document.layers)        
           floatingMenu.addEvent(window, 'onload', floatingMenu.init);        
else        
{        
           floatingMenu.init();        
           floatingMenu.addEvent(window, 'onload',        
               floatingMenu.initSecondary);        
}
//-->
</script>


Make these changes:
Replacemasoodalam51 with your Twitter username

If you have already added the Google +1 Button somewhere in your blog then you may skip Next Step.
Main » Customize design » Editing templates » Forum » General appearance of forum pages
Find

Code
</body>


Add Before This Code

Code
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>


 
Message


1.Go Main » Customize design » Editing templates » Common templates » Style sheet (CSS)
Add This Code In any Place
Code

#floatdiv {        
           position:absolute;        
           width:94px;        
           height:229px;        
           top:0;        
           left:0;        
               z-index:100        
}

#ucausesidebar {        
               border:1px solid #ddd;        
               padding-left:5px;        
           position:relative;        
           height:220px;        
           width:55px;        
           margin:0 0 0 5px;        
}


2.Main » Customize design » Editing templates » Forum » General appearance of forum pages
Find

Code
</body>


Add Before This Code
Code

<div id="floatdiv">        
<div id="ucausesidebar">        
           <table cellpadding="1px" cellspacing="0">
           <tr>        
           <td style="border-bottom: 1px solid #E8E8E8; padding:5px 0 2px 0;">        
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="" send="false" layout="box_count" show_faces="false" font=""></fb:like>        
           </td>        
           </tr>
           <tr>        
           <td style="border-bottom: 1px solid #E8E8E8; padding:5px 0px;">        
<g:plusone size="Tall" expr:href="data:post.url"/>        
           </g:plusone></td>        
           </tr>
           <tr>        
           <td style="border-bottom: 0px solid #E8E8E8; padding:5px 0 0px 0;">
<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="masoodalam51">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>        
           </td>        
           </tr>
           <tr>        
           <td style="border-bottom: 0px solid #E8E8E8; padding:0px 0 0px 0;">   
           </td>        
           </tr>
           </table>        
</div>        
</div>        
<script type="text/javascript">        
// JavaScript Document

          <!--        
var floatingMenuId = 'floatdiv';        
var floatingMenu =        
{        
           targetX: 0,        
           targetY: 300,
           hasInner: typeof(window.innerWidth) == 'number',        
           hasElement: typeof(document.documentElement) == 'object'        
               && typeof(document.documentElement.clientWidth) == 'number',
           menu:        
               document.getElementById        
               ? document.getElementById(floatingMenuId)        
               : document.all        
                 ? document.all[floatingMenuId]        
                 : document.layers[floatingMenuId]        
};
floatingMenu.move = function ()        
{        
           floatingMenu.menu.style.left = floatingMenu.nextX + 'px';        
           floatingMenu.menu.style.top = floatingMenu.nextY + 'px';        
}
floatingMenu.computeShifts = function ()        
{        
           var de = document.documentElement;
           floatingMenu.shiftX =         
               floatingMenu.hasInner         
               ? pageXOffset         
               : floatingMenu.hasElement         
                 ? de.scrollLeft         
                 : document.body.scrollLeft;         
           if (floatingMenu.targetX < 0)        
           {        
               floatingMenu.shiftX +=        
                   floatingMenu.hasElement        
                   ? de.clientWidth        
                   : document.body.clientWidth;        
           }
           floatingMenu.shiftY =        
               floatingMenu.hasInner        
               ? pageYOffset        
               : floatingMenu.hasElement        
                 ? de.scrollTop        
                 : document.body.scrollTop;        
           if (floatingMenu.targetY < 0)        
           {        
               if (floatingMenu.hasElement && floatingMenu.hasInner)        
               {        
                   // Handle Opera 8 problems        
                   floatingMenu.shiftY +=        
                       de.clientHeight > window.innerHeight        
                       ? window.innerHeight        
                       : de.clientHeight        
               }        
               else        
               {        
                   floatingMenu.shiftY +=        
                       floatingMenu.hasElement        
                       ? de.clientHeight        
                       : document.body.clientHeight;        
               }        
           }        
}
floatingMenu.calculateCornerX = function()        
{        
           if (floatingMenu.targetX != 'center')        
               return floatingMenu.shiftX + floatingMenu.targetX;
           var width = parseInt(floatingMenu.menu.offsetWidth);
           var cornerX =        
               floatingMenu.hasElement        
               ? (floatingMenu.hasInner        
                  ? pageXOffset        
                  : document.documentElement.scrollLeft) +        
                 (document.documentElement.clientWidth - width)/2        
               : document.body.scrollLeft +        
                 (document.body.clientWidth - width)/2;        
           return cornerX;        
};
floatingMenu.calculateCornerY = function()        
{        
           if (floatingMenu.targetY != 'center')        
               return floatingMenu.shiftY + floatingMenu.targetY;
           var height = parseInt(floatingMenu.menu.offsetHeight);
           // Handle Opera 8 problems        
           var clientHeight =        
               floatingMenu.hasElement && floatingMenu.hasInner        
               && document.documentElement.clientHeight        
                   > window.innerHeight        
               ? window.innerHeight        
               : document.documentElement.clientHeight
           var cornerY =        
               floatingMenu.hasElement        
               ? (floatingMenu.hasInner         
                  ? pageYOffset        
                  : document.documentElement.scrollTop) +        
                 (clientHeight - height)/2        
               : document.body.scrollTop +        
                 (document.body.clientHeight - height)/2;        
           return cornerY;        
};
floatingMenu.doFloat = function()        
{        
           // Check if reference to menu was lost due        
           // to ajax manipuations        
           if (!floatingMenu.menu)        
           {        
               menu = document.getElementById        
                   ? document.getElementById(floatingMenuId)        
                   : document.all        
                     ? document.all[floatingMenuId]        
                     : document.layers[floatingMenuId];
               initSecondary();        
           }
           var stepX, stepY;
           floatingMenu.computeShifts();
           var cornerX = floatingMenu.calculateCornerX();
           var stepX = (cornerX - floatingMenu.nextX) * .07;        
           if (Math.abs(stepX) < .5)        
           {        
               stepX = cornerX - floatingMenu.nextX;        
           }
           var cornerY = floatingMenu.calculateCornerY();
           var stepY = (cornerY - floatingMenu.nextY) * .07;        
           if (Math.abs(stepY) < .5)        
           {        
               stepY = cornerY - floatingMenu.nextY;        
           }
           if (Math.abs(stepX) > 0 ||        
               Math.abs(stepY) > 0)        
           {        
               floatingMenu.nextX += stepX;        
               floatingMenu.nextY += stepY;        
               floatingMenu.move();        
           }
           setTimeout('floatingMenu.doFloat()', 20);        
};
// addEvent designed by Aaron Moore        
floatingMenu.addEvent = function(element, listener, handler)        
{        
           if(typeof element[listener] != 'function' ||        
              typeof element[listener + '_num'] == 'undefined')        
           {        
               element[listener + '_num'] = 0;        
               if (typeof element[listener] == 'function')        
               {        
                   element[listener + 0] = element[listener];        
                   element[listener + '_num']++;        
               }        
               element[listener] = function(e)        
               {        
                   var r = true;        
                   e = (e) ? e : window.event;        
                   for(var i = element[listener + '_num'] -1; i >= 0; i--)        
                   {        
                       if(element[listener + i](e) == false)        
                           r = false;        
                   }        
                   return r;        
               }        
           }
           //if handler is not already stored, assign it        
           for(var i = 0; i < element[listener + '_num']; i++)        
               if(element[listener + i] == handler)        
                   return;        
           element[listener + element[listener + '_num']] = handler;        
           element[listener + '_num']++;        
};
floatingMenu.init = function()        
{        
           floatingMenu.initSecondary();        
           floatingMenu.doFloat();        
};
// Some browsers init scrollbars only after        
// full document load.        
floatingMenu.initSecondary = function()        
{        
           floatingMenu.computeShifts();        
           floatingMenu.nextX = floatingMenu.calculateCornerX();        
           floatingMenu.nextY = floatingMenu.calculateCornerY();        
           floatingMenu.move();        
}
if (document.layers)        
           floatingMenu.addEvent(window, 'onload', floatingMenu.init);        
else        
{        
           floatingMenu.init();        
           floatingMenu.addEvent(window, 'onload',        
               floatingMenu.initSecondary);        
}
//-->
</script>


Make these changes:
Replacemasoodalam51 with your Twitter username

If you have already added the Google +1 Button somewhere in your blog then you may skip Next Step.
Main » Customize design » Editing templates » Forum » General appearance of forum pages
Find

Code
</body>


Add Before This Code

Code
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

Author - interout
Date Added - 2011-09-22 в 8:41 PM
UcozBaze All Scripts And Templates » Scripts and Coding » Social Bookmarks » Floating Google +1, Facebook, Twitter Buttons (Floating Google +1, Facebook, Twitter Buttons)
  • Page 1 of 1
  • 1
Search:
                                                               
Statistics Forum
New Posts Popular topic Top Forum Users New User

type list Appearance of entries movie site for uCoz (0)
type list Google preloader on pure CSS ucoz (0)
type list Pre-Loader for a site on pure CSS (Transition) ucoz (0)
type list Script to disable the F12 key and right-click ucoz (0)
type list Animated button for downloading using SVG and Vue UCOZ (0)
type list Top Forum Users ucoz (0)
type list Snow script for your website ucoz (0)
type list Original watch without digits ucoz (0)
type list Bookmark Buttons Generator (0)
type list Automatically add tags for all uCoz modules (6)
type list How to customize the design of the site for mobile version (3)
type list Video player for uCoz (3)
type list Auto Youtube Trailers for Ucoz Movies Web (0)
type list Pranešimai skrti jums yra matomi Tag Board Ucoz skriptas (1)
type list Why can’t I copy large files over 4GB to my USB flash drive (0)
type list Forumo Informatorius (2)
type list Pereiti i kita puslapi forume 1.2.3. Ucoz skriptas (1)

type list Skaiciuojam nuo 1 iki 1000 ! (557)
type list Forum SignatureBar (60)
type list Avatars (22)
type list Juokingos Fotkes :) (19)
type list Kaip pakeisti paveiksla mazas? (19)
type list Mini-Chatas islendantis is sono ucoz (15)
type list Mp3-Tau.do.am (13)
type list Шаблон форума для ucoz For-css (12)
type list Ucoz script - favicon (11)
type list Megsti samp? Ateik cia (10)
type list Button scrolling up ucoz (10)
type list Slider KinoPlius Help to setup :) (10)
type list Apklausa Jūsų Svetainei New ucoz (10)
type list KinoPlius (9)
type list SexMergytes.do.am (9)
type list Money for the forum ucoz (9)
type list 11.17.2011 (9)
type list Puslapis "Atliekami techniniai darbai" Ucoz scriptas (9)
type list User personal Page ucoz (8)
interout
Forum Posts: 1027
Comments: 51
Reputation: 83
Rank:
GoblinaS
Forum Posts: 380
Comments: 15
Reputation: 25
Rank:
Adi
Forum Posts: 179
Comments: 11
Reputation: 23
Rank:
Esquire
Forum Posts: 147
Comments: 8
Reputation: 5
Rank:
BAtman
Forum Posts: 129
Comments: 1
Reputation: 18
Rank:
WaSHkaZ
Forum Posts: 83
Comments: 0
Reputation: 3
Rank:
Skacikas
Forum Posts: 71
Comments: 0
Reputation: 12
Rank:
meskis
Forum Posts: 51
Comments: 0
Reputation: 25
Rank:
Gytenas
Forum Posts: 51
Comments: 0
Reputation: 1
Rank:
vicka
Forum Posts: 50
Comments: 1
Reputation: 4
Rank:
Samartinean
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
Азиза_Азизи
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
woscs1-6
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
Matruka
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
ArEzO
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
masterkmv74
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
bloody-warrior1
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
constantinm188
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
doctor_server
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:
paynergroup
Forum Posts: 0
Comments: 0
Reputation: 0
Rank:


Site design by uCozBaze
uCozBaze © 2011-2016