|
|
|
| Меня интересцэт как зделать бегущюю строку но такую чтобы текст бежал сверху вниз, так как в http://www.turtess.com.ua. Там она сделана в красной полосе??? | |
|
|
|
|
|
|
|
для: vital
(08.10.2008 в 13:16)
| | Используйте функцию scroll_text(string, up_to_down).
Ну с чего вы решили, что РНР, серверный язык, сделает вам бегущую строку? В HTML раздел, это может сделать только JS или... в общем туда вам :) | |
|
|
|
|
|
|
|
для: sim5
(08.10.2008 в 13:22)
| | Есть токой скрыпт бегущей строки:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Banner roller by HTML.BY team</title>
<script type="text/javascript" language=Javascript src="dw_scroller.js"></script>
<style type="text/css">
<!--
div#wn {
position: absolute; left: 850px; top: 350px;
width: 700px;
height: 56px;
z-index: 100;
clip: rect(0px, 250px, 180px, 0);
valign: top;
overflow: hidden;
margin-top: 17;
}
div#cnt {
position: absolute;
z-index: 1
}
div#cnt td {
width: 220px;
height: 80px;
text-align: center;
vertical-align: middle;
}
body {
font: 6px/1.3 verdana, arial, helvetica, sans-serif
}
h1 {
font-size: 1.3em
}
a:link {
color: #33c
}
a:visited {
color: #339
}
div#content {
margin-right: 290px
}
-->
</style>
<script type="text/javascript">
function initScroller()
{
var scr1 = new dw_scroller('cnt', 500, 80, 3, "v", true);
}
</script>
</head>
<body onload="initScroller()">
<div id="wn">
<div id="cnt">
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><a href="<?php echo SITEPREFIX.'/'.$CLang->lang_current[1]; ?>/tyrcija/" style="color: White;" ><? echo $CParts->partArrayNames[$CParts->partArraySynonym['tyrcija']][name]; ?></a></td>
</tr>
<tr>
<td valign="top"><a href="<?php echo SITEPREFIX.'/'.$CLang->lang_current[1]; ?>/egypt/" style="color: White;" ><? echo $CParts->partArrayNames[$CParts->partArraySynonym['egypt']][name]; ?></a></td>
</tr>
<tr>
<td valign="top"><a href="<?php echo SITEPREFIX.'/'.$CLang->lang_current[1]; ?>/malta/" style="color: White;" ><? echo $CParts->partArrayNames[$CParts->partArraySynonym['malta']][name]; ?></a></td>
</tr>
</table>
</div>
</div>
</body>
</html>
Вопрос Как мне уменьшить отступ от верхней граныцы до текста?????? Какоэ ето свейство в цсс? | |
|
|
|
|
|
|
|
для: vital
(08.10.2008 в 18:00)
| |
position: absolute; left: 850px; top: 350px;
|
top - отступ сверху | |
|
|
|