Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mouse over script and scroller script

Status
Not open for further replies.

byan

Technical User
Jul 31, 2002
6
0
0
US
I'm looking for a free mouse over script that allows you to change an image when the mouse is over a different image
so i want it so an different image than what the mouse is over changes.

Also i am looking for a free type-writer scroller that does not use a box, or at least the box has no scroll bar or border.

If any one knows of where i can find such things please respond to this post,
Byan
 
try something like this:

<img src=&quot;pic1.jpg&quot; name=&quot;pics&quot; onMouseOver=&quot;document.pics2.src='pic3.jpg'&quot;
onMouseOut=&quot;document.pics2.src='pic2.jpg'&quot;>
</img>

<img src=&quot;pic2.jpg&quot; name=&quot;pics2&quot;>.
</img>
 
Also i am looking for a free type-writer scroller that does not use a box, or at least the box has no scroll bar or border
This will work for any container.

<html>
<head>
<script>
var it=0
function initialize(){
mytext=typing.innerText
var myheight=typing.offsetHeight
typing.innerText=''
document.all.typing.style.height=myheight
document.all.typing.style.visibility=&quot;visible&quot;
typeit()
}
function typeit(){
typing.insertAdjacentText(&quot;beforeEnd&quot;,mytext.charAt(it))
if (it<mytext.length-1){
it++
setTimeout(&quot;typeit()&quot;,70)
}
else
return
}
</script>
</head>
<body onLoad=&quot;initialize();&quot;>
<span id=&quot;typing&quot; style=&quot;color:gold;&quot; align=&quot;left&quot;><div>
Testing typing</div></span>
</body>
</html>
Hope it helps.
 


Stipped down version
Code:
<script>
var it=0
function initialize(){
mytext=typing.innerText
typing.innerText=''
typeit()
}
function typeit(){
typing.insertAdjacentText(&quot;beforeEnd&quot;,mytext.charAt(it))
if (it<mytext.length-1){
it++
setTimeout(&quot;typeit()&quot;,70)
}
}

</script>
 
[tt]Check with these guys

[sup]
-Tony
Delete * from brain Where MaxLevel = &quot;Full&quot; and reaction = &quot;Slow&quot; order by StartOver
[/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top