/    Sign up×
Community /Pin to ProfileBookmark

these two scripts don’t work together

high im trying to add two type scripts to my website 1, a scrolling text status bar and a text following mouse pointer how or what do I to break those two apart to make them both run?

to post a comment
JavaScript

35 Comments(s)

Copy linkTweet thisAlerts:
@jdaviaMay 01.2003 — [i]Originally posted by soulkiss [/i]

[B]high im trying to add two type scripts to my website 1, a scrolling text status bar and a text following mouse pointer how or what do I to break those two apart to make them both run? [/B][/QUOTE]

They are two separate scripts. Do a search for each one, and follow the directions. If you have something already, We need to see it to help.
Copy linkTweet thisAlerts:
@soulkissauthorMay 01.2003 — here is the web site I hope you can help me on this ?:

ok Im trying to get two scripts to run on my website a status

scroll bar and a text following mouse pointer but i only seem to get only one to work?




<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<meta http-equiv="Content-Language" content="en-us">

<title>OSFL LEAGUE</title>

<meta name="generator" content="Microsoft FrontPage 4.0">

<meta name="ProgId" content="FrontPage.Editor.Document">

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Ripple Text by [email][email protected][/email] -->

<!-- Begin

msg='Welcome To The O.S.F.L. Official League Site';

font='Verdana,Arial';

size=3; // 1-7 only!

color='#CC0033';

speed=0.5;

//Alter nothing past here!!

ns=(document.layers);

ie=(document.all);

msg=msg.split('');

n=msg.length;

a=size*10;

ymouse=0;

xmouse=0;

scrll=0;

props="<font face="+font+" size="+size+" color="+color+">";

if (ns){

for (i=0; i < n; i++)

document.write('<layer name="nsmsg'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+msg[i]+'</font></center></layer>');

}

if (ie){

document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');

for (i=0; i < n; i++)

document.write('<div id="iemsg" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+msg[i]+'</font></div>');

document.write('</div></div>');

}

(ns)?window.captureEvents(Event.MOUSEMOVE):0;

function Mouse(evnt){

ymouse = (ns)?evnt.pageY+20-(window.pageYOffset):event.y+20;

xmouse = (ns)?evnt.pageX+20:event.x+20;

}

(ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;

y=new Array();

x=new Array();

Y=new Array();

X=new Array();

for (i=0; i < n; i++){

y[i]=0;

x[i]=0;

Y[i]=0;

X[i]=0;

}

function assign(){

if (ie) outer.style.top=document.body.scrollTop;

for (i=0; i < n; i++){

var d=(ns)?document.layers['nsmsg'+i]:iemsg[i].style;

d.top=y[i]+scrll;

d.left=x[i]+(i
*
(a/2));

}

}

function ripple(){

scrll=(ns)?window.pageYOffset:0;

y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);

x[0]=Math.round(X[0]+=((xmouse)-X[0])*
speed);

for (var i=1; i < n; i++){

y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);

x[i]=Math.round(X[i]+=(x[i-1]-X[i])*
speed);

}

assign();

setTimeout('ripple()',10);

}

if (ns||ie)window.onload=ripple;

// End -->

</script>



</head>



<BODY onLoad="startStatusScroller();" background="/freak2/shockandawe420/nflback.gif" bgproperties="fixed">



<p>

<SCRIPT LANGUAGE = "JavaScript">

function changePage()

{

var f = document.forms.navigation;



var uri = f.pages.options[f.pages.selectedIndex].value;

newPage =

window.open

(uri,"NewPage","height=480,width=640,location=no,scrollbars=yes,menubar=no,toolbar=no,resizable=yes,status=yes");



}

</SCRIPT>



<SCRIPT LANGUAGE="JavaScript">



<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Original: Bryan Pieterse -->

<!-- Web Site: http://www.angelfire.com/me4/favourites/ -->

<!-- Begin

function scrollit_r2l(seed)

{

var m1 = " offering Free Scripts ";

var m2 = " .... ";

var m3 = " Visit Us Now! ";

var m4 = " Youm may add as many messages as you like! ";

var m5 = " LOOOK........ Great!! ";

var msg=m1+m2+m3+m2+m4+m2+m5;

var out = "Javascript Source ";

var c = 1;

if (seed > 100) {

seed--;

var cmd="scrollit_r2l(" + seed + ")";

timerTwo=window.setTimeout(cmd,100);

}

else if (seed <= 100 && seed > 0) {

for (c=0 ; c < seed ; c++) {

out+=" ";

}

out+=msg;

seed--;

var cmd="scrollit_r2l(" + seed + ")";

window.status=out;

timerTwo=window.setTimeout(cmd,100);

}

else if (seed <= 0) {

if (-seed < msg.length) {

out+=msg.substring(-seed,msg.length);

seed--;

var cmd="scrollit_r2l(" + seed + ")";

window.status=out;

timerTwo=window.setTimeout(cmd,100);

}

else {

window.status=" ";

timerTwo=window.setTimeout("scrollit_r2l(100)",75);

}

}

}

// End -->

</script>

<p align="center"><font size="7"><b>

<img border="0" src="/freak2/shockandawe420/NFLlogo.gif" align="left" width="40" height="50"><img border="0" src="/freak2/shockandawe420/NFLlogo.gif" align="right" width="40" height="50">

<marquee scrolldelay="100">WELCOME TO THE O.S.F.L</marquee>

</B></font></p>

<p align="center"><span style="font-size:14"><i><b>THE ULTIMATE FOOTBALL

LEAGUE</B></i></span></p>

<p align="center"><img border="0" src="/freak2/shockandawe420/CRLFT.jpg" width="361" height="400"></p>

<p align="center"><img border="0" src="/freak2/shockandawe420/MADDENLOGO.gif" width="399" height="53">&nbsp;</p>

<p align="center"></p>

<p align="right"><img border="0" src="/freak2/shockandawe420/2003_141x140.jpg" align="left" width="141" height="140">

<img border="0" src="/freak2/shockandawe420/sports_logo2003.gif" align="right" width="116" height="108">&nbsp;</p>

<p align="center"></p>

<p align="center"><img border="0" src="/freak2/shockandawe420/TR4315CR.jpg" width="175" height="400"></p>

<p align="center">&nbsp;</p>

<p align="center"><font size="6" color="#FF0000"><i><marquee behavior="alternate" scrolldelay="40">ATTENTION

BALLER'S!!!</marquee></i></font></p>

<p align="center"><font size="5"><i>WEEKLY OWNERS MEETING'S;&nbsp;</i></font></p>

<p align="center"><font size="5"><i><font color="#CC3300">YOU MUST ATTEND OR

SEND AN E-MAIL WITH REASON WHY, IF WE DON'T SEE OR HERE FROM, YOU WILL BE

REPLACED WITH A MORE DEDICATED LEAGUE PLAYER.</font></i></font></p>

<p align="center"><font size="5"><i>EVERY SUNDAY&nbsp;MEETING'S WILL BE HELD</i></font></p>

<p align="center"><font size="5"><i>&nbsp;IN A LOCKED OSFL ROOM</i></font></p>

<p align="center"><font size="5"><i>9:00PM

EST- 8:00 CEN- 7:00 PST</i></font></p>

<p align="center">&nbsp;</p>

<p align="center">&nbsp;</p>

<p align="center">&nbsp;</p>

<p align="center">&nbsp;</p>

<p align="center"><font size="6">If You Have Any Questions Please&nbsp;</font></p>

<p align="center"><font size="6">Mail to:</font></p>

<p align="center"><a href="mailto:[email protected]" target="_blank"><font color="#FF0000" size="4">

<marquee scrolldelay="1">@</marquee>

</font></a></p>

<p align="center"><font size="6" color="#000000">OR</font></p>

<p align="center"><a href="mailto:[email protected]" target="_
blank"><font color="#FF0000" size="6">

<marquee behavior="alternate" scrolldelay="40">VP of Fair Play@</marquee>

</font></a></p>

<p align="center"><img border="0" src="/freak2/shockandawe420/CRSCFT.jpg" width="260" height="400"></p>

<p align="center">&nbsp;</p>

<p align="center">&nbsp;</p>

<p align="center"><img border="0" src="/freak2/shockandawe420/team6.gif" width="642" height="66"></p>

<p align="center"><img border="0" src="/freak2/shockandawe420/blondeAnim.gif" width="110" height="150"></p>

<p align="center"><font size="4" color="#666699"><b>PLEASE SELECT FROM THE DROP

DOWN MENU FOR SITE SELECTION</B></font></p>



<form name="navigation">

<p align="center">

<select name="pages" size="1" onChange="changePage();">





<option value="http://www.angelfire.com/freak2/shockandawe420/OSFLrules.htm">RULES
<option value="http://www.angelfire.com/freak2/shockandawe420/Coaches.htm">COACHES CONTACT'S
<option value="http://www.angelfire.com/freak2/shockandawe420/week_1_2.htm">WEEK 1, 2,
<option value="http://www.angelfire.com/freak2/shockandawe420/stats form.htm">STATS FORM
<option value="http://www.angelfire.com/freak2/shockandawe420/AFC.htm">AFC STANDINGS
<option value="http://www.angelfire.com/freak2/shockandawe420/NFC.htm">NFC STANDINGS

</select>

</form>

<a target="PASSITON"href="http://htmlgear.tripod.com/pass/control.pass?u=shockandawe420&i=1&a=render&"><img src="http://htmlgear.lycos.com/img/pass/pro/recommend_tech.gif" border="0"></a>

<p align="center"><a href="http://www.budweiser.com" target="_blank"><img border="0" src="/freak2/shockandawe420/SPN_budweiser.gif" width="90" height="47"></a></p>

</body>

</html>? ?
Copy linkTweet thisAlerts:
@DrDaMourMay 01.2003 — whatis this pertaining to?
Copy linkTweet thisAlerts:
@jdaviaMay 01.2003 — Keep your posts in the same thread please.

I asked you to do a search. You can find most of what you need that way. HERE's Proof!

http://www.javascriptkit.com/javatutors/multiplejava.shtml

This explains what might be your problem.
Copy linkTweet thisAlerts:
@soulkissauthorMay 01.2003 — <;body onload="scrollit(100);"getwindowsize()" OnResize="getwindowsize()" background="/freak2/shockandawe420/49ersbac.gif">

(this is the part im having troubles) getting both ONLOAD's to work on a single line can ya help me?
Copy linkTweet thisAlerts:
@CharlesMay 01.2003 — [font=monospace]<body onload="scrollit(100); getwindowsize()" onresize="getwindowsize()" background="/freak2/ shockandawe420/49ersbac.gif">[/font]
Copy linkTweet thisAlerts:
@soulkissauthorMay 01.2003 — thank you charles but i still got a error both scripts are not working now

<body onload=

"scrollit(100) (this is the second script)

;getwindowsize()" onresize="getwindowsize()" background="/freak2/shockandawe420/49ersbac.gif"><bg properties="fixed"> (this is the first script)

they both have the { <body onload= } what do i add and how do i add it i keep messing it im SORRY for all the questions


where is the dothis,dothat thing????? i need to make both of these scripts to work on page?
Copy linkTweet thisAlerts:
@CharlesMay 01.2003 — [font=georgia]If you are using the mark up that I provided then the problem is with one or both of the scripts themselves. And nobody here can help you without access to those scripts. [/font]
Copy linkTweet thisAlerts:
@soulkissauthorMay 01.2003 — </head>

<script language="JavaScript">

<!--

// You may edit the message below.

var startMsg = "O.S.F.L. RULES RULES RULES ";

var str = "";

var msg = "";

var leftMsg = "";


function setMessage()

{

if (msg == "")

{

str = " ";

msg = startMsg;

leftMsg = "";

}

if (str.length == 1)
{
while (msg.substring(0, 1) == " ")
{
leftMsg = leftMsg + str;
str = msg.substring(0, 1);
msg = msg.substring(1, msg.length);
}

leftMsg = leftMsg + str;
str = msg.substring(0, 1);
msg = msg.substring(1, msg.length);

for (var ii = 0; ii < 120; ii++)
{
str = " " + str;
}
}
else
str = str.substring(10, str.length);

window.status = leftMsg + str;

// This editable value (1000 = 1 second)

// corresponds to the speed of the shooting

// message.

timeout = window.setTimeout('setMessage()',100);

}

// -->

</script>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

var isNS = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4));

var _all = '';

var _
style = '';

var wwidth, wheight;

var ydir = '++';

var xdir = '++';

var id1, id2, id3;

var x = 1;

var y = 1;

var x1, y1;

if(!isNS) {

_all='all.';

_
style='.style';

}

function getwindowsize() {

clearTimeout(id1);

clearTimeout(id2);

clearTimeout(id3);

if (isNS) {

wwidth = window.innerWidth - 55;

wheight = window.innerHeight - 50;

} else {

wwidth = document.body.clientWidth - 55;

wheight = document.body.clientHeight - 50;

}

id3 = setTimeout('randomdir()', 20000);

animate();

}

function randomdir() {

if (Math.floor(Math.random()*2)) {

(Math.floor(Math.random()*
2)) ? xdir='--': xdir='++';

} else {

(Math.floor(Math.random()*2)) ? ydir='--': ydir='++';

}

id2 = setTimeout('randomdir()', 20000);

}

function animate() {

eval('x'+xdir);

eval('y'+ydir);

if (isNS) {

pic1.moveTo((x+pageXOffset),(y+pageYOffset))

} else {

pic1.pixelLeft = x+document.body.scrollLeft;

pic1.pixelTop = y+document.body.scrollTop;

}

if (isNS) {

if (pic1.top <= 5+pageYOffset) ydir = '++';

if (pic1.top >= wheight+pageYOffset) ydir = '--';

if (pic1.left >= wwidth+pageXOffset) xdir = '--';

if (pic1.left <= 5+pageXOffset) xdir = '++';

} else {

if (pic1.pixelTop <= 5+document.body.scrollTop) ydir = '++';

if (pic1.pixelTop >= wheight+document.body.scrollTop) ydir = '--';

if (pic1.pixelLeft >= wwidth+document.body.scrollLeft) xdir = '--';

if (pic1.pixelLeft <= 5+document.body.scrollLeft) xdir = '++';

}

id1 = setTimeout('animate()', 30);

}

// End -->

</script>

<BODY onload="timeout = window.setTimeout('setMessage()',500);" OnResize="getwindowsize()" background="vikingsbac.gif" bgproperties="fixed">

<div id="pic1" style="position:absolute; visibility:visible; left:0px; top:0px; z-index:-1">

<img src="/freak2/shockandawe420/alien.gif" border="0">

</div>

<script language="javascript">

var pic1=eval('document.'+_all+'pic1'+_style);

</script>


ok the scrolling text in status bar script works but the floating background won't I think i did it right but can someone recheck it please the line <BODY onload= is where im having probs trying to put the right code to make both work
Copy linkTweet thisAlerts:
@pyroMay 01.2003 — [color=darkblue]bgproperties="fixed"[/color] is IE only. Try doing it this way: [color=darkblue]style="background-image:url(vikingsbac.gif); background-attachment: fixed;"[/color]
Copy linkTweet thisAlerts:
@soulkissauthorMay 01.2003 — <body onload="scrollit(100); getwindowsize()" onresize="getwindowsize()" background="/freak2/ shockandawe420/49ersbac.gif">

Charles? i added it just like you put it but the scrolling text in status bar still don't work when i reload page it says error on page but the floating backgroubd works?
Copy linkTweet thisAlerts:
@soulkissauthorMay 01.2003 — here is the two scripts just the scripts what did i do wrong to not get both working please any help here?



<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<meta name="GENERATOR" content="Microsoft FrontPage 4.0">

<meta name="ProgId" content="FrontPage.Editor.Document">

<title>New Page 1</title>

<script language="JavaScript">

<!--

var startMsg = "O.S.F.L. RULES RULES RULES ";

var str = "";

var msg = "";

var leftMsg = "";


function setMessage()

{

if (msg == "")

{

str = " ";

msg = startMsg;

leftMsg = "";

}

if (str.length == 1)
{
while (msg.substring(0, 1) == " ")
{
leftMsg = leftMsg + str;
str = msg.substring(0, 1);
msg = msg.substring(1, msg.length);
}

leftMsg = leftMsg + str;
str = msg.substring(0, 1);
msg = msg.substring(1, msg.length);

for (var ii = 0; ii < 120; ii++)
{
str = " " + str;
}
}
else
str = str.substring(10, str.length);

window.status = leftMsg + str;

// This editable value (1000 = 1 second)

// corresponds to the speed of the shooting

// message.

timeout = window.setTimeout('setMessage()',100);

}

// -->

</script>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

var isNS = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4));

var _all = '';

var _
style = '';

var wwidth, wheight;

var ydir = '++';

var xdir = '++';

var id1, id2, id3;

var x = 1;

var y = 1;

var x1, y1;

if(!isNS) {

_all='all.';

_
style='.style';

}

function getwindowsize() {

clearTimeout(id1);

clearTimeout(id2);

clearTimeout(id3);

if (isNS) {

wwidth = window.innerWidth - 55;

wheight = window.innerHeight - 50;

} else {

wwidth = document.body.clientWidth - 55;

wheight = document.body.clientHeight - 50;

}

id3 = setTimeout('randomdir()', 20000);

animate();

}

function randomdir() {

if (Math.floor(Math.random()*2)) {

(Math.floor(Math.random()*
2)) ? xdir='--': xdir='++';

} else {

(Math.floor(Math.random()*2)) ? ydir='--': ydir='++';

}

id2 = setTimeout('randomdir()', 20000);

}

function animate() {

eval('x'+xdir);

eval('y'+ydir);

if (isNS) {

pic1.moveTo((x+pageXOffset),(y+pageYOffset))

} else {

pic1.pixelLeft = x+document.body.scrollLeft;

pic1.pixelTop = y+document.body.scrollTop;

}

if (isNS) {

if (pic1.top <= 5+pageYOffset) ydir = '++';

if (pic1.top >= wheight+pageYOffset) ydir = '--';

if (pic1.left >= wwidth+pageXOffset) xdir = '--';

if (pic1.left <= 5+pageXOffset) xdir = '++';

} else {

if (pic1.pixelTop <= 5+document.body.scrollTop) ydir = '++';

if (pic1.pixelTop >= wheight+document.body.scrollTop) ydir = '--';

if (pic1.pixelLeft >= wwidth+document.body.scrollLeft) xdir = '--';

if (pic1.pixelLeft <= 5+document.body.scrollLeft) xdir = '++';

}

id1 = setTimeout('animate()', 30);

}

// End -->

</script>

</head>

<body onload=" scrollit(100); getwindowsize()" onresize="getwindowsize()" background=" /freak2/shockandawe420/49ersbac.gif">

<div id="pic1" style="position:absolute; visibility:visible; left:0px; top:0px; z-index:-1">

<img src="/freak2/shockandawe420/NFLlogo.gif" border="0">

</div>

<script language="javascript">

var pic1=eval('document.'+_all+'pic1'+_style);

</script>

</body>

</html>
Copy linkTweet thisAlerts:
@khalidali63May 01.2003 — remove this function from the body onload event call

scrollit(100);

its not defined any where in the code.
Copy linkTweet thisAlerts:
@soulkissauthorMay 01.2003 — the line is in there here is the script if ANY one of you can fix it PLEASE do so

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<meta name="GENERATOR" content="Microsoft FrontPage 4.0">

<meta name="ProgId" content="FrontPage.Editor.Document">

<title>New Page 1</title>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin

function scrollit(seed) {

var m1 = "Welcome to The JavaScript Source! ";

var m2 = "..... You can find all the scripts you need here! ";

var m3 = "......Enjoy ";

var m4 = "";

var msg=m1+m2+m3+m4;

var out = " ";

var c = 1;

if (seed > 100) {

seed--;

cmd="scrollit("+seed+")";

timerTwo=window.setTimeout(cmd,100);

}

else if (seed <= 100 && seed > 0) {

for (c=0 ; c < seed ; c++) {

out+=" ";

}

out+=msg;

seed--;

window.status=out;

cmd="scrollit("+seed+")";

timerTwo=window.setTimeout(cmd,100);

}

else if (seed <= 0) {

if (-seed < msg.length) {

out+=msg.substring(-seed,msg.length);

seed--;

window.status=out;

cmd="scrollit("+seed+")";

timerTwo=window.setTimeout(cmd,100);

}

else {

window.status=" ";

timerTwo=window.setTimeout("scrollit(100)",75);

}

}

}

// End -->

</SCRIPT>

<SCRIPT LANGUAGE="JavaScript">

<!-- Original: Brian Gosselin ([email protected]) -->

<!-- Web Site: http://www.bgaudiodr.iwarp.com -->

<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin

var isNS = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4));

var _all = '';

var _
style = '';

var wwidth, wheight;

var ydir = '++';

var xdir = '++';

var id1, id2, id3;

var x = 1;

var y = 1;

var x1, y1;

if(!isNS) {

_all='all.';

_
style='.style';

}

function getwindowsize() {

clearTimeout(id1);

clearTimeout(id2);

clearTimeout(id3);

if (isNS) {

wwidth = window.innerWidth - 55;

wheight = window.innerHeight - 50;

} else {

wwidth = document.body.clientWidth - 55;

wheight = document.body.clientHeight - 50;

}

id3 = setTimeout('randomdir()', 20000);

animate();

}

function randomdir() {

if (Math.floor(Math.random()*2)) {

(Math.floor(Math.random()*
2)) ? xdir='--': xdir='++';

} else {

(Math.floor(Math.random()*2)) ? ydir='--': ydir='++';

}

id2 = setTimeout('randomdir()', 20000);

}

function animate() {

eval('x'+xdir);

eval('y'+ydir);

if (isNS) {

pic1.moveTo((x+pageXOffset),(y+pageYOffset))

} else {

pic1.pixelLeft = x+document.body.scrollLeft;

pic1.pixelTop = y+document.body.scrollTop;

}

if (isNS) {

if (pic1.top <= 5+pageYOffset) ydir = '++';

if (pic1.top >= wheight+pageYOffset) ydir = '--';

if (pic1.left >= wwidth+pageXOffset) xdir = '--';

if (pic1.left <= 5+pageXOffset) xdir = '++';

} else {

if (pic1.pixelTop <= 5+document.body.scrollTop) ydir = '++';

if (pic1.pixelTop >= wheight+document.body.scrollTop) ydir = '--';

if (pic1.pixelLeft >= wwidth+document.body.scrollLeft) xdir = '--';

if (pic1.pixelLeft <= 5+document.body.scrollLeft) xdir = '++';

}

id1 = setTimeout('animate()', 30);

}

// End -->

</script>

</head>

<BODY onLoad="scrollit(100);" OnResize="getwindowsize()" background="/freak2/shockandawe420/brownsbac.gif" getwindowsize()""><div id="pic1" style="position:absolute; visibility:visible; left:0px; top:0px; z-index:-1">

<img src="/freak2/shockandawe420/easportslg.gif" border="0">

</div>

</body>

</html>


"scrollit(100);" this line is in there look through the script and you will see it i just want both scripts working
Copy linkTweet thisAlerts:
@khalidali63May 01.2003 — We (volunteers) don't have time (usually) to go through hundreds of lines of code,You have to explain whats wrong with the code and what is the error u are getting and what is is you are expecting the code to do..so that we do not have to read hundreds of lines of code,

I have just posted answer to your question about removing the scrollit(100);

if thats not correct thenyou have to give details.

NOTE:

and why would you atart a new thread for the same questio...
Copy linkTweet thisAlerts:
@soulkissauthorMay 01.2003 — if i take that line out the scroller stops working are you sure?

really really sure?????? here the line your looking for in that script window.status=" ";

timerTwo=window.setTimeout("scrollit(100)",75);

see it? thats where it is in the script so if i take the out it won't work!!!!!!!!!!!!!!
Copy linkTweet thisAlerts:
@soulkissauthorMay 01.2003 — the line you say its not there??????????? is there but if i take it out the scroller won't work what are you talking about?.

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<meta name="GENERATOR" content="Microsoft FrontPage 4.0">

<meta name="ProgId" content="FrontPage.Editor.Document">

<title>New Page 1</title>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin

function scrollit(seed) {

var m1 = "Welcome to The JavaScript Source! ";

var m2 = "..... You can find all the scripts you need here! ";

var m3 = "......Enjoy ";

var m4 = "";

var msg=m1+m2+m3+m4;

var out = " ";

var c = 1;

if (seed > 100) {

seed--;

cmd="scrollit("+seed+")";

timerTwo=window.setTimeout(cmd,100);

}

else if (seed <= 100 && seed > 0) {

for (c=0 ; c < seed ; c++) {

out+=" ";

}

out+=msg;

seed--;

window.status=out;

cmd="scrollit("+seed+")";

timerTwo=window.setTimeout(cmd,100);

}

else if (seed <= 0) {

if (-seed < msg.length) {

out+=msg.substring(-seed,msg.length);

seed--;

window.status=out;

cmd="scrollit("+seed+")";

timerTwo=window.setTimeout(cmd,100);

}

else {

window.status=" ";

timerTwo=window.setTimeout("scrollit(100)",75);

}

}

}

// End -->

</SCRIPT>

<SCRIPT LANGUAGE="JavaScript">

<!-- Original: Brian Gosselin ([email protected]) -->

<!-- Web Site: http://www.bgaudiodr.iwarp.com -->

<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin

var isNS = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4));

var _all = '';

var _
style = '';

var wwidth, wheight;

var ydir = '++';

var xdir = '++';

var id1, id2, id3;

var x = 1;

var y = 1;

var x1, y1;

if(!isNS) {

_all='all.';

_
style='.style';

}

function getwindowsize() {

clearTimeout(id1);

clearTimeout(id2);

clearTimeout(id3);

if (isNS) {

wwidth = window.innerWidth - 55;

wheight = window.innerHeight - 50;

} else {

wwidth = document.body.clientWidth - 55;

wheight = document.body.clientHeight - 50;

}

id3 = setTimeout('randomdir()', 20000);

animate();

}

function randomdir() {

if (Math.floor(Math.random()*2)) {

(Math.floor(Math.random()*
2)) ? xdir='--': xdir='++';

} else {

(Math.floor(Math.random()*2)) ? ydir='--': ydir='++';

}

id2 = setTimeout('randomdir()', 20000);

}

function animate() {

eval('x'+xdir);

eval('y'+ydir);

if (isNS) {

pic1.moveTo((x+pageXOffset),(y+pageYOffset))

} else {

pic1.pixelLeft = x+document.body.scrollLeft;

pic1.pixelTop = y+document.body.scrollTop;

}

if (isNS) {

if (pic1.top <= 5+pageYOffset) ydir = '++';

if (pic1.top >= wheight+pageYOffset) ydir = '--';

if (pic1.left >= wwidth+pageXOffset) xdir = '--';

if (pic1.left <= 5+pageXOffset) xdir = '++';

} else {

if (pic1.pixelTop <= 5+document.body.scrollTop) ydir = '++';

if (pic1.pixelTop >= wheight+document.body.scrollTop) ydir = '--';

if (pic1.pixelLeft >= wwidth+document.body.scrollLeft) xdir = '--';

if (pic1.pixelLeft <= 5+document.body.scrollLeft) xdir = '++';

}

id1 = setTimeout('animate()', 30);

}

// End -->

</script>

</head>

<BODY onLoad="scrollit(100)" OnResize="getwindowsize()" background="/freak2/shockandawe420/brownsbac.gif" ;"getwindowsize()">

<div id="pic1" style="position:absolute; visibility:visible; left:0px; top:0px; z-index:-1">

<img src="/freak2/shockandawe420/easportslg.jpg" border="0">

</div>

</body>

</html>
Copy linkTweet thisAlerts:
@soulkissauthorMay 01.2003 — it's my first time doing this forum thing

but the the two scripts im trying to run together have <BODY onload=

<BODY onLoad="scrollit(100)">;

<BODY onload="getwindowsize()"" OnResize="getwindowsize()" background="/freak2/shockandawe420/brownsbac.gif">

<div id="pic1" style="position:absolute; visibility:visible; left:0px; top:0px; z-index:-1">

<img src="/freak2/shockandawe420/easportslg.jpg" border="0">

</div>

<script language="javascript">

var pic1=eval('document.'+_all+'pic1'+_style);

</script>

</body>

<html>


[COLOR=red] the line scrolllit(100) you say is not in the script is in the script until i add it to the body it disappears.[/COLOR]



<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

function scrollit(seed) {

var m1 = "Welcome to The JavaScript Source! ";

var m2 = "..... You can find all the scripts you need here! ";

var m3 = "......Enjoy ";

var m4 = "";

var msg=m1+m2+m3+m4;

var out = " ";

var c = 1;

if (seed > 100) {

seed--;

cmd="scrollit("+seed+")";

timerTwo=window.setTimeout(cmd,100);

}

else if (seed <= 100 && seed > 0) {

for (c=0 ; c < seed ; c++) {

out+=" ";

}

out+=msg;

seed--;

window.status=out;

cmd="scrollit("+seed+")";

timerTwo=window.setTimeout(cmd,100);

}

else if (seed <= 0) {

if (-seed < msg.length) {

out+=msg.substring(-seed,msg.length);

seed--;

window.status=out;

cmd="scrollit("+seed+")";

timerTwo=window.setTimeout(cmd,100);

}

else {

window.status=" ";

[COLOR=red]timerTwo=window.setTimeout("scrollit(100)",75);[/COLOR] THIS IS LINE YOU SAY ITS NOT THERE BUT WHEN I ADD THE <body onload="scrollit(100)"> TO THE BODY THIS LINE DISAPPEARS.

}

}

}

// End -->

</SCRIPT>

THIS IS THE SECOND SCRIPT im adding

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

var isNS = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4));

var _all = '';

var _
style = '';

var wwidth, wheight;

var ydir = '++';

var xdir = '++';

var id1, id2, id3;

var x = 1;

var y = 1;

var x1, y1;

if(!isNS) {

_all='all.';

_
style='.style';

}

function getwindowsize() {

clearTimeout(id1);

clearTimeout(id2);

clearTimeout(id3);

if (isNS) {

wwidth = window.innerWidth - 55;

wheight = window.innerHeight - 50;

} else {

wwidth = document.body.clientWidth - 55;

wheight = document.body.clientHeight - 50;

}

id3 = setTimeout('randomdir()', 20000);

animate();

}

function randomdir() {

if (Math.floor(Math.random()*2)) {

(Math.floor(Math.random()*
2)) ? xdir='--': xdir='++';

} else {

(Math.floor(Math.random()*2)) ? ydir='--': ydir='++';

}

id2 = setTimeout('randomdir()', 20000);

}

function animate() {

eval('x'+xdir);

eval('y'+ydir);

if (isNS) {

pic1.moveTo((x+pageXOffset),(y+pageYOffset))

} else {

pic1.pixelLeft = x+document.body.scrollLeft;

pic1.pixelTop = y+document.body.scrollTop;

}

if (isNS) {

if (pic1.top <= 5+pageYOffset) ydir = '++';

if (pic1.top >= wheight+pageYOffset) ydir = '--';

if (pic1.left >= wwidth+pageXOffset) xdir = '--';

if (pic1.left <= 5+pageXOffset) xdir = '++';

} else {

if (pic1.pixelTop <= 5+document.body.scrollTop) ydir = '++';

if (pic1.pixelTop >= wheight+document.body.scrollTop) ydir = '--';

if (pic1.pixelLeft >= wwidth+document.body.scrollLeft) xdir = '--';

if (pic1.pixelLeft <= 5+document.body.scrollLeft) xdir = '++';

}

id1 = setTimeout('animate()', 30);

}

// End -->

</script>
Copy linkTweet thisAlerts:
@soulkissauthorMay 02.2003 — This is my first time useing this forum and Im sry for anything that have caused. I did not mean to make new posts, just thought thats how you do it. And I got those scripts to add to my website its a Personal website I don't know anything about java code and looking at those tutorials? strains my brain I don't know how to add to, except maybe where my html knowlege can change a few things but to make two scripts work at once and the what, where, and how is the problem im having. But again I will go back through the tutorial's. Again I do Apologies.
Copy linkTweet thisAlerts:
@soulkissauthorMay 02.2003 — What am I looking and doing at tutorials????? YES I know im DUM! GREEK ALL GREEK to me. dang all I wanted was like it says just copy and paste. I did not know I had to learn java scripting to do that.
Copy linkTweet thisAlerts:
@khalidali63May 02.2003 — Listen my friend...

if you look right above this rightiong towards the right corner you will see 2 buttons

one says new thread and the other says "post reply",

You must use post reply for the ongoing topic.

If you keep starting new threads just like that for an existing topic,you will lose all of the friends you might have at this forum,its not considered nice to keep starting new thread for the existing topic.Please read this.
Copy linkTweet thisAlerts:
@soulkissauthorMay 02.2003 — Im doing it wrong again. Well I know now, and I think I will just go with one script because it seems I will never know and I hope they put a FOOT NOTE on there site ( can only use one script at a time unless you KNOW Java. Which kinda sucks

there is alot of good scripts to use. Thank you for your time aand patience.
Copy linkTweet thisAlerts:
@soulkissauthorMay 02.2003 — May I please get some help at adding these two scripts to one webpage thank you





[URL=http://www.angelfire.com/freak2/shockandawe420/scrollingstatusbar.htm]scrolling status bar[/URL]



[URL=http://www.angelfire.com/freak2/shockandawe420/dual_side_scroller.htm]dual side scroller[/URL]
Copy linkTweet thisAlerts:
@khalidali63May 02.2003 — Here you go,see it wasn't that hard,if you listened to begin with...?

The code you have is a real mess.its not optimised for anything.It will work for IE<6 browsers...thats about it..

I only merged the 2 scripts

[b]EDIT:[/b]

Updated response is below
Copy linkTweet thisAlerts:
@jdaviaMay 02.2003 — soulkiss here is new working code for both scripts on the same page. Use copy/paste to grab it. Good Luck. I hope you feel better now, and learned how to use this forum too.

[size=-8]

<!doctype html public "-//w3c//dtd html 3.2//en">



<html>



<head>

<title>(Two Scripts)</title>





<!- MOUSE TRAILS SRARTS HERE -->

<script language="Javascript">



var x,y;

var gap_between=10;

var checkit=0;

var speed=40;

var message="I Love You";

message=message+' ';



message=message.split("") ;

var xposition=new Array() ;



for (i=0;i<=message.length-1;i++) {

xposition[i]=-100

}

var yposition=new Array()

for (i=0;i<=message.length-1;i++) {

yposition[i]=-100

}

function doMouseMove(e){

if(document.layers) {

x=e.pageX

y=e.pageY

}

else

{

x=document.body.scrollLeft+event.clientX ;

y=document.body.scrollTop+event.clientY;

}

checkit=1

}

function DoTrail() {

if (checkit==1 && document.all) {

for (i=message.length-1; i>=1; i--) {

xposition[i]=xposition[i-1]+gap_between

yposition[i]=yposition[i-1]

}



xposition[0]=x+gap_between
yposition[0]=y

for (i=0; i<message.length-1; i++) {
var thisspan = eval("span"+(i)+".style")
thisspan.posLeft=xposition[i]
thisspan.posTop=yposition[i]
}
}

else if (checkit==1 && document.layers) {
for (i=message.length-1; i>=1; i--) {
xposition[i]=xposition[i-1]+gap_between
yposition[i]=yposition[i-1]
}
xposition[0]=x+gap_between
yposition[0]=y

for (i=0; i<message.length-1; i++) { var thisspan = eval("document.span"+i)
thisspan.left=xposition[i]
thisspan.top=yposition[i]
}
}
var count_time=setTimeout("DoTrail()",speed)

}

</script>

<style type="text/css">

.trail_style{

position:absolute;

visibility:visible;

top:-100px;

font-size:12px;

font-family:Verdana, Arial;font-weight:bold;

color:#000000;}


</style>


</head>

<BODY onLoad='DoTrail();'>





<script>

for (i=0;i<=message.length-1;i++) {

document.write("<span id='span"+i+"' class='trail_style'>")

document.write(message[i])

document.write("</span>")

}



if (document.layers){

document.captureEvents(Event.MOUSEMOVE);



}

document.onmousemove = doMouseMove; v

</script>

<!- MOUSE TRAILS END HERE -->







<!- STARUS BAR CODE STARTS HERE -->



<SCRIPT LANGUAGE="JavaScript">
<!--
// Use the following three variables to set up the message:
var msg = "ENTER YOUR STATUS BAR MESSAGE HERE "
var delay = 50
var startPos = 100

// Don't touch these variables:
var timerID = null
var timerRunning = false
var pos = 0
var scrolls = 0

// Crank it up!
StartScrolling()

function StartScrolling()
{
// Make sure the clock is stopped
StopTheClock()

// Pad the message with spaces to get the "start" position
for (var i = 0; i < startPos; i++) msg = " " + msg

// Off we go...
DoTheScroll()
}

function StopTheClock()
{
if(timerRunning)
clearTimeout(timerID)
timerRunning = false
}

function DoTheScroll()
{
if (pos <= startPos)
self.status = msg.substring(pos, msg.length)
else
{
StopTheClock()
return
}
++pos
timerRunning = true
timerID = self.setTimeout("DoTheScroll()", delay)
}
//-->
</SCRIPT>

<!- STARUS BAR CODE ENDS HERE -->






</body>

</html>

[/size]
Copy linkTweet thisAlerts:
@soulkissauthorMay 02.2003 — I understand that you want me to help ya's which I did I think and I would like to know WHAT you did I mean I know I copied a hole script but when you give me a script you want me to copy paste it? KALID I did that and tested it theres only one pic going up and down should there not be two? or am I suppose to find WHAT you did? If I knew java Which I don't Im sorry, but WHAT did you do to make what dose work, work, can it be done on any two script? and TY ADAVIA, but again what am I looking at? this hole script will make both work? or again am I suppose to find something that you did? again I apologies for my SUPIDITY.
Copy linkTweet thisAlerts:
@khalidali63May 02.2003 — Try this link....it works for sure on IE<6 browsers..

http://68.145.35.86/temp/MergeTwoScripts-soulkiss.html

Just copy and paste the code into your page and save it and run it.
Copy linkTweet thisAlerts:
@soulkissauthorMay 02.2003 — I just wanted to know what kalid did to make two scripts work can it work with other scripts? is there a set code to use for this? what? I still don't know so I can do it myself next time in stead of wasting all of your time.
Copy linkTweet thisAlerts:
@khalidali63May 02.2003 — ofcourse,I can tell you what I did,question is,what level of knowledge about JavaScript you have?..As dave said earlier,try some tutorials.

I say start with simple scripts,instead of complicated scripts.

Do it by numbers buddy,take an online tutorial,,, here are 2 links in addition to the ones that have already been posted.

http://hotwired.lycos.com/webmonkey/programming/javascript/index.html

http://www.htmlgoodies.com/primers/jsp/jsp_toc.html

Good luck

BTW,

don't get frustrated in the beginning everything is difficult to comprehend,given the time nothing is difficult at all.
Copy linkTweet thisAlerts:
@soulkissauthorMay 02.2003 — the tutorials dont help on specific matter its TO hard, the help dont relate to what I need to know, im having with adding two scripts to one page but the tutorial only shows a event handler for a buttons,
Copy linkTweet thisAlerts:
@soulkissauthorMay 02.2003 — i got a roll over menu script that wants me to

//for each link option you need to make a new Array;

var apl = new Array();

apl[0] = new Array(45,"");

apl[1] = new Array(45,"");

apl[2] = new Array(45,"");

apl[3] = new Array(45,"");

apl[4] = new Array(45,"");

apl[5] = new Array(45,"");

//expl: apl[6] = new Array(45,"");

</script>

this is about as a specific as I can get where or how do I enter the links(angelfire.com/freak2/shockandawe420/whatever.htm)

I left the www out so it would not make a false link
Copy linkTweet thisAlerts:
@soulkissauthorMay 03.2003 — I have spent all day reading tutorials and im no where near even to trying to understand what they want me to do I have tried the methods and FORGET IT! and KALID the two scripts you said you fixed??? only one pic gose up and down and I don't know how to fix it myself, my eyes hurt and my brain is so scrambled now, so even if I get those two fixed I still don't know how to add two others if I wanted to. This has turned into a real headache for me and im sure i've caused you guys to have headaches too. But WHAT am I trying to learn at those tutorials??????????????????????????????????????
Copy linkTweet thisAlerts:
@khalidali63May 03.2003 — [i]Originally posted by soulkiss [/i]

[B] and KALID the two scripts you said you fixed [/B][/QUOTE]

The scripts are still running from ther link I provided to you in an earlier post.If you screw up stuff with your deep wish to master JavaScripting in 1 day then thats you ...Allosts of people here who want to learn they start from copy pasting,but,I have not seen an impatient person as you are.On top of that you are not even nice to the one who is freaking trying to help you.Now I have run the scrpt in IE6 and runs fine,don't insult me saying that it doesn't after you make changes to it.And let me tell you 1 more thing,if it runs in IE6 then browsers <6 should have no trouble running it.

God help you buddy.

?
Copy linkTweet thisAlerts:
@soulkissauthorMay 03.2003 — what? all I wanted to know was how can I get two scripts two work on one page. I did not know how to work the forum, so I screwed up yes but I caught on, then I get tossed links to go read stuff I have no knowlege in, and all you had to do was just show me what to add and where. NOT for someome to DO it for me and expect me to be gratefull? did I learn anything? I did not know I had to know Java to do this I just thought ok find out what to do and where to put it, not be scolded by 3 or 4 people. I DON'T want to master it like you think I do, just wanted to make my webpages looking good and professional, *shakes head*
Copy linkTweet thisAlerts:
@soulkissauthorMay 03.2003 — I did just that click the link to where you redid the scripts and all I see is one pic going up and the left side there is no pic going up and down the right side and im useing IE6 too
×

Success!

Help @soulkiss spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...