Летающий текст ! - icq-proga - Форум Бесплатный софт, софт для windows, новый софт, soft 7, лучший софт, icq, icq бесплатно, скрипты для ucoz, скрипты для сайтов, темы для windows, windows 7, oc, Windows Vista, dle, dle модули, dle шаблоны, бесплатные dle шаблоны, хаки для dle, бесплатно, скачать бесплатно шаблоны dle, dle бесплатно, joomla, joomla 1.5, шаблоны joomla, бесплатные шаблоны joomla, Бесплатные модули Joomla, joomla модули - Летающий текст ! - icq-proga - Форум
Софт | Фильмы | Музыка | Шаблоны DLE | Шаблоны Joomla
E-mail: Пароль:
Регистрация
Забыли пароль?
Главная | Форум | Топ сайтов | Баннеробмен | смотреть зарубежное порно бесплатно Четверг, 05.02.2026, 04:44
[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Летающий текст !
adminДата: Понедельник, 08.03.2010, 02:11 | Сообщение # 1
Генералиссимус
Группа: Администраторы
Сообщений: 171
Репутация: 5
Статус: Offline
Вставляем между
Code
<script language="JavaScript1.2">

/*
Bouncy message script- By Dynamicdrive.com
*/

//Configure the below three variables

//1) Введите свое сообщение (HTML тэги также), <h4></h4> определяют размер шрифта
var thecontent='<h4><font color="#0000FF">ТЕКСТ</font></h4>'
//2) Установите скорость "рекошетирования" (1-50)
var BallSpeed = 5;

var hidetimer='';
var contentWidth;
var contentHeight;
var maxBallSpeed = 50;

var xMax;
var yMax;
var xPos = 0;
var yPos = 0;
var xDir = 'right';
var yDir = 'down';
var superballRunning = true;
var tempBallSpeed;
var currentBallSrc;
var newXDir;
var newYDir;

function initializeBall() {
if (document.all) {
xMax = document.body.clientWidth
yMax = document.body.clientHeight
document.all("supertext").style.visibility = "visible";
contentWidth=supertext.offsetWidth
contentHeight=supertext.offsetHeight
}
else if (document.layers) {
xMax = window.innerWidth;
yMax = window.innerHeight;
contentWidth=document. supertext.document.width
contentHeight=document. supertext.document.height
document.layers["supertext"]. visibility = "show";
}
setTimeout('moveBall()',400);
if (hidetimer!='')
setTimeout("hidetext()",hidetimer)
}

function moveBall() {
if (superballRunning == true) {
calculatePosition();
if (document.all) {
document.all("supertext").style.left = xPos + document.body.scrollLeft;
document.all("supertext").style.top = yPos + document.body.scrollTop;
}
else if (document.layers) {
document.layers["supertext"].left = xPos + pageXOffset;
document.layers["supertext"].top = yPos + pageYOffset;
}
animatetext=setTimeout('moveBall()',20);
}
}

function calculatePosition() {
if (xDir == "right") {
if (xPos > (xMax - contentWidth - BallSpeed)) {   
xDir = "left";
}
}
else if (xDir == "left") {
if (xPos < (0 + BallSpeed)) {
xDir = "right";
}
}
if (yDir == "down") {
if (yPos > (yMax - contentHeight - BallSpeed)) {
yDir = "up";
}
}
else if (yDir == "up") {
if (yPos < (0 + BallSpeed)) {
yDir = "down";
}
}
if (xDir == "right") {
xPos = xPos + BallSpeed;
}
else if (xDir == "left") {
xPos = xPos - BallSpeed;
}
else {
xPos = xPos;
}
if (yDir == "down") {
yPos = yPos + BallSpeed;
}
else if (yDir == "up") {
yPos = yPos - BallSpeed;
}
else {
yPos = yPos;
}
}

function hidetext(){
if (document.all)
supertext.style.visibility="hidden"
else if (document.layers)
document.supertext.visibility="hide"
clearTimeout(hidetext)
}

if (document.all||document.layers){
document.write('<span id= "supertext"> <nobr>'+thecontent+'</nobr></span>')
window.onload = initializeBall;
window.onresize = new Function("window.location.reload()");
}

</script>
 
  • Страница 1 из 1
  • 1
Поиск: