Техническая поддержка SpyBB

Объявление

Ответы на часто задаваемые вопросы  |  FAQ по администрированию форума  |  FAQ по дизайну форума в CSS  |  Абсолютный помощник по дизайну  |  Навигатор по форуму

Перед регистрацией прочтите правила форума
При поиске ответа на заданный вопрос рекомендуем пользоваться «Поиском».
В случае проблемы с форумом, обязательно указывайте его адрес, иначе мы не сможем Вам помочь!

● 24 марта 2012г. - Закрепление первого сообщения
● 23 марта 2012г.: Изменения в форме ответа - Добавлен стандартный спойлер. Доработан функционал кнопок

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Техническая поддержка SpyBB » Архив » ВОПРОСИК


ВОПРОСИК

Сообщений 1 страница 2 из 2

1

Как мне поставить этот скрипт  в таблицу в места  картинки

<SCRIPT>
<!-- Beginning of JavaScript -
   
// The width of your image (pixels)
var imgwidth=502

// The height of your image (pixels)
var imgheight=600

// The URL of the sliced image
var imgurl="pics.jpg"

// Final horizontal position of the image: distance to the left margin of the window
var x_finalpos=5

// Final vertical position of the image: distance to the top margin of the window
var y_finalpos=5

// Number of slices
var imgslices=20

// Speed of slices
var step=50
var pause=20

// Do not change the variables below
var marginright
var width_slice=Math.floor(imgwidth/imgslices)
var cliptop=0
var clipbottom=imgheight
var clipleft=0
var clipright=width_slice
var spannummer=0
var spannrbefore=0

function initiate() {
if (document.all) {
    moveslices_IE()
}
}

function moveslices_IE() {
var thisspan=eval("document.all.span"+spannummer+".style")
if (thisspan.posLeft>x_finalpos-width_slice) {
    thisspan.posLeft-=step
    var timer=setTimeout("moveslices_IE()",pause)
}
else if (spannummer<imgslices-1) {
    clearTimeout(timer)
    thisspan.posLeft=x_finalpos
    spannummer++
    var timer=setTimeout("moveslices_IE()",pause)
}
else {
    thisspan.posLeft=x_finalpos
    clearTimeout(timer)
}
}

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

<!-- HEAD END HERE -->

</head>
<body bgcolor="#EDEDED" text="#000000" link="#000000" topmargin="0" leftmargin="0" onload=initiate()>

<!-- BODY START HERE -->

<SCRIPT>
<!-- Beginning of JavaScript -
for (i=0;i<=imgslices-1;i++) {
marginright=screen.width+50
    document.write("<span id='span"+i+"' style='position:absolute;visibility:visible; left:"+marginright+"px;top:"+y_finalpos+"px;clip:rect("+cliptop+"px "+clipright+"px "+clipbottom+"px "+clipleft+"px)'>")
document.write("<img src='"+imgurl+"'>")
    document.write("</span>")
clipleft+=width_slice
clipright+=width_slice
}
// - End of JavaScript - -->
</SCRIPT>

вот тблица

<table width=100% border=1>
<tr align=center>
<td width=25%>Главные админы</td>
<td><marquee scrollamount=5>Бегущая строка</marquee></td>
<td width=25%>Модераторы</td></tr>
<tr align=center>
<td>1<br>2</td>
<td rowspan=4><img src="вот сюда "><hr><marquee scrollamount=5>Бегущая строка</marquee></td>
<td>1<br>2</td></tr>
<tr align=center>
<td>Новости</td>
<td>Объявления</td></tr>
<tr align=center>
<td>1<br>2<br>3<br>4<br>5</td>
<td>Текст объявления</td></tr>
<tr align=center>
<td>Баннер</td>
<td>Баннер</td></tr>
</table>

подскажите плиз

Отредактировано IGRAMAN (11 Июн 2008 20:01:18)

0

2

IGRAMAN
ну так убирайте код картинки,тобишь это: <img src="вот сюда ">
И ставьте на его место скрипт.
Если нужно убрать и бегущую строку,то убираете это: <hr><marquee scrollamount=5>Бегущая строка</marquee>
И тогда ставите скрипт между оставшимися тегами,тобишь тут: <td rowspan=4>тут</td>

0


Вы здесь » Техническая поддержка SpyBB » Архив » ВОПРОСИК