This is the Message Centre for Lisa the Freak // Poet by the Toga

CHANGY COLOURS AND THE COOOOOOOL BUTTON!!

Post 1

Ddychweledig - pining for the Fjords

TELL ME HOW YOU DO THAT!


CHANGY COLOURS AND THE COOOOOOOL BUTTON!!

Post 2

Lisa the Freak // Poet by the Toga

Okay, I'm going to have to put a page up or something, people keep asking me how I do them. smiley - smiley

For the changy colours, put the following code (I don't recommend altering it) after the tag in your page.
From here -

<!-- Cut-N-Paste JavaScript from ISN Toolbox
Copyright 1996, Infohiway, Inc. Restricted use is hereby
granted (commercial and personal OK) so long as this code
is not *directly* sold and the copyright notice is buried
somewhere deep in your HTML document. A link to our site
http://www.infohiway.com is always appreciated of course,
but is absolutely and positively not necessary. -->


<!--
function initArray() {
for (var i = 0; i < initArray.arguments.length; i++) {
this[i] = initArray.arguments[i];
}
this.length = initArray.arguments.length;
}

// you may fill this colors array with your colors.
// the script will rotate the links through these colors
var colors = new initArray(
"#ffffff",
"#ffffef",
"#ffffdf",
"#ffffcf",
"#ffffbf",
"#ffffaf",
"#ffff9f",
"#ffff8f",
"#ffff7f",
"#ffef7f",
"#ffdf7f",
"#ffcf7f",
"#ffbf7f",
"#ffaf7f",
"#ff9f7f",
"#ff8f7f",
"#ff7f7f",
"#ff7f8f",
"#ff7f9f",
"#ff7faf",
"#ff7fbf",
"#ff7fcf",
"#ff7fdf",
"#ff7fef",
"#ff7fff",
"#ff8fff",
"#ff9fff",
"#ffafff",
"#ffbfff",
"#ffcfff",
"#ffdfff",
"#ffefff");

pause_time = .3; // in seconds

link = 0; // starting color index (in colors array) for unvisited links
vlink = 4; // starting color index (in colors array) for visited links

function linkDance() {
link = (link+1)%colors.length;
vlink = (vlink+1)%colors.length;
//alert("link "+link+"\r\nvlink "+vlink+"\r\nvlinkColor "+document.vlinkColor);
document.linkColor = colors[link];
document.vlinkColor = colors[vlink];
setTimeout("linkDance();",pause_time*1000);
}
linkDance();
// -->




to here.

For the button, you need to put the following code after the tag as well..

Here-


var alerted_already;
var remark;
function theytyped(form) {
for ( j = 1;
j<=remark.length && remark[j]!=form.myoutxt.value;
j++){}
if (j>remark.length)
form.myoutxt.value = "Do not type here!";
return false;
}
function touched_frog() {
if (!alerted_already) {
alert(""+
""+
""+
""+
""+
"");
alerted_already = true;
}
return alerted_already;
}
function compute(form) {
for (var i = 1;
i<=remark.length && remark[i]!=form.myoutxt.value ;
i++){}
if (i==remark.length)
history.back();
if (i==remark.length-1) alert("Dear Sir or Madam:"+

"\n\n It has come to our attention that you have been harassing"+

"\none of the buttons on the web. Although most buttons are"+

"\nunderstanding about this type of thing (being repeatedly pressed),"+

"\nsome rogue buttons have decided to form a support group and have"+

"\npetitioned the webmaster for funds to provide a secure place for"+

"\nrest and relaxation. Due to the large number of requests, this"+

"\nwarning has been installed:"+

"\n IF YOU PERSIST PRESSING THIS BUTTON,"+

"\nYOU WILL BE EJECTED FROM THIS SCREEN."+

"\n\n Thank you for your cooperation,"+

"\n\n The Federation for Oppressed and Abused Buttons"+

"\n\nenclosure: Message from oppressed complaintant"+

"\n\nDear Federation for Oppressed and Abused Buttons"+

"\n\n As I have been able to secure your assistance before,"+

"\nI beg your help in stopping the on going abuse I am once again"+

"\nforced to endure. THIS GUY WILL NOT STOP!"+

"\n\n Sincerely"+

"\n\n Push Me"+

"\n\np.s. I will definitely attend the annual meeting next July");
if (i<remark.length)
form.myoutxt.value = remark[i+1];
else
form.myoutxt.value = remark[1];
}
function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++)
this[i+1] = initArray.arguments[i];
}
remark = new initArray("Thanks!",

"Once is enough!",

"Are you deaf?",

"Go!!..Go back to H2G2!!",

"PISS OFF!",

"I give up. Please stop.",

"I DID say please!!!",

"O.K. I HEARD YOU!",

"This is NOT funny!",

"I give up.",

"This is now a BACK BUTTON!!!!");
alerted_already = false;
//

to here.

And you put the following script wherever you want the button to go.

from here-





to here.

PS I don't recommend leaving the "from here to here" bits in either!!


CHANGY COLOURS AND THE COOOOOOOL BUTTON!!

Post 3

Ddychweledig - pining for the Fjords

Is yours in GUIDEML?


CHANGY COLOURS AND THE COOOOOOOL BUTTON!!

Post 4

Lisa the Freak // Poet by the Toga

yeah, but it works in both html and guideml.


CHANGY COLOURS AND THE COOOOOOOL BUTTON!!

Post 5

Ddychweledig - pining for the Fjords

Does it?!? When I did it in GUIDEML it kept coming up as errors but when I put it in HTML it worked...


CHANGY COLOURS AND THE COOOOOOOL BUTTON!!

Post 6

Lisa the Freak // Poet by the Toga

You must have been pressing preview, because it's a html code. But it does work in GuideML cos my page is in guideml.


CHANGY COLOURS AND THE COOOOOOOL BUTTON!!

Post 7

Ddychweledig - pining for the Fjords

Yeah, so's mine nooooow


Key: Complain about this post

More Conversations for Lisa the Freak // Poet by the Toga

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more