Hi,
I am using javascript to implement TypeWriter Effect in the page but problem is JS is being blocked by IE. How to solve this? The code is given below.
<html>
<head>
<SCRIPT LANGUAGE=”JavaScript”>
<!–
var text=”content of text here”;
var delay=50;
var currentChar=1;
var destination=”[not defined]”;
var t;
function type(){
if (document.getElementById){
var dest=document.getElementById(destination…
if (dest)
{
dest.innerHTML=text.substr(0, currentChar);
currentChar++;
if (currentChar>text.length)
{
currentChar=1;
clearTimeout(t);
}
else
{
t=setTimeout(“type()”, delay);
}
}
}
}
function startTyping(textParam, delayParam, destinationParam){
text=textParam;
delay=delayParam;
currentChar=1;
destination=destinationParam;
type();
}
–>
</SCRIPT>
</head>
<body>
<DIV ID=”dispData”></DIV>
<IMG SRC=”img.jpg” onMouseOver=”startTyping(‘This is my introduction’,50,’dispData’)”>
</body>
</html>
There are some more java script to set content at the run time when user clicks somthing and so on. They are also being blocked. Please help solving problem.