В этой статье описывается метод прокрутки текста, когда JS парят на картинке. Поделитесь этим для вашей ссылки. Конкретный метод реализации следующим образом:
Скопируйте код следующим образом: <html>
<Tilt> JS реализует описание текста прокрутки при падении на картинках </title>
<тело>
<Script language = "javascript">
<!- Начни
Функция showtip2 (current, e, text) {
if (document.all && document.ReadyState == "overse") {
document.all.tooltip2
document.all.tooltip2.style.pixelleft = event.clientx+document.body.scrollleft+10
document.all.tooltip2.style.pixeltop = event.clienty+document.body.scrolltop+10
document.all.tooltip2
}
иначе if (document.layers) {
document.tooltip2.document.nstip.document.write ('<b>'+text+'</b>')
document.tooltip2.document.nstip.document.close ()
document.tooltip2.document.nstip.left = 0
CurrentScroll = setInterval ("scrolltip ()", 100)
document.tooltip2.left = e.pagex+10
document.tooltip2.top = e.pagey+10
document.tooltip2.visibility = "show"
}
}
function heaTetip2 () {
if (document.all)
document.all.tooltip2.style.visibility = "скрытый"
иначе if (document.layers) {
ClearInterval (CurrentScroll)
document.tooltip2.visibility = "скрытый"
}
}
// end ->
</script>
<div id = "tooltip2" style = "Положение: абсолютное; видимость: скрыто; клип: rect (0 150 50 0); ширина: 150px; фоновый цвет: золото; z-index: 10"> </div>
<div align = "center" name = "divtest" onmouseover = "showtip2 (это, событие," добро пожаловать на wulin.com '); " onmouseout = "hidetip2 ();" Style = "cursor: hand">
<Таблица CellPadding = "0" cellPacing = "0"> <Tr> <td colSpan = "7">
<img src = "/images/banner.gif" border = "0" style = "cursor: pointer;"/>
</Table>
</div>
</body>
</html>
Я надеюсь, что эта статья будет полезна для каждого программирования JavaScript.