Pogledajte određenu poruku
Staro 06. 02. 2007.   #4
Br@nkoR
banned
Professional
 
Avatar Br@nkoR
 
Datum učlanjenja: 04.06.2005
Poruke: 371
Hvala: 0
738 "Hvala" u 83 poruka
Br@nkoR će postati "faca" uskoroBr@nkoR će postati "faca" uskoroBr@nkoR će postati "faca" uskoroBr@nkoR će postati "faca" uskoroBr@nkoR će postati "faca" uskoroBr@nkoR će postati "faca" uskoroBr@nkoR će postati "faca" uskoro
Default

Previše mi je dosadno, pa htedoh da isprobam ovo, možda posluži kao ideja, znači ništa posebno:
Kôd:
<html>
<head>
<title>test</title>
<script>

var i = 0, w, t;

function read_c() {
  tw('C:\&gt;dir c:<br /><br />&nbsp;Volume in drive C has no label<br />&nbsp;Volume Serial Number is 000-000<br />&nbsp;Directory of C:\<br /><br />DIR1 &lt;dir&gt; 00-00-00 00:00 dir1<br />DIR2 &lt;dir&gt; 00-00-00 00:00 dir2<br />&nbsp;&nbsp;&nbsp;0 file(s)&nbsp;&nbsp;0 bytes<br />&nbsp;&nbsp;&nbsp;2 dir(s)&nbsp;&nbsp;0 bytes free');
}
function tw(testString) {
  if(t) return false;
  w = testString.match(/<[^>]+>|&[^;]+;|.{1}/img);
  t = setInterval('add()', 100);
}

function add() {
  var a = '';
  var b = w;
  var d = document.getElementById('test');
  for(j = 0; j < b.length; j++) {
    a += b[j];
    if(j == i) break;
  }
  d.innerHTML = a;
  if(i != (w.length - 1)) d.innerHTML += '_';
  i++;
  if(typeof w[i] == 'undefined') {
    clearInterval(t);
    t = null;
    i = 0;
  }
}
</script>

</head>
<body>

<a href="#" onclick="tw('aak <strong>kl</strong> kl <br /> asdf &nbsp; ddf <i>gd</i>'); return false;">test start</a>
<form onsubmit="read_c();return false;"><input type="submit" value="dir c:"/></form>
<div id="test"></div>

</body>
</html>
__________________
Don't look at me; I'm lost too.
“If you can't dazzle them with brilliance, baffle them with bul*s**t.”
Br@nkoR je offline   Odgovorite uz citat