Вернуться   Дизайнерский форум » ВЕБ-ПРОГРАММИРОВАНИЕ » HTML, CSS, JavaScript

Нужен скрипт

Обсуждение темы Нужен скрипт в разделе HTML, CSS, JavaScript, часть категории ВЕБ-ПРОГРАММИРОВАНИЕ; Нужен скрипт типо того который я предлогаю скачать вав но только он должен грузится с открытием страницы помогите плиз ---------------------------------------------------------------------- <html> <head> <meta ...


Закрытая тема
 
Опции темы
Старый 08.02.2006, 23:31   #1
Нужен скрипт типо того который я предлогаю скачать вав но только он должен грузится с открытием страницы помогите плиз


----------------------------------------------------------------------


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<TITLE>Занавес</TITLE>

<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -


var pause=50
var widthstep=10
var curtaincolor1="444444"
var curtaincolor2="333333"
var curtaincolor3="555555"
var curtaincolor4="222222"
var screenheight
var screenwidth
var heightstep
var maxmove=0
var timer
var url
var curtaincontent1=""
var curtaincontent2=""
var curtaincontent3=""
var curtaincontent4=""

function init() {
if (document.all) {
screenwidth=document.body.clientWidth
screenheight=document.body.clientHeight
curtaincontent1="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor1+"'> </td></tr></table>"
curtaincontent2="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor2+"'> </td></tr></table>"
curtaincontent3="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor3+"'> </td></tr></table>"
curtaincontent4="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor4+"'> </td></tr></table>"
curtain1.innerHTML=curtaincontent1
curtain2.innerHTML=curtaincontent2
curtain3.innerHTML=curtaincontent3
curtain4.innerHTML=curtaincontent4
heightstep=Math.round(widthstep/screenwidth*screenheight)
}
if (document.layers) {
screenwidth=window.innerWidth
screenheight=window.innerHeight
curtaincontent1="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor1+"'></td></tr></table>"
curtaincontent2="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor2+"'></td></tr></table>"
curtaincontent3="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor3+"'></td></tr></table>"
curtaincontent4="<table cellpadding=0 cellspacing=0 width='"+screenwidth+"' height='"+screenheight+"'><tr><td bgcolor='"+curtaincolor4+"'></td></tr></table>"
document.curtain1.document.write(curtaincontent1)
document.curtain1.document.close()
document.curtain2.document.write(curtaincontent2)
document.curtain2.document.close()
document.curtain3.document.write(curtaincontent3)
document.curtain3.document.close()
document.curtain4.document.write(curtaincontent4)
document.curtain4.document.close()
heightstep=Math.round(widthstep/screenwidth*screenheight)
}
}

function openpage(thisurl) {
url=thisurl
if (document.all) {
document.all.curtain1.style.posTop=-screenheight
document.all.curtain1.style.posLeft=0
document.all.curtain2.style.posTop=0
document.all.curtain2.style.posLeft=screenwidth
document.all.curtain3.style.posTop=screenheight
document.all.curtain3.style.posLeft=0
document.all.curtain4.style.posTop=0
document.all.curtain4.style.posLeft=-screenwidth
document.all.curtain1.style.visibility="VISIBLE"
document.all.curtain2.style.visibility="VISIBLE"
document.all.curtain3.style.visibility="VISIBLE"
document.all.curtain4.style.visibility="VISIBLE"
movecurtains()
}
if (document.layers) {
document.curtain1.top=-screenheight
document.curtain1.left=0
document.curtain2.top=0
document.curtain2.left=screenwidth
document.curtain3.top=screenheight
document.curtain3.left=0
document.curtain4.top=0
document.curtain4.left=-screenwidth
document.curtain1.visibility="VISIBLE"
document.curtain2.visibility="VISIBLE"
document.curtain3.visibility="VISIBLE"
document.curtain4.visibility="VISIBLE"
movecurtains()
}
}

function movecurtains() {
if (maxmove<=screenwidth/2) {
if (document.all) {
document.all.curtain1.style.posTop+=heightstep
document.all.curtain2.style.posLeft-=widthstep
document.all.curtain3.style.posTop-=heightstep
document.all.curtain4.style.posLeft+=widthstep
}
if (document.layers) {
document.curtain1.top+=heightstep
document.curtain2.left-=widthstep
document.curtain3.top-=heightstep
document.curtain4.left+=widthstep
}
maxmove+=widthstep
var timer=setTimeout("movecurtains()",pause)
}
else {
clearTimeout()
document.location.href=url
}
}

// - End of JavaScript - -->
</SCRIPT>

<STYLE>
.curtain {
position:absolute;
visibility:hidden;
}
</STYLE>

</HEAD>
<BODY bgcolor=#EEEEFF onLoad="init()" style="width:100%;overflow-x:hidden;overflow-y:hidden">

<DIV ID="deletethisblock" class="redirstyle" style="position: absolute; left: 10; top: 10; color: 000000; font-family: Verdana; font-size: 8pt; width: 683; height: 200">
<ul>Занавес

Этот скрипт создаёт эффект занавеса при
уходе пользователя со страницы.

Посмотрите скрипт в действии... Нажмите на
ссылку:
[*]Тест[/list]</DIV>

<DIV ID="curtain1" class="curtain"></DIV>
<DIV ID="curtain2" class="curtain"></DIV>
<DIV ID="curtain3" class="curtain"></DIV>
<DIV ID="curtain4" class="curtain"></DIV>

</BODY>
</HTML>



-----------------------------------------------------------------------
 
Старый 08.02.2006, 23:31
Ссылки
Старый 09.02.2006, 00:48   #2
ёмаё!
ну вот ты серьёзно думаешь, что кто-то будет в этом коде разбираться?? ты просто скажи, что должен делать скрипт?
 
Старый 09.02.2006, 10:08   #3
заменяешь туфту всю, что ты там написал на эту строку
<meta http-equiv="Page-Enter" content="revealTrans(Duration=1,Transition=0)">
будет тебе каждый раз эффект занавеса и ещё много других.
 
Старый 12.02.2006, 23:33   #4
таа закрыта нашел что искал
 
Старый 12.02.2006, 23:33
Закрытая тема


Опции темы


Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Нужен скрипт maxefect HTML, CSS, JavaScript 8 03.01.2012 00:21
Нужен поисковый скрипт ILA HTML, CSS, JavaScript 42 27.10.2004 10:42
нужен скрипт на Java Boris HTML, CSS, JavaScript 3 22.07.2004 16:12
Нужен такой РНР скрипт SaN HTML, CSS, JavaScript 12 03.05.2004 15:23
Нужен скрипт за $$$ Silver ASP, Perl, PHP и MySQL 2 13.11.2003 18:21


Текущее время: 06:14. Часовой пояс GMT +4.

Реклама на форуме Условия размещения рекламы
Биржа ссылок Заработай на сайте!
Дизайнерский форум