PDA

View Full Version : Javascript with Myspace



Zakius
Mar 29th, 2005, 01:12 AM
There are a crap load of awesome scripts I've found, and I'd like to use some of them with myspace, but I can't get it to work. say on a Status Bar Script like this one: http://kitprice.net/scripts/status_bar_messages/multi_line_teletype_status_bar_message/multi_line_teletype_status_bar_message.htm

I copy the code how they say starting with < script language="JavaScript" > and ending with < / script>, but only the code shows up on my profile and it doesn't do anything.

Does anyone have experience with scripts on MySpace? I've seen a few profiles with status bar scripts that work so it must be something I'm doing wrong.

this is the code I copied & pasted.....


<SCRIPT LANGUAGE = "JavaScript">
<!--
var curmes = 0
var a = 0
var counter = 0
var message = new Array()

// The following are the lines to change. Remove this line when done.
message[0] = "This is the first line."
message[1] = "You can add what you like in here."
message[2] = "Tell people about what you do, "
message[3] = "how you do it, and why you do it."
message[4] = "Then offer them something to bring them back"
message[5] = "again and again."
message[6] = "or to advise on site updates."
message[7] = "or future attractions"
message[8] = "Anything you want really"
message[9] = "Now I'm getting bored!"
message[10] = "So I'll stop!"
// DELETE OR ADD MORE MESSAGES HERE FOLLOWING ABOVE FORMAT

var temp = ""
function scrollit()
{
a = a + 1
check()
window.status = message[curmes].substring(0, a)
if(a == message[curmes].length + 10) // CHANGE 10 HERE IF REQUIRED
{
curmes = curmes + 1
a = 0
}
if(curmes > 10) // CHANGE 10 HERE IF REQUIRED
{
curmes = 0
}
counter = setTimeout("scrollit()", 80) // 80 IS SCROLL SPEED, HIGHERIS SLOWER, LOWER IS FASTER
}
function check()
{
if(a <= message[curmes].length)
{
if(message[curmes].substring(a, a + 1) == "")
{
a = a + 1
check()
}
}
}
// -->
</SCRIPT>



And what shows up is this... (screen shot)

http://img.photobucket.com/albums/v135/pro_zak/screen1.jpg

Willy Duitt
Mar 29th, 2005, 01:24 AM
Your question was answered here:
http://www.webdeveloper.com/forum/showthread.php?t=60960

Zakius
Mar 29th, 2005, 01:35 AM
thanks..

but myspace does support javascript becaue i've seen other profiles with status bar/cursors scripts & stuff like that.. i've even copied the codes from other peoples profiles to put on my mine, but still don't work....

...{chris}...
Mar 29th, 2005, 02:16 AM
Myspace clearly states that it only allows HTML/CSS scripts. It has its own Javascripting with the variables you place in it.
-ChRiS

_Aerospace_Eng_
Mar 29th, 2005, 02:20 AM
perhaps those pages u saw were using iframes?

brinked
Nov 10th, 2007, 10:19 PM
you cant use javascript on myspace in any shape or form..so just get over it :-P

BarrMan
Nov 10th, 2007, 10:32 PM
you cant use javascript on myspace in any shape or form..so just get over it :-P

Wow.. This post is 2 years old. How'd you get to it?

A1ien51
Nov 11th, 2007, 01:36 PM
Called someone is trying to get his lins spread around....:)