Полночь
Ну на это может влиять таблица.Возможно!
Общие вопросы от новичков (11)
Сообщений 261 страница 280 из 1000
Поделиться261Пн, 6 Июл 2009 16:14:49
Поделиться262Пн, 6 Июл 2009 16:21:10
Наруто-кун
Нет... Пробовала удалять таблицу - эффект тот же...
Поделиться263Пн, 6 Июл 2009 16:22:04
Полночь
ну тогда незнаю.Попробуйте совет студентка
Поделиться264Пн, 6 Июл 2009 16:22:57
Наруто-кун
А я не знаю как))) удалять логотипы)))
Поделиться265Пн, 6 Июл 2009 16:25:01
Если вам надо просто стереть логотип mybb, используйте данный скрипт:
<style>
#pun-title .title-logo {display : none;}
</style>
Поделиться266Пн, 6 Июл 2009 19:47:04
Можно ли окрасить репутацию, т.е. когда человек будет в плюсе, его репа будет зеленой, а когда в минусе - красной?
Можно убрать жирное выделение статусов?
Как сделать так, чтобы у разных групп людей был разный максимальный размер аватара?
Поделиться267Пн, 6 Июл 2009 19:59:29
студентка
Спасибо)
Поделиться268Пн, 6 Июл 2009 21:19:08
Куда ставить код, что бы аватары имели отражение?
Поделиться269Пн, 6 Июл 2009 21:31:34
Tancred
Код напиши сюда. Если скрипт - вниз, остальное - вверх
Поделиться270Пн, 6 Июл 2009 21:38:48
Tancred
Это вверх!
<script type="text/javascript">
document.getElementsByClassName = function(className) {
var children = document.getElementsByTagName('*') || document.all;
var elements = new Array();
for (var i = 0; i < children.length; i++) {
var child = children[i];
var classNames = child.className.split(' ');
for (var j = 0; j < classNames.length; j++) {
if (classNames[j] == className) {
elements.push(child);
break;
}
}
}
return elements;
}
var Reflection = {
defaultHeight : 0.5,
defaultOpacity: 0.5,
add: function(image, options) {
Reflection.remove(image);
doptions = { "height" : Reflection.defaultHeight, "opacity" : Reflection.defaultOpacity }
if (options) {
for (var i in doptions) {
if (!options[i]) {
options[i] = doptions[i];
}
}
} else {
options = doptions;
}
try {
var d = document.createElement('div');
var p = image;
var classes = p.className.split(' ');
var newClasses = '';
for (j=0;j<classes.length;j++) {
if (classes[j] != "reflect") {
if (newClasses) {
newClasses += ' '
}
newClasses += classes[j];
}
}
var reflectionHeight = Math.floor(p.height*options['height']);
var divHeight = Math.floor(p.height*(1+options['height']));
var reflectionWidth = p.width;
if (document.all && !window.opera) {
/* Fix hyperlinks */
if(p.parentElement.tagName == 'A') {
var d = document.createElement('a');
d.href = p.parentElement.href;
}
/* Copy original image's classes & styles to div */
d.className = newClasses;
p.className = 'reflected';
d.style.cssText = p.style.cssText;
p.style.cssText = 'vertical-align: bottom';
var reflection = document.createElement('img');
reflection.src = p.src;
reflection.style.width = reflectionWidth+'px';
reflection.style.marginBottom = "-"+(p.height-reflectionHeight)+'px';
reflection.style.filter = 'flipv progid:DXImageTransform.Microsoft.Alpha(opacity='+(options['opacity']*100)+', style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy='+(options['height']*100)+')';
d.style.width = reflectionWidth+'px';
d.style.height = divHeight+'px';
p.parentNode.replaceChild(d, p);
d.appendChild(p);
d.appendChild(reflection);
} else {
var canvas = document.createElement('canvas');
if (canvas.getContext) {
/* Copy original image's classes & styles to div */
d.className = newClasses;
p.className = 'reflected';
d.style.cssText = p.style.cssText;
p.style.cssText = 'vertical-align: bottom';
var context = canvas.getContext("2d");
canvas.style.height = reflectionHeight+'px';
canvas.style.width = reflectionWidth+'px';
canvas.height = reflectionHeight;
canvas.width = reflectionWidth;
d.style.width = reflectionWidth+'px';
d.style.height = divHeight+'px';
p.parentNode.replaceChild(d, p);
d.appendChild(p);
d.appendChild(canvas);
context.save();
context.translate(0,image.height-1);
context.scale(1,-1);
context.drawImage(image, 0, 0, reflectionWidth, image.height);
context.restore();
context.globalCompositeOperation = "destination-out";
var gradient = context.createLinearGradient(0, 0, 0, reflectionHeight);
gradient.addColorStop(1, "rgba(255, 255, 255, 1.0)");
gradient.addColorStop(0, "rgba(255, 255, 255, "+(1-options['opacity'])+")");
context.fillStyle = gradient;
if (navigator.appVersion.indexOf('WebKit') != -1) {
context.fill();
} else {
context.fillRect(0, 0, reflectionWidth, reflectionHeight*2);
}
}
}
} catch (e) {
}
},
remove : function(image) {
if (image.className == "reflected") {
image.className = image.parentNode.className;
image.parentNode.parentNode.replaceChild(image, image.parentNode);
}
}
}
function addReflections() {
var rimages = document.getElementsByClassName('reflect');
for (i=0;i<rimages.length;i++) {
var rheight = null;
var ropacity = null;
var classes = rimages[i].className.split(' ');
for (j=0;j<classes.length;j++) {
if (classes[j].indexOf("rheight") == 0) {
var rheight = classes[j].substring(7)/100;
} else if (classes[j].indexOf("ropacity") == 0) {
var ropacity = classes[j].substring(8)/100;
}
}
Reflection.add(rimages[i], { height: rheight, opacity : ropacity});
}
}
var previousOnload = window.onload;
window.onload = function () { if(previousOnload) previousOnload(); addReflections(); }
</script>Это вниз!
<script type="text/javascript">
var arr=document.getElementsByTagName("li")
i=0
while(arr[i] ){
if(arr[i].className=="pa-avatar item2"){
name=arr[i].innerHTML
name=name.substring(4)
arr[i].innerHTML="<img class=reflect "+name+" "
}
i++
}
</script>Отредактировано Наруто-кун (Пн, 6 Июл 2009 21:39:39)
Поделиться271Пн, 6 Июл 2009 21:47:39
Наруто-кун
пасибо огромное!
Поделиться272Пн, 6 Июл 2009 21:48:21
Tancred
Незашто!
Поделиться273Пн, 6 Июл 2009 21:56:20
Как сделать так, чтобы у разных групп людей был разный максимальный размер аватара?
никак..
Можно ли окрасить репутацию, т.е. когда человек будет в плюсе, его репа будет зеленой, а когда в минусе - красной?
пока такого нет..
Можно убрать жирное выделение статусов?
вверх..
<style type="text/css">
#pun-main .topic .container { font-size: 1em; font-weight: normal; text-align: center; color: #009966;}
</style>
толщина выделена красным.. остальное по твоему желанию.. (размер, толщина, центр, цвет..)
Поделиться274Пн, 6 Июл 2009 22:28:24
Здрасти.
У меня такой вопрос. Как можно избежать конфликт в следующих скриптах?
<style>
#custom-mycolor {background-image:url('http://s60.radikal.ru/i168/0903/65/de67e22761d8.jpg'); padding:0; line-height:0; background-position:center; background-repeat:no-repeat; height:26px; width:100%}
</style>
<script type="text/javascript">
if((form=document.getElementById("form-buttons")))
form.getElementsByTagName("tr")[0].insertCell(17).innerHTML="<img src='/i/blank.gif' title='Мои цвета' id='custom-mycolor' title='Мои цвета' onclick=\"return changeVisibility('mycolor', this);\" />"
</script>
<div class="container" id="mycolor" style="display:none; width:807px">
<table cellspacing="0">
<tr>
<td style="background-color:#FF6633; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CC3300; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#660000; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#990066; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FF3366; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#000066; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#003366; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#0033FF; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#00CC00; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#669966; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#006600; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FF6600; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CC6633; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FFD700; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#666666; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#00FF66; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#00FF00; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#00FFFF; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#66FF66; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#99FF99; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CCFF00; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CCFF66; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CCFFCC; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FFFF00; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FFFF99; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#00CC66; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#339966; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#6699CC; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CCCC66; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#009966; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#9999FF; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CC9933; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CC66CC; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FF6666; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#003333; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#333300; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#663399; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#993300; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FF3300; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FF66FF; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#0000FF; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#660033; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#990000; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FF0000; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FF0066; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FFCCCC; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#ffcc66; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#666633; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#cc6633; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#99ff00; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#cccccc; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#ffcccc; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#336666; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#ff9999; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
</tr>
</table>
</div>
и
<style>
#custom-mycolor {background-image:url('http://upforme.ru/uploads/0005/1e/5c/49288-1.png'); padding:0; line-height:0; background-position:center; background-repeat:no-repeat; height:26px; width:100%}
</style>
<script type="text/javascript">
if((form=document.getElementById("form-buttons")))
form.getElementsByTagName("tr")[0].insertCell(19).innerHTML="<img src='/i/blank.gif' title='Дополнительные смайлы' id='custom-mycolor' title='Дополнительные смайлы' onclick=\"return changeVisibility('mycolor', this);\" />"
</script>
<div class="container" id="mycolor" style="display:none; width:37px">
<table cellspacing="0">
<tr>
<td style="background-image:url('http://s54.radikal.ru/i144/0907/4c/c9f5cd501512.gif');" onclick="bbcode(''); return changeVisibility('mycolor', this)"></td>
</tr>
</table>
</div>
адрес форума - http://winxclub3.spybb.ru
Поделиться275Пн, 6 Июл 2009 22:29:34
Подскажите пожалуйста!
Вопрос по курсору!
Можно ли вставить этот код :
<SCRIPT type="text/javascript">
var trailimage=["roseopen.gif", 29, 29] // image, width, height
var ofsm=[5,-10]
if (document.getElementById || document.all)
document.write('<div id="trailimageid" style="position:absolute;visibility:visible;left:0px;top:0px;width:1px;height:1px"><img src="'+trailimage[0]+'" border="0" width="'+trailimage[1]+'px" height="'+trailimage[2]+'px"></div>')
function gettrailobj(){
if (document.getElementById)
return document.getElementById("trailimageid").style
else if (document.all)
return document.all.trailimagid.style
}
function truebody(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function followmouse(e){
var xcoord=ofsm[0]
var ycoord=ofsm[1]
if (typeof e != "undefined"){
xcoord+=e.pageX
ycoord+=e.pageY
}
else if (typeof window.event !="undefined"){
xcoord+=truebody().scrollLeft+event.clientX
ycoord+=truebody().scrollTop+event.clientY
}
var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
if (xcoord+trailimage[1]+3>docwidth || ycoord+trailimage[2]> docheight)
gettrailobj().display="none"
else
gettrailobj().display=""
gettrailobj().left=xcoord+"px"
gettrailobj().top=ycoord+"px"
}
document.onmousemove=followmouse
</SCRIPT>Автор курсора рекомендует:
Шаг №1 - Загрузите в корневую папку (где находится страница) этот рисунок.
Шаг №2 - Скопируйте приведенный ниже код между тэгами <BODY> и <BODY>
Что такое корневая папка и где она находится?
Поделиться276Пн, 6 Июл 2009 22:32:34
У меня такой вопрос. Как можно избежать конфликт в следующих скриптах?
Не совсем понятен ваш вопрос!
Поделиться277Пн, 6 Июл 2009 22:41:30
Автор курсора рекомендует:
Шаг №1 - Загрузите в корневую папку (где находится страница) этот рисунок.
Шаг №2 - Скопируйте приведенный ниже код между тэгами <BODY> и <BODY>
это не для нашего форума..
У меня такой вопрос. Как можно избежать конфликт в следующих скриптах?
проблема то в чём??
Поделиться278Пн, 6 Июл 2009 22:42:20
Автор курсора рекомендует:Шаг №1 - Загрузите в корневую папку (где находится страница) этот рисунок.Шаг №2 - Скопируйте приведенный ниже код между тэгами <BODY> и <BODY>
Это вообще для компа кажется 
Поделиться279Пн, 6 Июл 2009 22:48:14
Это вообще для компа кажется
нет.. это для другого сервиса..
Отредактировано АЛЬБ (Пн, 6 Июл 2009 22:48:41)
Поделиться280Пн, 6 Июл 2009 22:52:42
проблема то в чём??
Посмотрите сами. http://winxclub3.spybb.ru/viewtopic.php … 966#p38966 в форме ответа.
Похожие темы
| Общие вопросы от новичков (63) #3 | Форум для новичков | Ср, 22 Окт 2025 |
| Общие вопросы от новичков (63) #2 | Форум для новичков | Пт, 15 Авг 2025 |
| Общие вопросы от новичков (44) | Архив | Пт, 18 Окт 2013 |
| Общие вопросы от новичков (47) | Архив | Чт, 26 Июн 2014 |
| Общие вопросы от новичков (63) | Архив | Ср, 27 Апр 2022 |
'); return changeVisibility('mycolor', this)"></td>