Title: CHAOs?
Description: Javascripts in general too
BlueRush - May 10, 2006 08:26 PM (GMT)
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.
Crystal Rose - May 10, 2006 10:01 PM (GMT)
Randomly flying around Chao ^_^ It's so much easier and less annoying XD
GoldenSama - May 10, 2006 11:13 PM (GMT)
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!
BlueRush - May 11, 2006 01:02 AM (GMT)
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.
GoldenSama - May 11, 2006 01:22 AM (GMT)
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.
BlueRush - May 11, 2006 01:31 AM (GMT)
What's this? :o
I smell-- A CHALLENGE!!! :3
Muhahaha!! I must know!!! Tell me GS!! :3
GoldenSama - May 11, 2006 01:55 AM (GMT)
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!
BlueRush - May 11, 2006 02:01 AM (GMT)
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!
HellAvatar - May 11, 2006 02:01 AM (GMT)
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.
BlueRush - May 11, 2006 02:02 AM (GMT)
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? ?_?
GoldenSama - May 11, 2006 02:04 AM (GMT)
Well, MFZ has tiny Sonic & Co's, but Sonic & Co Chaos would be good too.
BlueRush - May 11, 2006 02:16 AM (GMT)
Or, you can have a faceless BOX floating around! Isn't this the greatest?
>_<
In progress...
GoldenSama - May 11, 2006 02:20 AM (GMT)
| QUOTE (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!
BlueRush - May 11, 2006 02:24 AM (GMT)
HA!! What da heyack am I doing wrizz-ong?
| 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.
sonicahero - May 11, 2006 02:59 AM (GMT)
I voted for the second Choice
AGodofIrony - May 13, 2006 07:17 PM (GMT)
But their should also be something that let's us turn it off! My computer slows down immensely when something like that is up. It slowed down when we used to have the Chaos, and when there was the 'Happy Birthday C_R' on here as well.
So, until I get a better computer, I vote no Chao. My computer can't handle it!