Jump to content

[SOLVED] space (my god it's full of stars!)


tinker

Recommended Posts

Here's an example of a scroller demo:

<html>
<head>
<script type="text/javascript">
var scroller_delay = 250;
var scroller_pos = 0;

var scroller_pre = escape('      ');	//chr(160);
var scroller_msg = scroller_pre + 'This is the message that needs to be told...';

function scroller()
{
ilen = scroller_msg.length;
scroller_pos++;
if (scroller_pos >= ilen)
{
	scroller_pos = 0;
}
msg = scroller_msg.substring(scroller_pos, ilen);
document.anchors['first'].innerHTML = msg;
var t=setTimeout ('scroller()', scroller_delay);
}
</script>
</head>
<body onload="scroller();">
<br>
<a name="first">First anchor</a><br>
<br><br>
</body>
</html>

 

What my problem is 'escape()' it show's as if it's url-encoded (%20), i've tried lot's of other way's including <pre>, chr(160),  , etc all to no avail, how to do the spacey thing?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.