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
https://forums.phpfreaks.com/topic/86503-solved-space-my-god-its-full-of-stars/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.