Welcome Guest [Log In] [Register]
Welcome to Sonic Rapid Board. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
Which type of chao?
Chao that follows mouse cursor 1 (12.5%)
Chao that flies around randomly 5 (62.5%)
Chao that is stationary 0 (0%)
No chao at all 2 (25%)
Total Votes: 8
CHAOs?; Javascripts in general too
Topic Started: May 10 2006, 12:26 PM (1,024 Views)
BR


Choices!

1) Chao that follows the cursor-
I may be able to get it to move out of the way when the mouse comes over text, but I'm not sure. It has to do with the "style" attribute: 'visibility,' and I'm not sure if I can do it.
2) Chao that roams around-
Should have an on/off switch. Same with above.
3) Stationary chao-
Not sure why anyone would want this, but it's definitely possible! I think.
4) No chao at all-
Dudes. If the chaos make it tough to see the page due to loading times, TELL ME. I have no way of knowing otherwise.
Offline Profile Quote Post Goto Top
 
Crystal Rose
Member Avatar
GRAPPLING HOOK!

Randomly flying around Chao ^_^ It's so much easier and less annoying XD
Posted Image
Offline Profile Quote Post Goto Top
 
GoldenSama
Member Avatar
The Crazy One

Following the mouse is fun; until you try to write something. Then the chao gets in your way and it's hard to highlight text.

Because of that reason, I say let the little guy fly around randomly!
Posted Image
SHARP
Offline Profile Quote Post Goto Top
 
BR


I'm-a let the vote continue for a while; I will not vote. I tend to agree with the random one; it is certainly the easiest script and the least clumsy. ^_^

Although: if the visibility thing is the only reason you don't want the follower- I mean, if you'd rather have the follower except for the getting-in-the-way thing, be aware that if enough people want it, I can try to get him to move out of the way of text. :o Try, anyway.

Also: anybody want anything *besides* a chao floating around? Totally doable.
Offline Profile Quote Post Goto Top
 
GoldenSama
Member Avatar
The Crazy One

I'd love the following one *IF* it won't get in the way of text. But if not, random is good.

Eh, there is something I'd like besides a chao, but I think it's either impossible or it'd be a CRAPLOAD of work for you, so I won't mention it.
Posted Image
SHARP
Offline Profile Quote Post Goto Top
 
BR


What's this? :o

I smell-- A CHALLENGE!!! :3
Muhahaha!! I must know!!! Tell me GS!! :3
Offline Profile Quote Post Goto Top
 
GoldenSama
Member Avatar
The Crazy One

I'm telling you! Not possible!

Mah idea is to make the thing following the cursor either Sonic, Tails, Knuckles, Amy, Rouge or Shadow. HOWEVA, have it change who the character is everytime you go to a new page or reload! Randomize it!

... >_> Like I said, impossibible!
Posted Image
SHARP
Offline Profile Quote Post Goto Top
 
BR


Hmm.

That's actually possible. It would be very interesting to see if I could manage it. >:3

What I do is: take the script, and instead of the URL for the pic, make it a variable! And then in a second code, randomize the variable for a bunch of URLs! It's very possible! In fact, almost easy! I would love to try this! :3 Not tonight, obviously, but I will try!
Offline Profile Quote Post Goto Top
 
HellAvatar
Member Avatar
Mad Scientist / Head of Intel Division
Impossible?

Not at all.

It IS possible. What it does is combines the coding of random pictures (Like the one we have at the top of the page) with a "follower" to the mouse. Just as BR just said, what it does is randomises the codes from different URL directories instead of using a single URL.

It's simpler when you think about it logically.
Posted Image

Now becomes the the past in an instant — and everyone will eventually die! Destiny triumphs over human knowledge and goes mad! That is the way of things! I spit upon this frail, crazed, world! I spit upon the Second Law of Thermodynamics!
~ Desty Nova, Karmatron Theory

Let them Label me! Let them swear and curse at me as I tug humanity like a bucking bull into the darkness of the unknown, revealing its secrets to the sane and driving them MAD! In ages long past, I shall be looked upon as a tyrant and a savior! As a savant and as a fool! My work shall advance humanity long past its time, throw it into the unknown future and force it to grow strong or FALL! Years from now, when I will inevitably be removed, my work shall continue to progress, because these things cannot be denied! Governments will publicly criticize my work, but privately conduct research that advances it! I shall imprint myself into the annals of history, among the stars that shine as brightly as Albert Einstein, Isaac Newton, Benjamin Franklin, Dmitri Mendeleev, Nikola Tesla, and countless others! My work will shine as brightly as any star, and I AM ITS CREATOR!!!
~ Desty Nova, Morality


Posted Image
Offline Profile Quote Post Goto Top
 
BR


Exactamactamely! Except instead of randomizing pictures, we're randomizing what the variable (that replaces the URL in the chao code) is! Ooh, I can't wait to test my Javascript knowledge with this! >:3

Wait, Sonic and Co. or Sonic and Co. CHAOs? ?_?
Offline Profile Quote Post Goto Top
 
GoldenSama
Member Avatar
The Crazy One

Well, MFZ has tiny Sonic & Co's, but Sonic & Co Chaos would be good too.
Posted Image
SHARP
Offline Profile Quote Post Goto Top
 
BR


Or, you can have a faceless BOX floating around! Isn't this the greatest?
>_<

In progress...
Offline Profile Quote Post Goto Top
 
GoldenSama
Member Avatar
The Crazy One

BlueRush
May 10 2006, 10:16 PM
Or, you can have a faceless BOX floating around! Isn't this the greatest?
>_<

In progress...

Wooo! Faceless boxes are awesome!
Posted Image
SHARP
Offline Profile Quote Post Goto Top
 
BR


HA!! What da heyack am I doing wrizz-ong?

Code: HTML
 
<!--Insert the below inside the <BODY> section of the page.-->


<SCRIPT language="JavaScript1.2">

/*
Roaming Cursor script
for more scripts, visit [URL=http://rainbow.arch.scriptmania.com]http://rainbow.arch.scriptmania.com[/URL]
*/

if (document.layers)
{document.write("<LAYER NAME='PoInTeRs' LEFT=10 TOP=10><img src='"+ranimage()+"' width=17 height=22></LAYER>")}
else if (document.all){document.write("<div id='pOiNtErS' style='position:absolute;top:10px;left:10px;width:17px;height:22px;z-index:50'><img src='"+ranimage()+"' width=17 height=22></div>")}

count=-1;
move=1;

function Curve(){
abc=new Array(0,1,1,1,2,3,4,0,6,-1,-1,-1,-2,-3,-4,0,-6)
for (i=0; i < abc.length; i++)
{var C=Math.round(Math.random()*[i])}
howbend=abc[C];
setTimeout('Curve()',1900);
return howbend;
}
ypos=10;
xpos=10;

degree = 60;
function MoveRandom(){
PathBend=degree+=howbend;//ok!
y = 4*Math.sin(PathBend*Math.PI/180);
x = 6*Math.cos(PathBend*Math.PI/180);
if (document.layers){
ypos+=y;
xpos+=x;
document.PoInTeRs.top=ypos+window.pageYOffset;
document.PoInTeRs.left=xpos+window.pageXOffset;
}
else if (document.all){
ypos+=y;
xpos+=x;
document.all.pOiNtErS.style.top=ypos+document.body.scrollTop;
document.all.pOiNtErS.style.left=xpos+document.body.scrollLeft;
}
T=setTimeout('MoveRandom()',50);
}
function edges(){
if (document.layers){
if (document.PoInTeRs.left >= window.innerWidth-40+window.pageXOffset)degree=Math.round(Math.random()*45+157.5);
if (document.PoInTeRs.top >= window.innerHeight-30+window.pageYOffset)degree=Math.round(Math.random()*45-112.5);
if (document.PoInTeRs.top <= 2+window.pageYOffset) degree = Math.round(Math.random()*45+67.5);//OK!
if (document.PoInTeRs.left <= 2+window.pageXOffset) degree = Math.round(Math.random()*45-22.5);//OK!
}
else if (document.all)
{
if (document.all.pOiNtErS.style.pixelLeft >= document.body.offsetWidth-45+document.body.scrollLeft)degree=Math.round(Math.random()*45+157.5);
if (document.all.pOiNtErS.style.pixelTop >= document.body.offsetHeight-35+document.body.scrollTop)degree=Math.round(Math.random()*45-112.5);
if (document.all.pOiNtErS.style.pixelTop <= 2+document.body.scrollTop) degree = Math.round(Math.random()*45+67.5);//OK!
if (document.all.pOiNtErS.style.pixelLeft <= 2+document.body.scrollLeft) degree = Math.round(Math.random()*45-22.5);//OK!
}
setTimeout('edges()',100);
}
function starteffect(){
Curve();
MoveRandom();// onUnload="opener.gO()"
edges();
}

if (document.all||document.layers)
window.onload=starteffect

var currentdate = 0
var core = 0

function StringArray (n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '

}
}

image = new StringArray(5)
image[0] = 'http://img99.imageshack.us/img99/3927/animation41mb.gif'
image[1] = 'http://img99.imageshack.us/img99/2376/animation71qk.gif'
image[2] = 'http://img164.imageshack.us/img164/9007/gir8yi.gif'
image[3] = 'http://img99.imageshack.us/img99/673/metroid7ja.gif'
image[4] = 'http://img164.imageshack.us/img164/7808/chao8ce.gif'


var ran = 60/image.length

function ranimage() {
currentdate = new Date()
core = currentdate.getSeconds()
core = Math.floor(core/ran)
return(image[core])
}

</script>


;_; Logically it should work!

EDIT: Added different stuff-- still busted...

EDIT: Try more tommorrow. Removed code for speed. ^_^ Temporarily, with any luck.
Offline Profile Quote Post Goto Top
 
sonicahero
E-Series Robot
I voted for the second Choice
Posted Image Posted Image
Posted Image Posted Image Posted Image Posted Image Posted ImagePosted Image<i
http://sonicthehedgehog.activebb.net/
Join Now!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Board News Zone · Next Topic »
Add Reply
  • Pages:
  • 1

"If I knew how to NOT get people pregnant, you wouldn't exist." - Rica