/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] help!!!!!!!!! its a simple problem…

when i finally got it to work but it keeps saying undifned for some of the messages… its only 3 error and im not a master
heres the head code:

[CODE]<SCRIPT LANGUAGE=”JavaScript”>

<!– This script and many more are available free online at –>
<!– The JavaScript Source!! http://javascript.internet.com –>

<!– Begin
//slider’s width
var swidth=”350″

//slider’s height
var sheight=”100″

//slider’s speed
var sspeed=”2″

//messages: change to your own; use as many as you’d like; set up Hyperlinks to URLs as you normally do: <a target=… href=”… URL …”>..message..</a>
var singletext=new Array()
singletext[0]='<div align=”center”><font face=Arial size=3 color=”white”><b>RuneScrapers Owns…</b><br><br><br> To Apply To Our Clan <br> <a href=”http://runescrapers.forumwise.com/runescrapers-forum-2.html”> Click Here </a></div></FONT>’
singletext[1]='<div align=”center”><font face=Arial size=3 color=”white”>Requirements:<br>LVL 80+ Combat<br>Level 73+ Range<br>Level 78+ Mage <br>Level 78+ Mage <br>Level 72+ Strength</font></div>’
singletext[2]='<div align=”center”><font face=Arial size=3 color=”white”>We will be Posting PKing Trips and other Activities on here…<br><b>HTML codes</font></div>’
singletext[3]='<div align=”center”><font face=Arial size=3 color=”white”><a href=”http://runescrapers.forumwise.com”> Also Check Out Our Forum…</a></font></div>’
if (singletext.length>1)
i=1
else
i=0
function start(){
if (document.all){
ieslider1.style.top=sheight
iemarquee(ieslider1)
}
else if (document.layers){
document.ns4slider.document.ns4slider1.top=sheight
document.ns4slider.document.ns4slider1.visibility=’show’
ns4marquee(document.ns4slider.document.ns4slider1)
}
else if (document.getElementById&&!document.all){
document.getElementById(‘ns6slider1’).style.top=sheight
ns6marquee(document.getElementById(‘ns6slider1’))
}
}
function iemarquee(whichdiv){
iediv=eval(whichdiv)
if (iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){
iediv.style.pixelTop=0
setTimeout(“iemarquee(iediv)”,100)
}
if (iediv.style.pixelTop>=sheight*-1){
iediv.style.pixelTop-=sspeed
setTimeout(“iemarquee(iediv)”,100)
}
else{
iediv.style.pixelTop=sheight
iediv.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
if (ns4layer.top>0&&ns4layer.top<=sspeed){
ns4layer.top=0
setTimeout(“ns4marquee(ns4layer)”,100)
}
if (ns4layer.top>=sheight*-1){
ns4layer.top-=sspeed
setTimeout(“ns4marquee(ns4layer)”,100)
}
else{
ns4layer.top=sheight
ns4layer.document.write(singletext[i])
ns4layer.document.close()
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
if (parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){
ns6div.style.top=0
setTimeout(“ns6marquee(ns6div)”,100)
}
if (parseInt(ns6div.style.top)>=sheight*-1){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout(“ns6marquee(ns6div)”,100)
}
else{
ns6div.style.top=sheight
ns6div.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
// End –>
</script>[/CODE]

heres body code:

[CODE]<div align=”center”>
<span style=”borderWidth:1; borderColor:red; width:350; height:72; background:navy”>
<ilayer id=”ns4slider” width=”&{swidth};” height=”&{sheight};”>
<layer id=”ns4slider1″ height=”&{sheight};” onmouseover=”sspeed=0;” onmouseout=”sspeed=2″>
<script language=”JavaScript”>
if (document.layers)
document.write(singletext[0])
</script>
</layer></ilayer>
<script language=”JavaScript”>
if (document.all){
document.writeln(‘<div style=”position:relative;overflow:hidden;width:’+swidth+’;height:’+sheight+’;clip:rect(0 ‘+swidth+’ ‘+sheight+’ 0);border:1 solid red;” onmouseover=”sspeed=0;” onmouseout=”sspeed=2″>’)
document.writeln(‘<div id=”ieslider1″ style=”position:relative;width:’+swidth+’;”>’)
document.write(singletext[0])
document.writeln(‘<div></div>’)
}
</script></span>
</div>[/CODE]

if u can help me i would very happy ty…

u can also see thnis code at:

[url]http://www.geocities.com/runescrapers_rs[/url]

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@felgallApr 21.2006 — There is about 4 times as much code there as there needs to be. Most of it is for processing in IE4 and Netscape4 and the version 5+ support is added as an afterthought). See http://javascript.about.com/library/bltick1.htm for a better version.

Also the <font> tag was deprecated long ago and is no longer recognised by some modern browsers. Also some of your tags are incorrectly nested.
Copy linkTweet thisAlerts:
@A1ien51Apr 21.2006 — Also use a real title!! You title does nothing. AND if it is so easy why can't you solve it. Pretty redundant.

Eric
Copy linkTweet thisAlerts:
@pbobdeluxauthorApr 23.2006 — cause im not a master......

...

anyways...

thank you very much for ur help =)!!!!!!!!@!!!!
Copy linkTweet thisAlerts:
@felgallApr 23.2006 — Fix up the tags in your messages any you might get the script to work (although that particular script is designed primarily for version 4 browsers).
×

Success!

Help @pbobdelux 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.8,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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