Sælir piltar.

Ég er hérna með JavaScript kóða sem birtir ákveðinn texta þegar mað ur fer með músina yfir tengil, en vandamálið er að ég vil láta allan textann birtast í einu, ekki staf fyrir staf.

<script language=“JavaScript”>

// Mouseover link description script
// Script By Fayez Zaheer - viol8r@design64.net
// Support me by linking to www.design64.net
// Free for usage and modfication, but please do not
// remove this comment… Thanks :)

var speed = 0; // Delay in milliseconds between each character

// No need to change anything below
var place = 1;
var browser = document.all;
var ns = document.layers;
var ns6 = ((!browser) && (document.getElementById)) ? true : false;

// This is where you can set message style (font size, colour, face, etc)
var msgBeg = ‘<tt>’ // Start the tag(s)
var msgEnd = ‘</tt>’ // Close the tag(s)

// No need to change anything else
function typeIt(msg){
if(browser){
text.innerHTML = msg;
}

else if(ns){
document.text.document.open();
document.text.document.write(msg);
document.text.document.close();
}

else if(ns6) document.getElementById(“text”).innerHTML = msg;
}

var msg = new String();
function typeOut(msg){
if (place >= msg.length){
place = 1;
clearTimeout(to);
}
else{
place++;
theThing = msgBeg + msg.substring(0, place) + msgEnd;
typeIt(theThing);
to = setTimeout(“typeOut('”+msg+“')”, speed);
}
}

function typeOutBlank(){
if(window.to){
clearTimeout(to)
}
typeIt('');
place = 1;
}
</script>

<a href=“#” onMouseover=“typeOut('blablabla')” onMouseout=“typeOutBlank()” onMouseup=“typeOutBlank()”>tengill</a>