Blashemy Posted January 29, 2013 Report Share Posted January 29, 2013 html, css и javascript - очень простой вопрос для вас, подскажите плизС "html" разобрался, код вписывать нужно в index.tpl"css" код вписывать в style.cssа куда вписывать код "javascript"?хочу изменить стандартные подсказки на стилизованные Quote Link to post Share on other sites
delprofile Posted January 29, 2013 Report Share Posted January 29, 2013 есть файл admintooltip.js в папке js/admintooltip/ там есть и css Quote Link to post Share on other sites
Blashemy Posted January 29, 2013 Author Report Share Posted January 29, 2013 Хочу сделать подсказки в стиле facebook, вконтакте. Тёмный полупрозрачный фон и белый текст. Либо может есть другой вариант заменить стандартные подсказки title? Будет работать на чистом CSS или CSS+JavaScript, без разницы, главное, чтобы работали подсказки. Quote Link to post Share on other sites
delprofile Posted January 29, 2013 Report Share Posted January 29, 2013 я и говорю есть плагины tooltips называются Jquery сложного не чего нет подключил стили прописал и вот тебе красивенький title Quote Link to post Share on other sites
Blashemy Posted January 29, 2013 Author Report Share Posted January 29, 2013 Я в программировании не очень силён, может есть где-то мануал? Уже несколько часов потратил пытаясь сделать, прочитал кучу всяких инструкций, но не получается сделать. Quote Link to post Share on other sites
delprofile Posted January 29, 2013 Report Share Posted January 29, 2013 ТЫК Quote Link to post Share on other sites
Blashemy Posted January 29, 2013 Author Report Share Posted January 29, 2013 Сделал всё как описано и на всех ссылках, у элементов, у которых указан title подсказка изменилась, а у которых не указан title, пишет undefined. На кнопках подсказка осталась стандартная, windows'ская. Quote Link to post Share on other sites
delprofile Posted January 29, 2013 Report Share Posted January 29, 2013 надо смотреть я не экстрасенс Quote Link to post Share on other sites
Blashemy Posted January 29, 2013 Author Report Share Posted January 29, 2013 jQuery-кодfunction simple_tooltip(target_items, name){$(target_items).each(function(i){$("body").append("<div class='"+name+"' id='"+name+i+"'><p>"+$(this).attr('title')+"</p></div>");var my_tooltip = $("#"+name+i);$(this).removeAttr("title").mouseover(function(){my_tooltip.css({opacity:0.8, display:"none"}).fadeIn(400);}).mousemove(function(kmouse){my_tooltip.css({left:kmouse.pageX+15, top:kmouse.pageY+15});}).mouseout(function(){my_tooltip.fadeOut(400);});});}$(document).ready(function(){simple_tooltip("a","tooltip");}); Quote Link to post Share on other sites
Blashemy Posted January 29, 2013 Author Report Share Posted January 29, 2013 Разобрался. Сделал как описано здесь, всё заработало.http://ruseller.com/lessons.php?rub=32&id=766На всех элементах заработало, на кнопках тоже. Quote Link to post Share on other sites
delprofile Posted January 29, 2013 Report Share Posted January 29, 2013 ещё бы научился вставлять коды в нужные теги, цены бы тебе не было! Quote Link to post Share on other sites
Blashemy Posted January 29, 2013 Author Report Share Posted January 29, 2013 На будущее подскажите, что нужно было изменить? Quote Link to post Share on other sites
delprofile Posted January 29, 2013 Report Share Posted January 29, 2013 кода взять в тег код, кнопка C в редакторе.Не на будущее, возьми и отредактируй сообщение Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.