![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2006
Posts: 9
Rep Power: 0
![]() |
Any one think i should give this a shot
OK i had an idea for a sort of 'Matrix style' home page for a website.
1)The text appears letter by letter. 2)Full stops clear the screen then carry on typing 3)You can chose if you want to loop the text (just some text in a site) 4) or at the end load your main page (home page for a site) let me know if you think i should give it a try |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 122
Rep Power: 3
![]() |
Yes...
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet" |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Mar 2006
Posts: 9
Rep Power: 0
![]() |
OK ill give it a shot here is what ive got so far
<html>
<head>
<title>MATRIX TEXT!</title>
<script src="matrix.js"></script>
</head>
<body bgcolor=#000000>
<font color="green">
<span id="blah">This Script was created by .Alias .Do Not Remove commenting . c[dot]alias[dot]s@hotmail[dot]co[dot]uk</span>
</font>
<script language="javascript">
/****************************
*THIS MUST NOT BE DELETED
*(c) .Alias.
*Contact c.alias.s@hotmail.co.uk
****************************/
/****************************
*Controls time between each Char.
*Change To Suit You
****************************/
beginTxt("blah", "", 100);
</script>This is just index.html im working on matrix.js at the moment. |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Mar 2006
Posts: 9
Rep Power: 0
![]() |
well ive finished matrix.js
function addC()
{
string = string.replace(/<([^<])*>/, ""); // Prevents HTML tags from effecting the page
if(x < string.length)
{
textBuffer += string.charAt(x);
dot = string.charAt(x); //Sets variable dot for checking
if (dot == ".") //Check for full stops in text
{ //If there is a full stop it
textBuffer=''; //starts a clean page
}
txt.innerHTML = textBuffer;
x++;
setTimeout('addC()', pause);
}
if (x == string.length)
{
if (home == "")
{
x=0;
textBuffer = "";
}
else
{
setTimeout('reLoc()', (pause * 4)) // Send viewer to home page with pause to read text.
}
}
}
function reLoc()
{
window.location = home; // Send viewer to home page
}
function beginTxt(wanted, site, delay)
{
if (document.getElementById)
{
home = site;
pause = delay;
txt = document.getElementById(wanted);
if(txt.innerHTML)
{
textBuffer = " "; // Stops the loss of Spaces
x = 0;
string = txt.innerHTML;
txt.innerHTML = " ";
addC();
}
}
}To see these in action visit Go here, will send you to the second example |
|
|
|
|
|
#5 | |
|
Professional Programmer
|
Looks nice. Shouldn't the text be a bit more "blocky" though?
Like this? I don't know, I just think it gives it more of a matrix feel.
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
|
|
#6 |
|
Newbie
Join Date: Mar 2006
Posts: 9
Rep Power: 0
![]() |
Yea i guess i could change that i never really thought about what the text looks like
|
|
|
|
|
|
#7 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Frankly, blackboards and green chalk and black screens and green text went out years ago in favor of white boards and erasable markers and tubes that had more than "green on/off" capabilities. A web page is a set of markup presenting material. Pleasing design is part of the job. Green on black (or red on black or black on black) is probably not perceived as pleasing by the majority of design buyers. If you must choose black for whatever reason, you probably should choose a brighter color, for contrast. Just an opinion, of course, and only the client's really counts.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|