Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Pimp My Site! > LF freetransform/html box scroll bar script.
Josewales (New Admin) 12/28/2009 10:30 AM EST : LF freetransform/html box scroll bar script.
Josewales
Posts: 4064
Zomgawsh Poster

I am looking for a scroll bar script to place in free/html boxes simialr to the ventrilo script...

script type="text/javascript"    
var ventHeight = 296;    
    
$(document).ready(function(){    
 $('#instantventrilo').parent()    
  .css({'height':ventHeight+'px','overflow-y':'auto','overflow-x':'hidden'});    
})    
/script

I tried manipulating but no luck.

Thanx:)
TopBottom

Mottie (MVP) 1/4/2010 1:35 PM EST : RE: LF freetransform/html box scroll bar script.
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hi Josewales!

Try this script. I haven't had a chance to test it, but it should work.
<!--
********************************************
Add this to your code box
(in a free form text/HTML type content box).
********************************************
-->
<div class="scrollThisWidget"></div>
<script type="text/javascript">
$(document).ready(function(){

 // add the widget fixed height in pixels
 var widgetHeight = 300;

 // Don't modify the code below
 $('.scrollThisWidget').closest('.gpWidget').find('.blkContent')
  .css({'height':widgetHeight+'px','overflow-y':'auto','overflow-x':'hidden'});
})
</script>
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%