Jump to content
  • 0

Проблема в шапке сайта


mr_0003Spy
 Share

Question

Делаю свой сайт и когда делал шапку сайта, возникла проблема, я сделал лого, сделал рядом изменяющуюся картинку на JavaScript, но вот проблема, хочу ещё рядом повесить информацию о пользователе, но всё, что я пытаюсь сделать, почему-то помещается за изменяющуюся картинку, не где-то рядом, а именно за неё, а сделать что-то в той части шапки, где мне нужно, у меня не получается, туда ни чего не вставляется, не могу понять почему.

Сайт на юкозе. Вот, что у меня в шаблоне страниц сайта:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>$SITE_NAME$ - $MODULE_NAME$</title>
<link type="text/css" rel="StyleSheet" href="http://spynetwork.clan.su/style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Мульти-игровое сообщество" />
<meta name="keywords" content="Spy, Network, Multi, Gaming, Community" />
<meta name="author" content="mr_0003Spy" />

<style type="text/css">
span#rotator {position:relative; height:150px; margin-left: 15px;}
span#rotator ul li {float:left; position:absolute; list-style: none;}
span#rotator ul li.show {z-index:500;}
</style>

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>

<script type="text/javascript">

function theRotator() {
$('span#rotator ul li').css({opacity: 0.0});
$('span#rotator ul li:first').css({opacity: 1.0});
setInterval('rotate()',10000);
}

function rotate() {
var current = ($('span#rotator ul li.show')? $('span#rotator ul li.show') : $('span#rotator ul li:first'));
var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('span#rotator ul li:first') :current.next()) : $('span#rotator ul li:first'));

// var sibs = current.siblings();
// var rndNum = Math.floor(Math.random() * sibs.length );
// var next = $( sibs[ rndNum ] );

next.css({opacity: 0.0})
.addClass('show')
.animate({opacity: 1.0}, 1000);

current.animate({opacity: 0.0}, 1000)
.removeClass('show');
};

$(document).ready(function() {
theRotator();
});

</script>

</head>
<body style="background: url(http://spynetwork.clan.su/des/back_bg.png) repeat;">
$ADMIN_BAR$
<table cellspacing="0" cellpadding="0" align="center" style="width:1024px; border:1px solid #808080;">
<tr>
<td colspan="2" style="background:url(http://spynetwork.clan.su/des/logos/logoBG.png) repeat-x; height:175px;">
$GLOBAL_AHEADER$
$GLOBAL_MENU$
</td>
</tr>
<tr>
<td style="text-align:center; width:20%; vertical-align:top; padding:10px;"> <!-- 2 - 1 -->
$GLOBAL_CLEFTER$
</td>
<td style="text-align:center; width:60%; vertical-align:top; padding:10px;"> <!-- 2 - 2 -->

<!-- <body> -->$CONTENT$<!-- </body> -->
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center;"> <!-- 3 - 1 -->

<!-- </middle> -->
$GLOBAL_BFOOTER$
</td>
</tr>
</table>


</body>
</html>

А это, то, что в шапке:

<table>
<tr>
<td>

</td>
<td>
<span id="rotator">
<ul>
<li class="show"><img src="http://spynetwork.clan.su/des/logos/1.png" width="276" height="150" alt="Counter-Strike: Source" /></li>
<li><img src="http://spynetwork.clan.su/des/logos/2.png" width="276" height="150" alt="Garry's Mod" /></li>
<li><img src="http://spynetwork.clan.su/des/logos/3.png" width="276" height="150" alt="Team Fortress 2" /></li>
<li><img src="http://spynetwork.clan.su/des/logos/4.png" width="276" height="150" alt="MineCraft" /></li>
</ul>
</span>
</td>
<td>
</td>
</tr>
<tr>
<td> <!-- 1 - 1 -->
<span style="height:150px;">
<a href="$HOME_PAGE_LINK$"><img src="http://spynetwork.clan.su/des/logos/logo.png" alt="Spy Network Multi-Gaming cominuty / with OSOF" /></a>
</span>

</td>
<td> <!-- 1 - 2 -->
</td>
<td>

</td>
</tr>
</table>

Примерно я хочу сделать так:

http://s57.radikal.ru/i155/1107/44/80ed7dbb051f.png

Но не выходит, подскажите, в чём может быть проблема? И как её решить?

Edited by mr_0003Spy
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Наверное меняющаяся картинка выпадает из потока и твой блок с информацией о юзере просто не видит её и становится на её место. Подвигай margin-ом либо задай ему float: right.

css-код нам дай.

Edited by buddah
Link to comment
Share on other sites

  • 0

/* General Style */
a:link {text-decoration:underline; color:#4D6D91;}
a:active {text-decoration:underline; color:#4D6D91;}
a:visited {text-decoration:underline; color:#4D6D91;}
a:hover {text-decoration:underline; color:#000000;}

body {
font-family:verdana,arial,helvetica;
background: url(des/back_bg.png) repeat;
line-height: 1.4;
font-size: 13px;
}
form {
padding:0px;
margin:0px;
}
input,textarea,select {
vertical-align:middle;
font-size:8pt;
font-family:verdana,arial,helvetica;
}
.copy {font-size:7pt;}

a.noun:link {text-decoration:none; color:#4D6D91}
a.noun:active {text-decoration:none; color:#4D6D91}
a.noun:visited {text-decoration:none; color:#4D6D91}
a.noun:hover {text-decoration:none; color:#000000}

hr {color:#ACC6E5;height:1px;border-top:0px;}
label {cursor:pointer;cursor:hand}

.blocktitle {font-family:Arial,Sans-Serif;color:#FFFFFF;font-size:13px;text-transform:capitalize;font-weight:bold;}
/* ————- */

/* Menus */
ul.uz, ul.uMenuRoot {list-style: none; margin: 0 0 0 0; padding-left: 0px;}
li.menus {margin: 0; padding: 0 0 0 13px; background: url('/.s/t/101/11.gif') no-repeat 0px 3px; margin-bottom: .6em;}
/* —-- */

/* Site Menus */
.uMenuH li {float:left;padding:0 5px;}


.uMenuV .uMenuItem {font-weight:bold;}
.uMenuV li a:link {text-decoration:none; color:#7BA5D7}
.uMenuV li a:active {text-decoration:none; color:#7BA5D7}
.uMenuV li a:visited {text-decoration:none; color:#7BA5D7}
.uMenuV li a:hover {text-decoration:none; color:#4D6D91}

.uMenuV a.uMenuItemA:link {text-decoration:none; color:#4D6D91}
.uMenuV a.uMenuItemA:visited {text-decoration:none; color:#4D6D91}
.uMenuV a.uMenuItemA:hover {text-decoration:none; color:#4D6D91}

.uMenuV .uMenuArrow {position:absolute;width:10px;height:10px;right:0;top:3px;background:url('/.s/img/wd/1/ar1.gif') no-repeat 0 0;}
.uMenuV li {margin: 0; padding: 0 0 0 13px; background: url('/.s/t/101/12.gif') no-repeat 0px -2px; margin-bottom: .6em;}
/* ——— */

/* Module Part Menu */
.catsTd {padding: 0 0 3px 13px; background: url('/.s/t/101/13.gif') no-repeat 0px 4px;}
.catName {font-family:Tahoma,Arial,Sans-Serif;font-size:11px;font-weight:bold;}
.catNameActive {font-family:Tahoma,Arial,Sans-Serif;font-size:11px;font-weight:bold;}
.catNumData {font-size:7pt;color:#4D6D91;}
.catDescr {font-size:7pt; padding-left:10px;}
a.catName:link {text-decoration:none; color:#FFFFFF;}
a.catName:visited {text-decoration:none; color:#FFFFFF;}
a.catName:hover {text-decoration:underline; color:#FFFFFF;}
a.catName:active {text-decoration:underline; color:#FFFFFF;}
a.catNameActive:link {text-decoration:none; color:#FFFFFF;}
a.catNameActive:visited {text-decoration:none; color:#FFFFFF;}
a.catNameActive:hover {text-decoration:underline; color:#FFFFFF;}
a.catNameActive:active {text-decoration:underline; color:#FFFFFF;}
/* —————-- */

/* Entries Style */
.eBlock {}
.eTitle {font-family:Arial,Sans-Serif;font-size:14px;font-weight:bold;color:#FFFFFF;padding: 6px 6px 6px 6px; background:#0083C5; border:1px solid #808080;}
.eMessage {background:#DCDCDC; border-left:1px solid #808080; border-right:1px solid #808080; border-top:1px solid #FFF; text-align:justify;padding-bottom:5px;}
.eText {text-align:justify;padding-bottom:5px;padding-top:5px;border-top:1px solid #ACC6E5}
.eTitle a:link {text-decoration:none; color:#FFFFFF;}
.eTitle a:visited {text-decoration:none; color:#FFFFFF;}
.eTitle a:hover {text-decoration:underline; color:#FFFFFF;}
.eTitle a:active {text-decoration:underline; color:#FFFFFF;}

.eDetails {background:#DCDCDC; border-left:1px solid #808080; border-right:1px solid #808080; border-bottom:1px solid #808080; font-family:Tahoma,Arial,Sans-Serif;color:#1A1A1A;padding-bottom:5px;padding-top:3px;text-align:left;font-size:7pt;}
.eDetails1 {border-top:1px dashed #DDDDDD;border-bottom:1px dashed #DDDDDD;font-family:Tahoma,Arial,Sans-Serif;color:#1A1A1A;padding-bottom:5px;padding-top:3px;text-align:left;font-size:8pt;}
.eDetails2 {border-bottom:1px dashed #DDDDDD;font-family:Tahoma,Arial,Sans-Serif;color:#1A1A1A;padding-bottom:5px;padding-top:3px;text-align:left;font-size:8pt;}

.eRating {font-size:7pt;}
.eAttach {margin: 16px 0 0 0; padding: 0 0 0 15px; background: url('/.s/t/101/15.gif') no-repeat 0px 0px;}
/* ————- */

/* Entry Manage Table */
.manTable {}
.manTdError {color:#FF0000;}
.manTd1 {}
.manTd2 {}
.manTd3 {}
.manTdSep {}
.manHr {}
.manTdBrief {}
.manTdText {}
.manTdFiles {}
.manFlFile {}
.manTdBut {}
.manFlSbm {}
.manFlRst {}
.manFlCnt {}
/* —————— */

/* Comments Style */
.cAnswer {padding-left:15px;padding-top:4px;font-style:italic;}
.cBlock1 {border:1px solid #ACC6E5;background:#FFFFFF;}
.cBlock2 {border:1px solid #ACC6E5;background:#F3F7FC;}
/* ————-- */

/* Comments Form Style */
.commTable {}
.commTd1 {color:#4D6D91;font-weight:bold;}
.commTd2 {}
.commFl {width:100%;background:#FAFCFE;border:1px solid #ACC6E5;}
.smiles {border:1px inset;background:#FAFCFE;}
.commReg {padding: 10 0 10 0px; text-align:center;}
.commError {color:#FF0000;}
.securityCode {background:#FAFCFE;border:1px solid #ACC6E5;color:#0000FF;}
/* ——————- */

/* Archive Menu */
.archUl {list-style: none; margin:0; padding-left:0;}
.archLi {padding: 0 0 3px 10px; background: url('/.s/t/101/13.gif') no-repeat 0px 4px; font-family:Tahoma,Arial,Sans-Serif;}
.archActive {font-weight:bold;}
/* ———— */

/* Archive Style */
.archiveCalendars {text-align:center;color:#0000FF;}
.archiveDateTitle {font-weight:bold;color:#4D6D91;padding-top:15px;}
.archEntryHr {width:250px;color:#DDDDDD;}
.archiveeTitle li {margin-left: 15px; padding: 0 0 0 15px; background: url('/.s/t/101/11.gif') no-repeat 0px 4px; margin-bottom: .6em;}
.archiveEntryTime {width:65px;font-style:italic;}
.archiveEntryComms {font-size:9px;color:#C3C3C3;}
a.archiveDateTitleLink:link {text-decoration:none; color:#4D6D91}
a.archiveDateTitleLink:visited {text-decoration:none; color:#4D6D91}
a.archiveDateTitleLink:hover {text-decoration:underline; color:#4D6D91}
a.archiveDateTitleLink:active {text-decoration:underline; color:#4D6D91}
.archiveNoEntry {text-align:center;color:#0000FF;}
/* ————- */

/* Calendar Style */
.calMonth {font-weight:bold;border:1px solid #ACC6E5; }
.calWday {border:1px solid #ACC6E5; background:#E7EEF8; width:17px;}
.calWdaySe {border:1px solid #ACC6E5; background:#E7EEF8; width:17px; font-weight:bold;}
.calWdaySu {border:1px solid #ACC6E5; background:#E7EEF8; width:17px; font-weight:bold; color:#FF0000;}
.calMday {border:1px solid #ACC6E5; background:#FFFFFF;}
.calMdayA {border:1px solid #ACC6E5; background:#F8E6DF;font-weight:bold;}
.calMdayIs {border:1px solid #4D6D91; background:#E7EEF8;font-weight:bold;}
.calMdayIsA {border:1px solid #4D6D91; background:#F8E6DF;font-weight:bold;}
a.calMonthLink:link,a.calMdayLink:link {text-decoration:none; color:#4D6D91;}
a.calMonthLink:visited,a.calMdayLink:visited {text-decoration:none; color:#4D6D91;}
a.calMonthLink:hover,a.calMdayLink:hover {text-decoration:underline; color:#4D6D91;}
a.calMonthLink:active,a.calMdayLink:active {text-decoration:underline; color:#000000;}
/* ————-- */

/* Poll styles */
.pollBut {width:110px;}

.pollBody {padding:7px; margin:0px; background:#FFFFFF}
.textResults {background:#D0DFF0}
.textResultsTd {background:#FFFFFF}

.pollNow {border-bottom:1px solid #D0DFF0; border-left:1px solid #D0DFF0; border-right:1px solid #D0DFF0;}
.pollNowTd {}

.totalVotesTable {border-bottom:1px solid #D0DFF0; border-left:1px solid #D0DFF0; border-right:1px solid #D0DFF0;}
.totalVotesTd {background:#FFFFFF}
/* ———- */

/* User Group Marks */
a.groupModer:link,a.groupModer:visited,a.groupModer:hover {color:blue;}
a.groupAdmin:link,a.groupAdmin:visited,a.groupAdmin:hover {color:red;}
a.groupVerify:link,a.groupVerify:visited,a.groupVerify:hover {color:green;}
/* —————- */

/* Other Styles */
.replaceTable {background:#F5F9FD;height:100px;width:300px;border:1px solid #597798;}
.legendTd {font-size:7pt;}
/* ———— */

/* ===== forum Start ===== */

/* General forum Table View */
.gTable {background:#597798}
.gTableTop {padding:2px;background:#597798;color:#E2EBF5;font-weight:bold;height:27px;padding-left:10px;font-size:10pt;background-image: url('http://spynetwork.clan.su/des/thead_bg.gif');}
.gTableSubTop {padding:2px;background:#ACC6E5;color:#000000;height:25px;font-size:10px;background-image: url('/.s/t/101/26.gif');}
.gTableBody {padding:2px;background:#F5F9FD;}
.gTableBody1 {padding:2px;background:#FFFFFF;}
.gTableBottom {padding:2px;background:#F5F9FD;}
.gTableLeft {padding:2px;background:#E7EEF8;font-weight:bold;color:#737373}
.gTableRight {padding:2px;background:#F5F9FD}
.gTableError {padding:2px;background:#F5F9FD;color:#FF0000;}
/* ———————— */

/* Forums Styles */
.forumNameTd,.forumLastPostTd {padding:2px;background:#FFFFFF}
.forumIcoTd,.forumThreadTd,.forumPostTd {padding:2px;background:#EFF3FE}
.forumLastPostTd,.forumArchive {padding:2px;font-size:7pt;}

a.catLink:link {text-decoration:none; color:#E2EBF5;}
a.catLink:visited {text-decoration:none; color:#E2EBF5;}
a.catLink:hover {text-decoration:underline; color:#E2EBF5;}
a.catLink:active {text-decoration:underline; color:#E2EBF5;}

.lastPostGuest,.lastPostUser,.threadAuthor {font-weight:bold}
.archivedForum{font-size:7pt;color:#FF0000;font-weight:bold;}
/* ————- */

/* forum Titles & other */
.forum {font-weight:bold;font-size:9pt;}
.forumDescr,.forumModer {color:#858585;font-size:7pt;}
.forumViewed {font-size:9px;}
a.forum:link, a.lastPostUserLink:link, a.forumLastPostLink:link, a.threadAuthorLink:link {text-decoration:none; color:#4D6D91;}
a.forum:visited, a.lastPostUserLink:visited, a.forumLastPostLink:visited, a.threadAuthorLink:visited {text-decoration:none; color:#4D6D91;}
a.forum:hover, a.lastPostUserLink:hover, a.forumLastPostLink:hover, a.threadAuthorLink:hover {text-decoration:underline; color:#6F8EB3;}
a.forum:active, a.lastPostUserLink:active, a.forumLastPostLink:active, a.threadAuthorLink:active {text-decoration:underline; color:#4D6D91;}
/* ——————-- */

/* forum Navigation Bar */
.forumNamesBar {font-weight:bold;font-size:7pt;}
.forumBarKw {font-weight:normal;}
a.forumBarA:link {text-decoration:none; color:#000000;}
a.forumBarA:visited {text-decoration:none; color:#000000;}
a.forumBarA:hover {text-decoration:none; color:#4D6D91;}
a.forumBarA:active {text-decoration:underline; color:#4D6D91;}
/* ——————-- */

/* forum Fast Navigation Blocks */
.fastNav,.fastSearch,.fastLoginForm {font-size:7pt;}
/* —————————- */

/* forum Fast Navigation Menu */
.fastNavMain {background:#C7D7EF;}
.fastNavCat {background:#E7EEF8;}
.fastNavCatA {background:#E7EEF8;color:#0000FF}
.fastNavForumA {color:#0000FF}
/* ————————-- */

/* forum Page switches */
.switches {background:#B4CBE7;}
.pagesInfo {background:#FFFFFF;font-size:7pt;}
.switch {background:#FFFFFF;width:15px;font-size:7pt;}
.switchActive {background:#E7EEF8;font-weight:bold;color:#4D6D91;width:15px}
a.switchDigit:link,a.switchBack:link,a.switchNext:link {text-decoration:none; color:#000000;}
a.switchDigit:visited,a.switchBack:visited,a.switchNext:visited {text-decoration:none; color:#000000;}
a.switchDigit:hover,a.switchBack:hover,a.switchNext:hover {text-decoration:underline; color:#FF0000;}
a.switchDigit:active,a.switchBack:active,a.switchNext:active {text-decoration:underline; color:#FF0000;}
/* ——————- */

/* forum Threads Style */
.threadNametd,.threadAuthTd,.threadLastPostTd {padding:2px;padding:2px;background:#FFFFFF}
.threadIcoTd,.threadPostTd,.threadViewTd {padding:2px;background:#EFF3FE}
.threadLastPostTd {padding:2px;font-size:7pt;}
.threadDescr {color:#858585;font-size:7pt;}
.threadNoticeLink {font-weight:bold;}
.threadsType {padding:2px;background:#EFF3FE;height:25px;font-weight:bold;font-size:7pt;color:#4D6D91;padding-left:40px;}
.threadsDetails {padding:2px;background:#EFF3FE;height:25px;color:#4D6D91;}
.forumOnlineBar {padding:2px;background:#EFF3FE;height:25px;color:#4D6D91;}

a.threadPinnedLink:link {text-decoration:none; color:#0000FF;}
a.threadPinnedLink:visited {text-decoration:none; color:#0000FF;}
a.threadPinnedLink:hover {text-decoration:none; color:#FF0000;}
a.threadPinnedLink:active {text-decoration:underline; color:#FF0000;}

a.threadLink:link {text-decoration:none; color:#4D6D91;}
a.threadLink:visited {text-decoration:none; color:#4D6D91;}
a.threadLink:hover {text-decoration:underline; color:#000000;}
a.threadLink:active {text-decoration:underline; color:#000000;}

.postpSwithces {font-size:7pt;}
.thDescr {font-weight:normal;}
.threadFrmBlock {font-size:7pt;text-align:right;}
/* ——————- */

/* forum Posts View */
.postTable {}
.postPoll {background:#EEF2F7;text-align:center;}
.postFirst {background:#F5F9FD;border-bottom:3px solid #597798;}
.postRest1 {background:#EEF2F7;}
.postRest2 {background:#F5F9FD;}
.postSeparator {height:3px;background:#8394B2;}

.postTdTop,.postBottom {background:#DCDCDC;height:20px}
.postUser {font-weight:bold;}
.postTdInfo {text-align:center;padding:5px;}
.postRankName {margin-top:5px;}
.postRankIco {margin-bottom:5px;margin-bottom:5px;}
.reputation {margin-top:5px;}
.signatureHr {margin-top:20px;color:#597798;}
.posttdMessage {padding:5px;}

.postPoll {padding:5px;}
.pollQuestion {text-align:center;font-weight:bold;}
.pollButtons,.pollTotal {text-align:center;}
.pollSubmitBut,.pollreSultsBut {width:140px;font-size:7pt;}
.pollSubmit {font-weight:bold;}
.pollEnd {text-align:center;height:30px;}

.codeMessage {background:#FFFFFF;font-size:9px;}
.quoteMessage {background:#FFFFFF;font-size:9px;}

.signatureView {font-size:7pt;}
.edited {padding-top:30px;font-size:7pt;text-align:right;color:gray;}
.editedBy {font-weight:bold;font-size:8pt;}

.statusBlock {padding-top:3px;}
.statusOnline {color:#0000FF;}
.statusOffline {color:#FF0000;}
/* —————— */

/* forum AllInOne Fast Add */
.newThreadBlock {background: #F9F9F9;border: 1px solid #B2B2B2;}
.newPollBlock {background: #F9F9F9;border: 1px solid #B2B2B2;}
.newThreadItem {padding: 0 0 0 8px; background: url('/.s/t/101/27.gif') no-repeat 0px 4px;}
.newPollItem {padding: 0 0 0 8px; background: url('/.s/t/101/27.gif') no-repeat 0px 4px;}
/* ———————-- */

/* forum Post Form */
.codeButtons {font-size:7pt;background:#FAFCFE;border:1px solid #ACC6E5;}
.codeCloseAll {font-size:7pt; color:#4D6D91;font-weight:bold;background:#FAFCFE;border:1px solid #ACC6E5;}
.postNameFl,.postDescrFl {background:#FAFCFE;border:1px solid #ACC6E5;width:400px}
.postPollFl,.postQuestionFl {background:#FAFCFE;border:1px solid #ACC6E5;width:400px}
.postResultFl {background:#FAFCFE;border:1px solid #ACC6E5;width:50px}
.postAnswerFl {background:#FAFCFE;border:1px solid #ACC6E5;width:300px}
.postTextFl {background:#FAFCFE;border:1px solid #ACC6E5;width:550px;height:150px}
.postUserFl {background:#FAFCFE;border:1px solid #ACC6E5;width:300px}

.pollHelp {font-weight:normal;font-size:7pt;padding-top:3px;}
.smilesPart {padding-top:5px;text-align:center}
/* —————-- */

/* ====== forum End ====== */

Если float: right, то всё оказывается выше картинки, а margin вообще ни как не реагирует.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy