shoutbox.js remove scrolling effect

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   shoutbox.js remove scrolling effect
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
I hate scrolling things. I would like to stop the scroll on this box and make have it with a scrollbar. Maybe an small iframe.

Anyway here is the part of the shoutbox.js that I think controls the scroll
Original Javascript code by dynamic drive, modified by SuperCat http://www.ourscripts.net
Cross browser Marquee II-  Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS, visit http://www.dynamicdrive.com
Credit MUST stay intact
*/
var SBspeed=1;
var SBiedom=document.all||document.getElementById;
var SBactualheight='';
var SBcross_marquee, SBns_marquee;
if(SBiedom){
   SBtxt='<div style="position:relative;width:100%;height:'+SBheight+';overflow:hidden" onmouseover="SBspeed=0" onmouseout="SBspeed=1"><div id="SBiemarquee" style="position:absolute;left:0px;top:0px;width:100%;"></div></div>';
}else{
   SBtxt='<ilayer width=100% height='+SBheight+' name="SBns_marquee"><layer name="SBns_marquee2" width=100% height='+SBheight+' left=0 top=0 onmouseover="SBspeed=0" onmouseout="SBspeed=1"></layer></ilayer>';
}
function SBscroll(){
   if(SBiedom){
      if(parseInt(SBcross_marquee.style.top)>(SBactualheight*(-1)+2)){
         SBcross_marquee.style.top=parseInt(SBcross_marquee.style.top)-SBspeed+"px";
      }else{
         SBcross_marquee.style.top=parseInt(SBheight)+2+"px";
      }
   }
   else{
      if(SBns_marquee.top>(SBactualheight*(-1)+2)){
         SBns_marquee.top-=SBspeed;
      }else{
         SBns_marquee.top=parseInt(SBheight)+2;
      }
   }
}
function changeBoxSize(showhide) {
document.getElementById('smilies_hide').style.display='none';
document.getElementById('smilies_show').style.display='none';
document.getElementById('smilies_'+showhide).style.display='block';
}
function SBpopulate(){
   if(SBiedom){
      SBcross_marquee=document.getElementById? document.getElementById("SBiemarquee") : document.all.SBiemarquee;
      SBcross_marquee.style.top=parseInt(SBheight)+8+"px";
      SBcross_marquee.innerHTML=SBcontent;
      SBactualheight=SBcross_marquee.offsetHeight;
   }else{
      SBns_marquee=document.SBns_marquee.document.SBns_marquee2;
      SBns_marquee.top=parseInt(SBheight)+8;
      SBns_marquee.document.write(SBcontent);
      SBns_marquee.document.close();
      SBactualheight=SBns_marquee.document.height;
   }
   this.setInterval("SBscroll()",50);
}
window.onload=allonloads;



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,440
   
Try this one:


/*
Original Javascript code by dynamic drive, modified by SuperCat http://www.ourscripts.net
Cross browser Marquee II-  Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS, visit http://www.dynamicdrive.com
Credit MUST stay intact
*/
var SBspeed=1;
var SBiedom=document.all||document.getElementById;
var SBactualheight='';
var SBcross_marquee, SBns_marquee;
if(SBiedom){
   SBtxt='<div id="SBiemarquee" style="position:absolute; border: 0pt none; height: 100px; width: 100%; overflow: auto;"></div>';
}else{
   SBtxt='<ilayer width=100% height='+SBheight+' name="SBns_marquee"><layer name="SBns_marquee2" width=100% height='+SBheight+' left=0 top=0 onmouseover="SBspeed=0" onmouseout="SBspeed=1"></layer></ilayer>';
}
function SBscroll(){
   if(SBiedom){
      if(parseInt(SBcross_marquee.style.top)>(SBactualheight*(-1)+2)){
         SBcross_marquee.style.top=parseInt(SBcross_marquee.style.top)-SBspeed+"px";
      }else{
         SBcross_marquee.style.top=parseInt(SBheight)+2+"px";
      }
   }
   else{
      if(SBns_marquee.top>(SBactualheight*(-1)+2)){
         SBns_marquee.top-=SBspeed;
      }else{
         SBns_marquee.top=parseInt(SBheight)+2;
      }
   }
}
function changeBoxSize(showhide) {
document.getElementById('smilies_hide').style.display='none';
document.getElementById('smilies_show').style.display='none';
document.getElementById('smilies_'+showhide).style.display='block';
}
function SBpopulate(){
   if(SBiedom){
      SBcross_marquee=document.getElementById? document.getElementById("SBiemarquee") : document.all.SBiemarquee;
      SBcross_marquee.style.top=parseInt(SBheight)+8+"px";
      SBcross_marquee.innerHTML=SBcontent;
      SBactualheight=SBcross_marquee.offsetHeight;
   }else{
      SBns_marquee=document.SBns_marquee.document.SBns_marquee2;
      SBns_marquee.top=parseInt(SBheight)+8;
      SBns_marquee.document.write(SBcontent);
      SBns_marquee.document.close();
      SBactualheight=SBns_marquee.document.height;
   }
   this.setInterval("SBscroll()",50);
}
window.onload=allonloads;




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum