php forum
php mysql forum
php mysql smarty
 
Topic Options
#109912 - 07/02/04 09:57 AM Javascript Scroller Loop Help
havoq Offline
Member

Registered: 09/11/01
Posts: 667
Loc: MI
I need help to make this script automatically loop and not stop after its done scrolling. Upon load, I want it to begin scrolling and right now it doesn't.

http://www.gdevresources.com/Pages/Scripts/Dynamicscroller/DScroller.shtml

Its the SINGLE SCROLLER demo

any help to make it loop upon start and finish?
_________________________
-Jon
I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know wink
Where I continue to hack, even though it's a state of mind

Top
#109913 - 07/06/04 05:42 PM Re: Javascript Scroller Loop Help
havoq Offline
Member

Registered: 09/11/01
Posts: 667
Loc: MI
Ok well I figured that part out. However now -->

Everytime I click on Bold, Italic etc, in sentence 2 3 4 or whatever. The javascript command puts it in textarea 1 instead of 2 3 or 4.

How can I make it so that, if I click on Bold, Italic etc, the appropriate command will goto the appropriate textarea??

Code:
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function View(form) {
msg=open("","DisplayWindow","status=1,scrollbars=1");
msg.document.write(form.Text2.value);
}
function Generate(form) {
var txt="<html><HEAD><TITLE>"+form.Name.value+"</TITLE></HEAD>rn";
txt+="</font></body></html>";
form.Text2.value=txt;
}
function AddText(form, Action){
var AddTxt="";
var txt="";

if(Action==4) {  
txt=prompt("Text to be made BOLD.","Text");     
if(txt!=null)           
AddTxt="<b>"+txt+"</b>";        
}
if(Action==5) {  
txt=prompt("Text to be italicized","Text");     
if(txt!=null)           
AddTxt="<i>"+txt+"</i>";        
}
if(Action==6) AddTxt="rn

";
if(Action==7) AddTxt="
rn";
if(Action==8) AddTxt="<hr>rn";
if(Action==9) {  
txt=prompt("URL for the link.","http://");      
if(txt!=null){          
AddTxt="<a href="+txt+">";              
txt=prompt("Text to be show for the link","Text");              
AddTxt+=txt+"</a>rn";         
   }
}
if(Action==10) { 
txt=prompt("URL for graphic","URL");    
if(txt!=null)           
AddTxt="<img src="+txt+">rn"; 
}
if(Action==11) {  
txt=prompt("Text to be made Underline.","Text");     
if(txt!=null)           
AddTxt="<u>"+txt+"</u>";        
}

form.sent1.value+=AddTxt; 

}

// End -->
</SCRIPT>
Code:
	<table border='1' width='50%' align='left' cellspacing='1' cellpadding='3'>
      <tr> 
        <td width='100' align='left'><b>$CONFIGURESENTENCE1</b></td>
        <td width='240' colspan='2'>
	<input type='button' value='Link' onClick='AddText(this.form,9);'>
	<input type='button' value='Bold' onClick='AddText(this.form,4);'>	
	<input type='button' value='Italic' onClick='AddText(this.form,5);'>
	<input type='button' value='Underline' onClick='AddText(this.form,11);'>
	</td>        
      </tr>
      <tr> 
        <td width='100' align='left'>$Sentence:</td>
        <td width='160'>           
         <textarea name='sent1' rows='7' cols='33'>$sent1</textarea>
        </td>
        <td width='225'>$expsentence</td>
      </tr>
       <tr> 
        <td width='100' align='left'><b>$CONFIGURESENTENCE2</b></td>
        <td width='240' colspan='2'>
	<input type='button' value='Link' onClick='AddText(this.form,9);'>
	<input type='button' value='Bold' onClick='AddText(this.form,4);'>	
	<input type='button' value='Italic' onClick='AddText(this.form,5);'>
	<input type='button' value='Underline' onClick='AddText(this.form,11);'>
        </td>
      </tr>
_________________________
-Jon
I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know wink
Where I continue to hack, even though it's a state of mind

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks